Hi!
I am encountering a problem using parted. Below is the command and error message:
Code:
root@testy:/# parted -i /dev/hdb resize 1 1 62880
Warning: Unable to determine if partitions are mounted via /proc/mounts or /etc/mtab. Make sure you don't attempt to resizeor modify mounted file systems. (Even read-only mounted)
Ignore/Cancel? Ignore
No Implementation: This ext2 filesystem has a rather strange layout! Parted can't resize this (yet).
Information: Don't forget to update /etc/fstab, if necessary.
/dev/hdb1 is currently formatted with ext3 filesystem. It is on a 80Gbyte disk. I want to shrink it to 60Gbyte.
what is the problem? What should I do?
edited:
extra information
Code:
root@testy:/# fdisk -l /dev/hdb
Disk /dev/hdb: 81.9 GB, 81964302336 bytes
16 heads, 63 sectors/track, 158816 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 158816 80043232+ 83 Linux
And from parted /dev/hdb print
Code:
root@testy:/# parted /dev/hdb print
Warning: Unable to determine if partitions are mounted via /proc/mounts or /etc/mtab. Make sure you don't attempt to resizeor modify mounted file systems. (Even read-only mounted)
Ignore/Cancel? Ignore
Disk geometry for /dev/hdb: 0.000-78167.250 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 78167.250 primary ext3
Information: Don't forget to update /etc/fstab, if necessary.