[olug] swap problems

Eric P eric.maillist at gmail.com
Wed Jan 10 01:07:15 UTC 2007


Hey, thanks for your response (and sorry for my late one!)

That did the trick.  I'm still curious about the new format Ubuntu is using to mount devices.

E

Cesar Delgado wrote:
> I'd unmount the swap, or if it's umounted then I'd do nothing.  Then I'd 
> make sure the swap was /dev/hda5 and I'd run:
> mkswap /dev/hda5
> 
> Then I'd go into the fstab, take out the line with the UUID and just add:
> /dev/hda5	none	swap	sw	0 0
> 
> Then I'd run:
> mount -a
> 
> And the swap should be mounted and happy.
> 
> Eric P wrote:
>> I have an 80GB hard drive with one 20GB partition (/dev/hda1) followed by a 1GB extended partition containing a swap
>> partition (/dev/hda5).
>>
>> While booted in a live CD, I deleted the extended/swap partition, grew the 20GB partition to 78GB, and added back and
>> grew the extended/swap partition (still /dev/hda5) to 2GB.
>>
>> When I booted (Kubuntu Edgy), the swap no longer mounted.  I took a look at fstab and noticed this line for the swap mount:
>> UUID=f957f278-1813-448b-8612-246487279ea1 none swap sw 0 0
>>
>> So I figure I just need to determine what the UUID is now for the newly relocated swap.  This command accomplishes that:
>> ls /dev/disk/by-uuid -al
>> ...
>> 5eda3f56-38f7-4cab-872a-1b1aff4e9554 -> ../../hda5
>> ...
>>
>> Ok, so I copy this UUID over the old UUID in fstab, reboot and the 'free' command now shows the swap's available space
>> again.  I'm happy.
>>
>> However, it's been a few weeks, and I was checking 'free', and the swap isn't being mounted again.  I double-check the
>> UUID (ls command above) and compare it w/the fstab entry, but they are in sync.
>>
>> $ls /dev/disk/by-uuid -al
>> total 0
>> drwxr-xr-x 2 root root 100 2006-12-17 12:56 .
>> drwxr-xr-x 5 root root 100 2006-12-17 12:56 ..
>> lrwxrwxrwx 1 root root  10 2006-12-17 12:56 5eda3f56-38f7-4cab-872a-1b1aff4e9554 -> ../../hda5
>> lrwxrwxrwx 1 root root  10 2006-12-17 12:56 76522cf2-9060-41ae-9f9a-2e91b1c34bef -> ../../hda1
>> lrwxrwxrwx 1 root root  10 2006-12-17 12:56 fb07e3d5-d988-4ea4-b435-e087994ec09f -> ../../hdb1
>>
>> $ cat /etc/fstab | grep swap
>> # /dev/hda5       none            swap    sw              0       0
>> #UUID=f957f278-1813-448b-8612-246487279ea1 none swap sw 0 0
>> UUID=5eda3f56-38f7-4cab-872a-1b1aff4e9554 none swap sw 0 0
>>
>> Thanks for any ideas.
>> Eric Pierce
>> _______________________________________________
>> OLUG mailing list
>> OLUG at olug.org
>> http://lists.olug.org/mailman/listinfo/olug
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
> 




More information about the OLUG mailing list