LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Parted & Fdisk Problems (https://www.linuxquestions.org/questions/linux-software-2/parted-and-fdisk-problems-550315/)

whitts 05-01-2007 02:37 AM

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 :parted-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??

Randux 05-02-2007 05:01 PM

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).

whitts 05-03-2007 02:14 AM

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


All times are GMT -5. The time now is 07:06 AM.