Fedora Linux Support Community & Resources Center
  #1  
Old 4th February 2006, 01:31 PM
[S|G] Offline
Registered User
 
Join Date: Oct 2005
Location: Santos, SP - Brazil
Age: 31
Posts: 73
Resizing EXT3 partition

Hello, I know there are quite some posts about this around, but it also seems that different partitioning schemes need different approaches...

Well, I currently have a fedora 4 installation that has been working perfectly, but I need more space in my root directory. My disk is as follows:

Code:
Dispositivo Boot      Start         End      Blocks   Id  System
/dev/hda1               1        1305    10482381    7  HPFS ou NTFS
/dev/hda2   *        1306        1321      128520   83  Linux
/dev/hda3           13511       14946    11534670    5  Estendida
/dev/hda4            1322       13510    97908142+  83  Linux
/dev/hda5           13511       14402     7164958+  83  Linux
/dev/hda6           14403       14810     3277228+   b  W95 FAT32
/dev/hda7           14811       14946     1092388+  82  Linux swap / Solaris
My question is: Can I resize my /dev/hda5? I can erase my /dev/hda1 (I haven't used windows for some months now) and possibly my /dev/hda6 (although if possible I'd like to erase hda1 first and avoid messing with hda6).

By the way, I don't seem to have gparted installed on my system, which package should I install?

Thanks a lot!
__________________
[S|G]: How do I use xyz to do abc??
Guru: RTFM
[S|G] I did...
Guru: Man page for xyz, page 1, line 4: --cmd: does abc


Beware! Noob here!
Reply With Quote
  #2  
Old 4th February 2006, 01:44 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
You can't use hda1 to extend hda5. If you delete hda6, you can use that space to extend hda5. Parted can only add space to the end of an ext2/3 partition, it can't move the partition start (without deleting all data in the filesystem).
Gparted is in Fedora Extras, use "yum install gparted".
Reply With Quote
  #3  
Old 4th February 2006, 05:18 PM
Firewing1 Offline
Registered User
 
Join Date: Dec 2004
Location: Canada
Age: 23
Posts: 9,224
Yeah -- My solution would to insead format /dev/hda1 as EXT3, and migrate /home (all the documents) to /dev/hda1. This will not increase the size of your partition, but move stuff off it.
Here's how: (as root)
- Format /dev/hda1 as ext3
- run this command:
Code:
e2label /dev/hda1 /home
- Move old home:
Code:
mv /home /home2
mkdir /home
- edit /etc/fstab, add this line:
Code:
LABEL=/home             /home                   ext3    defaults        1 2
- Mount all drives:
Code:
mount -a
- Copy /home to /dev/hda1:
Code:
cp -a /home2 /home
Now, type
Code:
dh -h
umount /dev/hda1
ls /home
and post the result. If all is well, ( I wanna check to make sure before we remove the original documents then we can remove /home2.)
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #4  
Old 5th February 2006, 12:03 AM
[S|G] Offline
Registered User
 
Join Date: Oct 2005
Location: Santos, SP - Brazil
Age: 31
Posts: 73
Hello, thanks for the answers...

Firewing1, my problem is not the /home partition: it is already in a different partition, /dev/hda4, so I don't have to worry about my files. The problem is that I've ran out of space to install system stuff (hda5 only has 6.6gb, and 230mb free now). My /home folder still has more than 30gb free.

Now, can I move my /usr folder? So I'll have the whole /usr stuff on hda6?
__________________
[S|G]: How do I use xyz to do abc??
Guru: RTFM
[S|G] I did...
Guru: Man page for xyz, page 1, line 4: --cmd: does abc


Beware! Noob here!
Reply With Quote
  #5  
Old 5th February 2006, 12:16 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
Yes, you can move /usr to a separate partition. In principle it happens the same way as moving /home, but it might be best to do the move while booted to rescue mode or from a LiveCD.
Reply With Quote
Reply

Tags
ext3, partition, resizing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
resizing ext3 - how should I do this? Pietri85 Using Fedora 4 14th September 2006 12:28 PM
resizing ext3 partitions jpidro Using Fedora 4 12th October 2005 12:49 PM
Resizing an EXT3 partition msie02 Using Fedora 3 17th June 2005 04:03 PM
Resizing ext3 partitions psycho_circus Hardware & Laptops 6 24th May 2005 01:20 PM
Resizing EXT3 root partition safe? alphonsebrown Using Fedora 7 4th April 2005 03:58 PM


Current GMT-time: 23:32 (Saturday, 25-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Hola Prystan Instagram Photos - Chunghwa - Bharatpur Photos