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 - 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 04-18-2004, 09:27 AM   #1
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Rep: Reputation: 153Reputation: 153
Resizing a partition


I have Redhat 9 installed on a 40gb drive. With it's imminent demise I want to reduce its / partition to free up space for another distro.

I've tried qparted on knoppix but the resize option is greyed out.

Has anyone any suggestions.


AK
 
Old 04-18-2004, 11:22 AM   #2
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
try umounting the drive first
 
Old 04-18-2004, 11:24 AM   #3
Joey.Dale
Member
 
Registered: Jun 2003
Location: Tampa, Fl
Distribution: Gentoo, Slackware
Posts: 828

Rep: Reputation: 39
try umounting the drive first

-Joey
 
Old 04-19-2004, 04:35 AM   #4
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
Had a partition with fedora installed so I used parted from the command line. It failed to resize the partition but gave me a meaningful message -

"This ext2 file system has a rather strange layout"

Googled the error. It would seem you can't, not yet, resize a ext3 partition. Somebody suggested converting it back to ext2 resizing it and then converting it back to ext3!

Converted it to ext2. Could resize but it failed!!

Somebody else suggested that the partition could be deleted and then re-created with the new size and as long as it started at the same point the data would be there!!! Am I gullable or what!!!!

Tried it and guess what the data wasn't there!!!!!! Only lost+found.

At least I had a backup of the data. Restoring at the moment. If that fails it's goodbye Redhat.

AK
 
Old 04-22-2004, 03:06 AM   #5
aikempshall
Member
 
Registered: Nov 2003
Location: Bristol, Britain
Distribution: Slackware
Posts: 902

Original Poster
Rep: Reputation: 153Reputation: 153
Restored succsessfully from backup.

The only problem was that I hadn't labeled the partition. So amended
/etc/fstab to use /dev/hdc2 instead of the label and redhat booted up perfectly.

Good learning experience!!!!
 
  


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
Resizing my partition microsoft/linux Debian 63 01-16-2006 03:59 AM
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 12:42 PM
resizing partition greg108 Red Hat 1 08-12-2004 01:23 PM
need help resizing an ext3 partition with an underlying partition... spiroth10 Linux - Software 1 07-30-2004 12:21 PM
Resizing a Partition? h1tman Linux - General 3 08-08-2003 10:21 PM

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

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