[<<][pool][>>][..]
Thu Jan 1 17:39:04 CET 2009

resizing ext3 on external hd

got both a fat32 and ext3 partition on there, but i'd like to move the
barrier around.  should be no problem with parted, but apparently
there are some incomatible features activated:

zzz:/# parted /dev/sda check 2
Error: File system has an incompatible feature enabled.  Compatible features are has_journal, dir_index, filetype,
sparse_super and large_file.  Use tune2fs or debugfs to remove features.
zzz:/# parted /dev/sda check 1
zzz:/# debugfs /dev/sda2 -R "feature"
debugfs 1.41.0 (10-Jul-2008)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype sparse_super large_file


zzz:/data/home/tom# debugfs -w /dev/sda2
debugfs 1.41.0 (10-Jul-2008)
debugfs:  feature -ext_attr -resize_inode

fsck.ext3 -f /dev/sda2 -y

# this turned up some errors..

# still:

zzz:~# parted /dev/sda
GNU Parted 1.8.8
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resize 2
Start?  [30.0GB]?
End?  [320GB]? 220GB
Warning: A resize operation on this file system will use EXPERIMENTAL code
that MAY CORRUPT it (although no one has reported any such damage yet).
You should at least backup your data first, and run 'e2fsck -f' afterwards.
OK/Cancel? OK
Error: Found an inode with a incorrect link count.  Better go run e2fsck first!
(parted)


# I'm trying without journal now
zzz:~# tune2fs -O^has_journal /dev/sda2

# nope.. still the same..


# Now trying with resize2fs:

zzz:/data/home/tom# resize2fs /dev/sda2 40000000
resize2fs 1.41.0 (10-Jul-2008)
Resizing the filesystem on /dev/sda2 to 40000000 (4k) blocks.
The filesystem on /dev/sda2 is now 40000000 blocks long.

# ok, the manual says ext3 resizing doesn't work yet..

# switching to fdisk

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x5b6ac646

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1              63    58589054    29294496    c  W95 FAT32 (LBA)
/dev/sda2        58589055   625137344   283274145   83  Linux

# The partition size in sectors:

> (* 8 40000000)
320000000


# this worked fine, but parted didn't want to move it to the end of
# the disk, so i gave up.. in the meanwhile i did something wrong and
# lost the linux partition.  (luckily, there are backups, except for
# the xp+debian image)



[Reply][About]
[<<][pool][>>][..]