OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: jerrybme on January 20, 2006, 05:15:40 pm
-
I've re-partitioned my internal HD in my 3100 and the /dev/hdc2 & /dev/hdc3 are mounting properly, but not /dev/hdc1 which is a swap partition. I put it in the fstab
/dev/hdc1 none sw defaults 0 0
but no joy.
swapon /dev/hdc1
seems to work but df -h
& mount -l
don't list the swap
I'm missing something obvious, what is it?
TIA
Jerry
-
I've re-partitioned my internal HD in my 3100 and the /dev/hdc2 & /dev/hdc3 are mounting properly, but not /dev/hdc1 which is a swap partition. I put it in the fstab
/dev/hdc1 none sw defaults 0 0
but no joy.
swapon /dev/hdc1
seems to work but ...
Try: # free
total used free shared buffers
Mem: 62192 60676 1516 0 1652
Swap: 267584 14516 253068
Total: 329776 75192 254584
-- cheers
-
BTW to get my partitions to mount on boot I had to add these lines to my /etc/rc.d/init.d/pcmcia
mount -t vfat -o noatime /dev/hda3 /mnt/ide3
mount -t ext3 -o noatime /dev/hda5 /mnt/hd
swapon -a
I had tried a more "elegant" way but failed (https://www.oesf.org/forums/index.php?showtopic=16560).
-- cheers
-
BTW to get my partitions to mount on boot I had to add these lines to my /etc/rc.d/init.d/pcmcia
mount -t vfat -o noatime /dev/hda3 /mnt/ide3
mount -t ext3 -o noatime /dev/hda5 /mnt/hd
swapon -a
I had tried a more "elegant" way but failed (https://www.oesf.org/forums/index.php?showtopic=16560).
-- cheers
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111747\"][{POST_SNAPBACK}][/a][/div]
Doh! I was right, it was obvious! I thought df showed swap, but when I got home and got on my desktop; sure enough only "free" shows swap.
I partioned my HD to have 3 partitions:
hdc1 = swap 256 mb
hdc2 = ext2 1.4 gig
hdc3 = vfat 2.2 gig
So they all mount fine without any script edits ( except "swapon -a")
Thanks,
Jerry
-
Got a couple of PM re how to exactly edit the PCMCIA script to mount swap partitions at boot. The key seems to be to having mount commands for the internal HD preceed your swapon -a command (and make sure to have your fstab include the swap info)
For my 3100 which has:
dev/hdc1=swap
/dev/hdc2 on /mnt/ide2 type ext2 (rw)
/dev/hdc3 on /mnt/ide3 type vfat (rw,noatime)
My fstab has this line for my swap:
/dev/hdc1 none swap defaults 0 0
And I added the following right before and after the stop section of the /etc/rc.d/init.d/pcmcia script:
sleep 2
cardctl insert 1
sleep 1
mount -t vfat -o noatime /dev/hda3 /mnt/ide3
mount -t ext2 -o noatime /dev/hda2 /mnt/ide2
swapon -a
;;
stop)
msg -n "Stop CF services:"
swapoff -a
umount /mnt/ide2
umount /mnt/ide3
cardctl eject >/dev/null 2>&1
I do get some ide2 busy errors on reboot, but it still reboots ok. I believe this is do to some apps I've installed on ide2 are still running