Gparted resize linux swap partition

Old Ranger ranger at
Thu Mar 20 21:05:05 UTC 2008

Old Ranger wrote:
> David Vincent wrote:
>> Hash: SHA1
>> Raseel Bhagat wrote:
>>> Hi,
>>> On Tue, Mar 18, 2008 at 9:02 AM, Brian McKee <brian.mckee at
>>> <mailto:brian.mckee at>> wrote:
>>>     >
>>>     > When I start the system, swap does not automatically come "on", it is
>>>     > not automatically recognized by the OS.
>>>     > However, I can turn "swapon" by using Gparted from the GUI while
>>>     system
>>>     > is running.
>>>     > Sooooo, did I shoot myself in the foot?  Or is there a way to make
>>>     > Ubuntu be aware of the newly shrunk swap partition WITHOUT
>>>     reinstalling
>>>     > the entire system?
>>>     When you run swapon - are you specifying the partition or just using the
>>>     - -a option?  Ubuntu uses UUID in the /etc/fstab file, not /dev mount
>>>     points,  and the UUID of the swap partition changed when you sic'ed
>>>     gparted on it.
>>>     Use vol_id or something like it to figure out the new swap partition
>>>     uuid, or just replace the uuid with the /dev path if you prefer.
>>> Check yout /etc/fstab and see if it is mounting the correct swap
>>> partition. As Brian points out,  the entries in the  /etc/fstab uses UUID.
>>> Check your swap partitions UUID with :
>>> $ ls  -l /dev/disk/by-uuid/
>>> I'm thinking the UUID has changed.
>> Use the "blkid" command to determine UUIDs of your drives, then compare
>> the ID reported for your SWAP with what Ubuntu has in the /etc/fstab file.
>> $ sudo gedit /etc/fstab
>> If your UUIDs are different then replace the one in the fstab file with
>> what blkid reported, save fstab and reboot.
>> - -d
>> Version: GnuPG v1.4.6 (GNU/Linux)
>> iD8DBQFH39f1fpRzWFIV0XMRAtAGAJ9ITYYv/LzEtc3aF9afI0GHbffcagCeOeUO
>> wCp9zPbfe9B3hfukgZxZzXU=
>> =STJK
>> -----END PGP SIGNATURE-----
> Thank you both!
> I will try this fix and report the results ASAP.
> Z. Wade Hampton
> Marysvale, UT
Greetings to all,
"Fix Report" follows:
Having followed the instructions generously provided above, I have found 
no difference in start-up performance, i.e. "swap" does not 
automatically come on.
No change in startup performance.
Thank you for the suggestions though!
I continue to research the matter.
Re-installation is an option, although not a desirable one.


More information about the ubuntu-users mailing list