-   Linux - Hardware (
-   -   Extend ext3 Partition Using Unpartitioned Space On Same Hard Drive - Fedora Core 6 (

aaron4katie 01-09-2007 08:46 AM

Extend ext3 Partition Using Unpartitioned Space On Same Hard Drive - Fedora Core 6
I have looked at instructions on this thread:

But that shows how you can mount a new hard drive to the home folder, could I use the same example and mount it to / (root directory)?

I bought a 250GB hard drive and used 200GB for testing Linux, now I want to extend to use the remaining 50GB also.

So... How would I do it, I don't really want to reinstall Fedora.

syg00 01-09-2007 10:02 AM

No, I wouldn't go doing that.
FC6 probably means you are using LVM - see the LVM howto on

aaron4katie 01-09-2007 10:21 AM

The information given just gives examples of how it could be and looks very complicated. I'll try to work something out myself, if I can't I guess I'll reinstall :/

hansalfredche 01-09-2007 02:13 PM

It depends ... if only primary (no extended ones!) partitions have been created you can use a tool like qtparted or Gparted to extend the last partition on the drive AFTER having backed up your data (on another drive, of course). The best is to use a live CD like Knoppix (you must run qtparted as root in Knoppix). If it is LVM I have no idea (as I have no idea what LVM actually is ... ) and if it is an extended partition I know no way to extend it.

Hope this helps

aaron4katie 01-10-2007 04:41 AM

using Knoppix to extend the partition, would it just reformat (and clear all data from the) hard drive, or will it extend the partition and leave all the data as it is? So far I'm thinking I should backup using only a 256 and 512 USB pen drives(although I'll probably take up less than 1MB) and Reinstall Linux, is there a way I can backup the Linux settings, such as the Desktop toolbars (forgot what they're called). Like the transparency of the toolbars and the icons that are on the toolbars that I put there. Could I just save the /home/aaron directory and then replace the newly installed /home/aaron directory with the old one? Or is there a backup user settings option somewhere? :scratch:

hansalfredche 01-10-2007 08:24 AM

As usual ...
It depends on what you are doing and if only primary partitions without LVM are present. But given the right circumstances, yes, you can extend a partition without loosing data.

Well, if you want to backup most USER settings, you can copy the whole /home/yourusername folder which contains them. The setting are usually located in the hidden directories (those beginning with . [dot]).

Yes, you can replace the directory, but it does not always work.

How is your system partitioned? Maybe just backing up the data on the last partition on the disk (which one is it?) then extending it will do the trick.

aaron4katie 01-10-2007 09:02 AM

The hard drive that it is installed onto isn't partitioned, well.. 200GB of it is formatted while the remaining is just raw..unformatted hard drive that can't be used until format.

The formatted partition of the hard drive is where Linux and all programs are installed.

hansalfredche 01-10-2007 12:09 PM

Well, that's not really usefull. Could you open either Qtparted (KDE), Gparted (Gnome) or your distribution's partition manager and tell us how it is partitioned (Filesystem, Partition name like hda1, Logical partition etc.). What is your last partition called? And, please, check if you are using LVM before doing stupid things (don't know how to do that, but a previous poster seem suggesting it is on by default). I'm NOT using Fedora.

aaron4katie 01-11-2007 04:00 AM

I am at college right now so I can't say exact.. but I know that it's like this..

hda1 = ext3 200GB
hda2 = swap/solaris 1700(ish)

Those are the partitioned, but I have unpartitioned space left, I'll try to find some stuff tonight.

hansalfredche 01-11-2007 05:20 AM

If and only if you have only two partitions as you described (swap MUST be hda2) you can do following: Boot Knoppix or any other live distro with swap turned off (make sure your machine has enough Ram: 512MB strongly recommended) - in Knoppix

knoppix noswap desktop=icewm

at boot time. Then open a console, get root privilege, type:


Delete the swap partition, save, extend your main partition, save, then recreate a swap partition at the end (about the same size as now).

Then you can restart Fedora, maybe you will have to resize the ext3 VOLUME (not partition) if its still displayed as 200GB, I don't remember how to do it, but you should find the solution here on LQ or Google.

All times are GMT -5. The time now is 07:42 PM.