LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-13-2004, 07:49 AM   #1
TazG
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Gentoo 2004
Posts: 133

Rep: Reputation: 15
Enlarge ext3


Hi I want to enlarge my ext3 partition (to the left). How can I do this? I tried QtParted but the resize command is disabled for ext3.
 
Old 09-13-2004, 09:09 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 608

Rep: Reputation: 50
If it is disabled for ext3, try mounting it as ext2 (it is possible), then resize, run tune2fs -j to convert to ext3 again and mount as ext3.
 
Old 09-15-2004, 07:02 AM   #3
TazG
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Gentoo 2004
Posts: 133

Original Poster
Rep: Reputation: 15
But all the partitions need to be unmounted to use qtparted!
 
Old 09-17-2004, 07:07 AM   #4
TazG
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Gentoo 2004
Posts: 133

Original Poster
Rep: Reputation: 15
OK, I have an idea, somebody tell me if this wouldn't work:
1. Make an image of the partition with Partimage
2. Delete the partition
3. Make a bigger one in its place
4. "Restore" the partition from the image
 
Old 09-17-2004, 09:21 AM   #5
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
I have just doubled the size of my root partition.
First made a tar dump of it on another disk. If you do not have 1 2nd HD dump to CD or DVD if possible.
booted up with rescue CD.
Deleted old partition with fdisk. Then remade it 4GB was 2GB.
on /dev/hda2
made new filesystem in my case mkreiserfs /dev/hda2
mounted new partition mount -t reiserfs /dev/hda2 /mnt
cd /mnt
tar -zxvf /disk2/dumps/server.taz
I use grub to boot so it did not need to be rerun.
I hope this gives you some idears.
 
Old 09-17-2004, 11:21 AM   #6
TazG
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Gentoo 2004
Posts: 133

Original Poster
Rep: Reputation: 15
That's pretty much what my idea was except I would be using Partimage instead of tar and QtParted instead of fdisk... so I guess that's what I'll be doing.
 
Old 09-18-2004, 08:11 AM   #7
TazG
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Gentoo 2004
Posts: 133

Original Poster
Rep: Reputation: 15
Um, it worked, I think...
If I go into QtParted (on rescue CD), it shows that the partition is big... but df (from CD or from my system) says it's still small! Why??
 
Old 09-18-2004, 03:55 PM   #8
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
Um, it worked, I think...
If I go into QtParted (on rescue CD), it shows that the partition is big... but df (from CD or from my system) says it's still small! Why??
Resizing the partition is half the job and resizing the filesystem to fit the new partition size is the rest of your job. That is done with the resize2fs command while booted up in the rescue cd.

For example....
If you enlarged /dev/hda2 , you need to resize the filesystem to match....
In this case, because you are enlarging the filesystem, you can leave out the size argument and let the command automatically resize correctly.
e2fsck -f /dev/hda2
resize2fs -f /dev/hda2


If you where going to shrink the partition size, then you need to shrink the filesystem first and specify the size which you want it to be.
For example..
e2fsck -f /dev/hda2
resize2fs /dev/hdb2 8000M
will set the filesystem size to 8GB inside a partition. Then I would recreate the partition and re- run the resize command with no size argument to make sure it fits correctly.
e2fsck -f /dev/hda2
resize2fs -f /dev/hda2

Last edited by homey; 09-18-2004 at 03:56 PM.
 
Old 09-19-2004, 10:33 AM   #9
TazG
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Gentoo 2004
Posts: 133

Original Poster
Rep: Reputation: 15
Oh I see... Well thankyou, I did what you said and everything's good now.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
To enlarge viewable screen grautu SUSE / openSUSE 3 10-12-2005 09:28 AM
How to enlarge NTFS partition from Linux? zaoka Linux - Software 6 09-04-2005 05:23 PM
How do I enlarge fonts in the GIMP? tigerflag Linux - Software 3 06-26-2005 10:03 AM
How to enlarge the number of tty ? linux521 Linux - Newbie 2 04-14-2005 04:21 AM
How to enlarge my Linux partition westspider Linux - Software 3 03-22-2005 05:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:39 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