swap partition not being mounted at boot
I moved my system to a bigger hard disk using Ghost4Linux.
Then I used Gparted to: 1. Move the swap partion to the end of the disk 2. Grow the / partition from 7Gig to 15Gig Just about everthing is working fine. The only thing that is not being picked up is the swap partition. The /etc/fstab file still shows the old LABEL and the disk to be hda. Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details So the new CDROM is being recognized at boot time. But the old swap partition entry is not being replaced/updated. If I do "swapon /dev/hdc3" from the command line then the swap partition is enabled and being used. But if I reboot the system then /dev/hdc3 is not being enabled at boot time. What should I do? man fstab-sync says "... This program is usually never run directly from a shell ..." |
Simplest would be to do a mkswap on /dev/hdc3 and assign the old label to it - see the manpage.
|
Thanks syg00
I did: mkswap -c -L SWAP-hda3 /dev/hdc3 Then I reboot the system. Now the hdc3 swap partition is being enabled at boot. This is good. The hda3 label is going to cause some confusion down the road. Is there any other way to take care of this? |
Use a device instead the label in /etc/fstab.
|
Quote:
|
Just change the label to SWAP, and update fstab. I think fstab-sync is only for HAL.
Been known to be wrong though ... :p |
All times are GMT -5. The time now is 07:38 PM. |