Repartitioning Ubuntu

Posted by on Feb 22, 2008 in Technology, UbuntuNo commentsPrint This Post

A couple of weeks ago, I decided to shrink my windozzze partition, and give the extra space to Ubuntu. I’ve been using Linux on and off for some years now, so I have a bunch of commands and methods stored away in my memory, and as such, I remembered that I probably wouldn’t be able to repartition my drive while in Linux, and while one of the partitions (i.e. my root partition) was mounted – and, of course, if I unmounted my root partition, I wouldn’t be able to use any applications located there to execute the repartition… Minor dilemma.Thankfully, Ubuntu has a LiveCD, which, as well as being the installation CD, also has the OS loaded so it can be booted and tested without even installing it on the computer! Handy, eh?

So, I booted into the LiveCD and once it had loaded, was able to run the Partition Editor (System -> Administration -> Partition Editor) application. From here, I switched the Swap off (I was also about to install 2Gb RAM, and thus wanted to shrink my Swap file from 2Gb to 1Gb), resized my Windozzze, Swap and Ubuntu root / partition, and made a cup of tea (milk, no sugar – I’m English, you see).

I finished my brew around the same time Ubuntu finished its little task of repartitioning (I like to drink my tea slowly), and rebooted the system (without the LiveCD), and everything seemed to work well – I had a larger Linux partition, a smaller Windozzze partition, and a smaller Swap file… fantastic – no errors, and no data loss! Then I started running applications – the RAM filled up, and the computer ground to a halt… So, the Swap wasn’t working after all. Bugger.

Opening /etc/fstab
more /etc/fstab
revealed that the Swap is supposed to automount at boot time, so something was obviously amiss, since the Swap clearly wasn’t mounted! I ran
mkswap /dev/hda6
(my Swap partition), and found the problem – the UUID for the partition was different, doh! Changed the UUID for /dev/hda6 in fstab
gksu gedit /etc/fstab
saved, rebooted, and all the lights came on.


Something not quite right? Inaccuracies or invalid code? Didn’t work for you? Don’t like me using Ss instead of Zs? Add a comment below! All comments are welcome. Except spam, because spam is a bit crap.



ASUS Lamborghini VX6-PU17-BK 12.1-Inch Eee PC Netbook (Black)


ASUS Lamborghini VX6-PU17-BK 12.1-Inch Eee PC Netbook (Black)


$685.70


Asus Lamborghini VX6-PU17-BK 12.1″ LED Netbook – Atom D525 1.80 GHz – Black VX6-PU17-BK 41…

T101MT-BU17-BK 10.1 Netbook


T101MT-BU17-BK 10.1 Netbook


$599.99


Asus Eee PC T101MT-BU17-BK 10.1″ LED Net-tablet PC – Atom N450 1.66 GHz – Black T101MT-BU17-BK 202…

CellularFactory: Laptop Computer Security Cable Lock (Silver) for Asus laptop


CellularFactory: Laptop Computer Security Cable Lock (Silver) for Asus laptop


$7.99


Laptop Computer Security Cable Lock (Silver) for Asus laptop . Laptop Computer Security Cable Lock for you to use to lock your laptop computer in an easy way.Features:Lock down your notebooks laptop computer with this unique, individual keys and locks for each computer. Galvanized steel cable for strong protectionEffective protection, anti-thief design keeps the sneakers away The T-bar mechanism b…

Seis De Mayo


Seis De Mayo


$4.29


It wasn’t long after the recording of this, Trey Anastasio’s third–and most warmly idiosyncratic–solo album, that the Phish frontman/guitarist announced that his improvisation-fueled, cult-fave band would record no more. Longtime Phish-heads (or admirers of Anastasio’s previous free-form jazz excursions with Les Claypool and Stewart Copeland and more conventional solo work) may find this ambitio…

Sapphire Video Card 100314-3l Hd 6870 1gb Ddr5 256bit Pci Express D-Dvi/Hdmi/Display Port Retail


Sapphire Video Card 100314-3l Hd 6870 1gb Ddr5 256bit Pci Express D-Dvi/Hdmi/Display Port Retail


$222.69


PCI Express based PC is required with one X16 lane graphics slot available on the motherboard.4X75 Watt 6-pin PCI Express power connector is required for CrossFireX system.2X75 Watt 6-pin PCI Express power connector is required.1024MBMinimum of system memory.Installation software requires CD-ROM drive.DVD playback requires DVD drive.Blu-ray/HD DVD playback requires Blu-ray/HD DVD drive.Blu-ray/HD …

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , , , , ,

Leave a comment