LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-09-2007, 08:46 AM   #1
aaron4katie
Member
 
Registered: Dec 2006
Location: Bristol, England
Distribution: Fedora Core 6
Posts: 77

Rep: Reputation: 15
Extend ext3 Partition Using Unpartitioned Space On Same Hard Drive - Fedora Core 6


I have looked at instructions on this thread:

http://www.linuxquestions.org/questi...d.php?t=516020

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.
 
Old 01-09-2007, 10:02 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,130

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
No, I wouldn't go doing that.
FC6 probably means you are using LVM - see the LVM howto on tldp.org.
 
Old 01-09-2007, 10:21 AM   #3
aaron4katie
Member
 
Registered: Dec 2006
Location: Bristol, England
Distribution: Fedora Core 6
Posts: 77

Original Poster
Rep: Reputation: 15
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 :/
 
Old 01-09-2007, 02:13 PM   #4
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
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
 
Old 01-10-2007, 04:41 AM   #5
aaron4katie
Member
 
Registered: Dec 2006
Location: Bristol, England
Distribution: Fedora Core 6
Posts: 77

Original Poster
Rep: Reputation: 15
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?
 
Old 01-10-2007, 08:24 AM   #6
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
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.
 
Old 01-10-2007, 09:02 AM   #7
aaron4katie
Member
 
Registered: Dec 2006
Location: Bristol, England
Distribution: Fedora Core 6
Posts: 77

Original Poster
Rep: Reputation: 15
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.

Last edited by aaron4katie; 01-10-2007 at 09:26 AM.
 
Old 01-10-2007, 12:09 PM   #8
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
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.
 
Old 01-11-2007, 04:00 AM   #9
aaron4katie
Member
 
Registered: Dec 2006
Location: Bristol, England
Distribution: Fedora Core 6
Posts: 77

Original Poster
Rep: Reputation: 15
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.
 
Old 01-11-2007, 05:20 AM   #10
hansalfredche
Member
 
Registered: Jun 2005
Posts: 445

Rep: Reputation: 31
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:

qtparted

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add disc to RAID5 and extend 1 partition to use that space. fellz Linux - Hardware 1 11-16-2006 06:34 PM
How do I extend an ext3 partition? chrislev Linux - Hardware 2 01-27-2006 10:35 AM
How can I extend my partition which is running out of space bloretech Linux - Enterprise 1 09-21-2005 09:20 PM
My /home partition shows up as unpartitioned space! purplecow Linux - Hardware 2 07-06-2004 05:20 PM
howto extend ext3 partition compfriend Linux - Hardware 1 09-16-2003 10:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration