LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-01-2007, 02:37 AM   #1
whitts
LQ Newbie
 
Registered: May 2007
Posts: 3

Rep: Reputation: 0
Parted & Fdisk Problems


Help ......

The problem I have is with increasing / , I have tried to use parted when booting from the linux cd but I get the following:

error : Filesystem has incompatible feature enabled

Workstation is running : Red Hat Enterprise Linux WS release 4 (Nahant Update 4)
Kernel 2.6.9-42.ELsmp on an x86_64 with parted version arted-1.6.19-4.EL. I have also tried to boot from a Ubuntu 7.04 cd which has anew version of parted (1.7 I think) but still the same.

Below is then disk info :

fdisk -l
Disk /dev/sda: 1999.9 GB, 1999957393408 bytes
255 heads, 63 sectors/track, 243147 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25 200781 83 Linux
/dev/sda2 26 191248 1535998747+ 8e Linux LVM
/dev/sda3 191249 193288 16386300 82 Linux swap
/dev/sda4 193289 239666 372531285 5 Extended
/dev/sda5 193289 194563 10241406 83 Linux
/dev/sda6 194564 195838 10241406 83 Linux

parted /dev/sda
Using /dev/sda
(parted) p
Disk geometry for /dev/sda: 0.000-1907308.000 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 196.105 primary ext3 boot
2 196.106 1500194.882 primary lvm
3 1500194.883 1516197.128 primary linux-swap
4 1516197.129 1879997.211 extended
5 1516197.160 1526198.532 logical ext3
6 1526198.563 1536199.936 logical ext3

What I am trying to do is increase /dev/sda6 from 10Gb to 20Gb???

Hope you can help??
 
Old 05-02-2007, 05:01 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
Do you have another drive you can install in the box, or are you on a lan where you have another box with enough space? If so, the obvious way would be to rsync your root partition onto the other drive or box, fdisk the drive, make a filesystem, and rsync back. I haven't tried the magic utilities that do funny things to filesystems because the simple way is a lot safer (at least I can understand it).
 
Old 05-03-2007, 02:14 AM   #3
whitts
LQ Newbie
 
Registered: May 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Fixed it ..... & just incase anyone else has the same problem this is what I did ....

Made sure I had a backup first ..

- First had to convert the partition from a ext3 to a ext3 (tune2fs -O^has_journal /dev/partition)

- Boot off cd and go into rescue mode ..

- Use fdisk and print partition table and then make a note off the start & end cylinders of that partition and then work out what I will be changing it to.

- Delete the partition

- Create new partition but make sure it starts with the same starting cylinder .....

- save changes and then you will need to resize the filesystem to fit your new partition (resize2fs /dev/partition)

- Reboot and away you go .....

Thanks

Scott
 
  


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
What app can REALLY delete a partition? (not fdisk, parted, etc...) kornerr Linux - General 4 05-28-2005 12:14 PM
fdisk/parted/cfdisk: command not found indole Linux - Software 2 02-17-2005 12:08 PM
parted && fdisk error costinc Linux - Hardware 2 12-19-2004 12:39 PM
fdisk, parted questions? darkleaf Linux - Software 2 10-14-2004 04:07 AM
workaround for parted bug using fdisk and resize2fs carneros Linux - Newbie 2 10-05-2004 12:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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