Re: Gparted resize linux swap partition



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Old Ranger wrote:
Greetings to all,
I recently installed 7.10 on part of my laptop, where FreeBSD used to
reside.
I wanted to try Ubuntu. I like it very well, for the week I've had it.
Works great!

Today, I noticed in the System Monitor that I grossly oversized my swap
partition during initial installation.
Physical memory is 2Gb. I thought I was specifying 2Gb of swap, when I
actually specified 20Gb. OOPS.

So, I downloaded the live CD of Gparted, burned the iso to CD, booted
up, and resized the swap to 2 Gb.
Also resized the /usr partition accordingly, etc...

Ok, now the question.

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.

Hope that helps,
Brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH3zfnGnOmb9xIQHQRAkuRAKCfBYhAQXzx9Dmm2079cIXQB1VZzQCeOj6B
qNHXfr1lcx2L3vPo6Ia7ROc=
=Evho
-----END PGP SIGNATURE-----

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Gparted resize linux swap partition
    ... I wanted to try Ubuntu. ... partition during initial installation. ... I thought I was specifying 2Gb of swap, ... Also resized the /usr partition accordingly, ...
    (Ubuntu)
  • Re: No Desktop
    ... Ubuntu hibernates to the swap partition. ... I have the Ubuntu system installed on an 80 gb drive connected to a USB ... Total Physical Memory 1,536.00 MB ...
    (Ubuntu)
  • Re: How to Change Size of SWAP Partition at Installation (Solaris 9, Ultra 10)
    ... Oscar del Rio wrote: ... swap partition of at least 512 MB when I INSTALL the OS. ... I think Peter got it right: Start the installation from CD 1, ...
    (comp.unix.solaris)
  • suse 9.0 installation problem
    ... Ok all is done i launch my installation and the system says that i haven't ... So i mount a swap partition from Load File System Modules and selecting ...
    (alt.os.linux.suse)
  • Re: Swap & None, Breezy and Dapper with CF Card.
    ... Until version 5,04 of Ubuntu all run OK, now Breezy and Dapper refuses ... to create the swap partition; he say that cannot mount on "none". ... say "Excuse me for my poor English". ...
    (Ubuntu)