Shrinking ext3 partitions
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Topics > Shrinking ext3 partitions




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Shrinking ext3 partitions  
Gwen Morse


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-24-05 07:46 AM

Is there a package to shrink existsing ext2 or 3 partitions
(recovering some of the unused space for re-partitioning), without
completely destroying the original partition?

Gwen





[ Post a follow-up to this message ]



    Re: Shrinking ext3 partitions  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-24-05 12:46 PM

Gwen Morse wrote:

> Is there a package to shrink existsing ext2 or 3 partitions
> (recovering some of the unused space for re-partitioning), without
> completely destroying the original partition?

Yes, use something like parted or qtparted which is part of the
SystemRescueCD and many other 'Live' Linux CDs;

http://www.sysresccd.org/


--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005





[ Post a follow-up to this message ]



    Re: Shrinking ext3 partitions  
Gwen Morse


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-31-05 07:47 AM

On Sat, 24 Dec 2005 11:37:41 GMT, Lenard <lenard@127.0.0.1> wrote:

>Gwen Morse wrote:
> 
>
>Yes, use something like parted or qtparted which is part of the
>SystemRescueCD and many other 'Live' Linux CDs;
>
>http://www.sysresccd.org/

I downloaded/burned the System Rescue iso and booted up qtparted. It
asked what kind of mouse I was using, and then went into a
partition-magic looking screen.

The only section I could resize was my windows partition (which I
could shrink).

When I choose any of the linux partitions, the options to change the
size are greyed out.

Am I doing something wrong? I don't see any help files. I tried poking
around the qtpartition sourceforge project, but, there's very little
useful information and the forums are dead.

Gwen






[ Post a follow-up to this message ]



    Re: Shrinking ext3 partitions  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-31-05 12:46 PM

Gwen Morse wrote:

> On Sat, 24 Dec 2005 11:37:41 GMT, Lenard <lenard@127.0.0.1> wrote:
> 
>
> I downloaded/burned the System Rescue iso and booted up qtparted. It
> asked what kind of mouse I was using, and then went into a
> partition-magic looking screen.
>
> The only section I could resize was my windows partition (which I
> could shrink).
>
> When I choose any of the linux partitions, the options to change the
> size are greyed out.
>
> Am I doing something wrong? I don't see any help files. I tried poking
> around the qtpartition sourceforge project, but, there's very little
> useful information and the forums are dead.

You should have the options available unless you do not have any free space
on the partition(s) or the partition(s) were uncleanly un-mounted. Check
the available space by reviewing the output from; df -h

You must have and leave (at least) 5% of the partition space free for root.

Yes, help is lacking... qtparted is a GUI frontend to parted, and from
man qtparted;

DESCRIPTION
qtparted  is a GUI for parted looking (by design) like Powerquest Par-
tition Magic.  While this is a work in progress and by  far  not  com-
plete, it is already working nicely.

The manual for GNU parted can be found;

http://www.gnu.org/software/parted/


--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005





[ Post a follow-up to this message ]



    Re: Shrinking ext3 partitions  
Gwen Morse


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-01-06 07:46 AM

On Sat, 31 Dec 2005 11:52:54 GMT, Lenard <lenard@127.0.0.1> wrote:
 
[vbcol=seagreen]
>
>You should have the options available unless you do not have any free space
>on the partition(s) or the partition(s) were uncleanly un-mounted. Check
>the available space by reviewing the output from; df -h

[msPiggy 3] ~ > df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda9              46G   25G   19G  58% /
/dev/hda6             487M   14M  448M   4% /boot
/dev/shm              633M     0  633M   0% /dev/shm
/dev/hda7              11G  3.8G  6.1G  39% /home
/dev/hda5              30G   25G  4.4G  85% /win
/dev/hdc1              55G   17G   35G  32% /winex2


>You must have and leave (at least) 5% of the partition space free for root.

root has 58% free, unless I'm mis-reading it.

I also have to make sure I've shut down cleanly, which I believe
occurs whenever I choose "restart computer" from the kde exit menu.

>Yes, help is lacking... qtparted is a GUI frontend to parted, and from
>man qtparted;
>
>DESCRIPTION
>      qtparted  is a GUI for parted looking (by design) like Powerquest Par
-
>      tition Magic.  While this is a work in progress and by  far  not  com
-
>       plete, it is already working nicely.
>
>The manual for GNU parted can be found;
>
>http://www.gnu.org/software/parted/

From reading the notes on that page, it sounds like I can't shrink my
ext3 partition. "Parted can only shrink hfs and hfs+ file systems".
This may mean "it can only shrink, not grow the partition", or it can
mean "hfs and hfs+ systems are the only ones which can be shrunk". I'm
not sure which way to read the note.

It also mentions that ext3 file systems can be "resized", but, it
doesn't explictly say they can be shrunk.

All of this brings me back to my original problem, which is that I
need to reclaim a spare gig or two of my ex3 partition as free space.

Is there an application that will allow me to reclaim space from
formatted ext3 partitions?

Gwen





[ Post a follow-up to this message ]



    Re: Shrinking ext3 partitions  
Lenard


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-01-06 10:47 PM

Gwen Morse wrote:

<snip>

> [msPiggy 3] ~ > df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hda9              46G   25G   19G  58% /
> /dev/hda6             487M   14M  448M   4% /boot
> /dev/shm              633M     0  633M   0% /dev/shm
> /dev/hda7              11G  3.8G  6.1G  39% /home
> /dev/hda5              30G   25G  4.4G  85% /win
> /dev/hdc1              55G   17G   35G  32% /winex2
>
> 
>
> root has 58% free, unless I'm mis-reading it.

You mis-read it, 58% is used. But the df -h output seems a bit off.....

<snip>

> All of this brings me back to my original problem, which is that I
> need to reclaim a spare gig or two of my ex3 partition as free space.
>
> Is there an application that will allow me to reclaim space from
> formatted ext3 partitions?

ext3 is just ext2 with journalling support, parted should be able to re-size
the partition, remember to keep the start of the partition at the same
spot.

Question; Where is the hda8 partition, I see partition hda9 (/ == root) and
partition hda7 (/home),  but no hda8???

fdisk -l /dev/hda


--
"A personal computer is called a personal computer because it's yours,
Anything that runs on that computer, you should have control over."
Andrew Moss, Microsoft's senior director of technical policy, 2005





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:07 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register