PDA

View Full Version : [ubuntu] Removing unwanted Ubuntu versions



jimw
July 17th, 2009, 05:24 AM
The other day, I installed Ubuntu 9.04. The problem was, though I had a good deal of empty space, it jammed the 9.04 into such a small space that each of its various sections (Desktop, for instance) have about 68K, IIRC.

Among other things, this means there isn't room to download or install anything.

By some means, I have a multiple boot system, including the Ubuntu 9.04, and 8.10 kernel versions 2.6.27-14, xxx-11, xxx-09, and xxx-07.

I'm finding it useful to have xxx-14 at least on my system, and I've still got 12.5 Gig free space left in my HD.

In searching through Google, I did come across a command, sudo apt-get remove --purge, which is supposed to do the trick. Unfortunately, no matter how I word it, it gives me the message "Couldn't find package."

Is there anyone out there who could give me some hints on this?


JimW

chronographer
July 17th, 2009, 05:27 AM
What you are probably doing is not removing old partitions. You should read up about it, handle with care and then try to use gparted to get rid of the ones you are not using. Then resize the partition you are using to take up all the freed up space.

If you want help then post the output of "sudo fdisk -l" here.

jimw
July 17th, 2009, 06:14 AM
What you are probably doing is not removing old partitions. You should read up about it, handle with care and then try to use gparted to get rid of the ones you are not using. Then resize the partition you are using to take up all the freed up space.

If you want help then post the output of "sudo fdisk -l" here.

Disk /dev/sda: 40 GB, 40057113600 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4357 34997571 83 Linux
/dev/sda2 4358 4870 4112640 5 Extended
/dev/sda6 4358 4661 2433847 83 Linux
/dev/sda7 4662 4683 168682 82 Linux swap
/dev/sda5 4684 4870 1494045 82 Linux swap

Disk /dev/sdb: 2 GB, 2045288448 bytes
16 heads, 63 sectors/track, 3963 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 3964 1997824 b FAT32
Warning: Unable to open /dev/scd2 read-write (Read-only file system). /dev/scd2 has been opened read-only.
Error: /dev/scd2: unrecognised disk label

chronographer
July 19th, 2009, 01:32 AM
What I think you have is two installed Linuxs. If you have no data that you want to save I would recommend a reinstall and the use of the option "use entire disk" when prompted for partitioning. This way the whole 40 gig will be used for Linux and it will be plenty of space for your day to day use.

If you want a robust setup so that you can install a new version of Ubuntu later I recommend creating a separate /home partition. If you don't know what this means then just do a normal install.

If you don't want to reinstall, then you must figure out which partitions are current, for help post the contents of /etc/fstab here.

Cheers,

agl

jimw
July 19th, 2009, 05:47 AM
What I think you have is two installed Linuxs. If you have no data that you want to save I would recommend a reinstall and the use of the option "use entire disk" when prompted for partitioning. This way the whole 40 gig will be used for Linux and it will be plenty of space for your day to day use.

If you want a robust setup so that you can install a new version of Ubuntu later I recommend creating a separate /home partition. If you don't know what this means then just do a normal install.

If you don't want to reinstall, then you must figure out which partitions are current, for help post the contents of /etc/fstab here.

Cheers,

agl

What I want is to install 9.04, but have it a dual-boot system along with the most recent 8.10.

JimW

Sef
July 19th, 2009, 09:50 AM
You only need one Linux swap. i would make each Ubuntu about 10 GB; Linux swap about 1 gb and the rest for home.

jimw
July 19th, 2009, 09:59 PM
You only need one Linux swap. i would make each Ubuntu about 10 GB; Linux swap about 1 gb and the rest for home.


I'm sorry, trying to be brief, I left out some important information.

I have three versions of Ubuntu 8.10 on my machine, and because of this the Ubuntu 9.04 is left without enough space to operate or upgrade.

I would like to keep the most recent version of 8.10, at the very least untl I've got all the important stuff switched to 9.04. I have backed up everything onto CDs, but every time I've loaded a new version of Ubuntu, I've found myself missing something.

What I would like to do is to remove kernels 2.6.27-11, 2.6.27-09 and2.6.27-07, without touching 2.6.27-14.

JimW