How do I add a swap space in Ubuntu Linux on Apple TV?
#1
Hi all, finally got around to updating to beta4 with the latest crystal hd, on Sam's image.

But I think I don't have any swap space and it's causing the APTV/XBMC setup to crash, what have I done wrong here and how do i fix it via SSH ?

http://xbmc.pastebin.com/pSNj3mPy

freexbmc@atv:~$ free
total used free shared buffers cached
Mem: 248940 227004 21936 0 2440 57668
-/+ buffers/cache: 166896 82044
Swap: 0 0 0


xbmc@atv:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 6.7G 3.0G 3.4G 47% /
varrun 122M 116K 122M 1% /var/run
varlock 122M 0 122M 0% /var/lock
udev 122M 48K 122M 1% /dev
devshm 122M 0 122M 0% /dev/shm
/dev/sda4 36G 33G 3.2G 92% /media/pata
/dev/sdb1 34M 9.7M 25M 29% /media/Recovery


Sorry about the question, just not an expert on linux!

By the way, 720p video plays perfectly, it's the 1080 stuff that crashes.

Thx
Matt.
4x ATV2's (v4.3) XBMC Frodo12.2. Raspberry Pi running MYSQL 5.5.31-0+wheezy1. NAS is a Drobo FS
Reply
#2
ok, solved it,

I ran;

sudo blkid

which resulted in;


/dev/sda1: LABEL="EFI" UUID="2860-11F4" TYPE="vfat"
/dev/sda2: TYPE="hfsplus"
/dev/sda3: TYPE="hfsplus"
/dev/sdb1: TYPE="hfsplus"
/dev/sdb2: LABEL="Linux" UUID="53b51eec-0918-4abd-be0d-13d73ead4631" TYPE="ext3"
/dev/sdb3: TYPE="swap" UUID="07adced0-8c61-486c-ad07-272185083472"
/dev/sda4: TYPE="hfsplus"


then edited the file at;

sudo nano /etc/fstab

rebooted and now running;

free

I get;

Swap: 700408 0 700408



Mind you the 1080 files, don't really play but at least the system doesn't crash so that is a start!

Onto the next problem.

Thx.
4x ATV2's (v4.3) XBMC Frodo12.2. Raspberry Pi running MYSQL 5.5.31-0+wheezy1. NAS is a Drobo FS
Reply

Logout Mark Read Team Forum Stats Members Help
How do I add a swap space in Ubuntu Linux on Apple TV?0