[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2181
  • Last Modified:

Resizing an ext3 filesystem

In a RHES v3 environment, how do I re-size (shrink) an ext3 filesystem? The solution can require the filesystem to be unmounted.

"parted" doesn't seem to be able to do this - the parted v1.6.25 we have claims that it doesn't understand ext3, or that the "ext2 filesystem looks funny". Yes, the GNU docs list ext3 as a supported filesystem.

e2fsprogs seems to require a v2.6 kernel, which is not presently an option.

We tried Knoppix, but it mounts (and won't let us unmount) the server's root filesystem.
0
PsiCop
Asked:
PsiCop
  • 4
  • 3
2 Solutions
 
rindiCommented:
Have you tried using knoppix without mounting the filesystem first? You should be able to use QtParted then which comes on knoppix. To resize the partition it shouldn't be mounted anyway.
0
 
PsiCopAuthor Commented:
Knoppix insists on mounting it on its way to Run Level 5. And once its mounted, it won't let us umount it. We want to get to QtParted, but we can't get Knoppix to NOT mount the partition.
0
 
rindiCommented:
I've never seen knoppix mounting a partition by itself, except if it is a swap partition or finds a swap file. Have you tried the cheatcodes to boot knoppix without a swap partition? What knoppix version is it?
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
PsiCopAuthor Commented:
I'm actually helping a co-worker with this.

The issue seems to be that Knoppix is loading its automounter, and the automounter is mounting the root partition from the HDD.

I don't know the specific Knoppix version, altho I do know its fairly recent. Also, cheat codes have been tried.
0
 
rindiCommented:
Maybe you could try using the UBCD, full version. it includes "Insert", a small linux version based on DSL, and that might work. I think it also has QtParted.

http://ultimatebootcd.com
0
 
ppfoongCommented:

Download the bootable CD image of GPartEd, burn it into CDR, and boot from it. You can manipulate the partition table with its user friendly GUI interface.

http://gparted.sourceforge.net

0
 
PsiCopAuthor Commented:
Well, I think my co-worker is giving up. It's his choice. I'll split the points. Thanks to all who responded.
0
 
rindiCommented:
Thanks anyway.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now