[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Parted 1.4.20 bug report
From: |
ajs372 |
Subject: |
Parted 1.4.20 bug report |
Date: |
Sat, 27 Oct 2001 17:28:49 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010726 Netscape6/6.1 |
Hello,
The effect of the bug is as follows:
Summary:
-I resized my extended partition to fill the disk.
-I moved the contained partitions towards the end of the extended
partition
-I resized my extended partition to eliminate free space in the
beginning of the partition.
-As a result. One of the inner partitions has intact directory
structure, but corrupted filenames.
-The other seems to be in perfect condition.
Full description.
My original partition configuration was:
Disk geometry for /dev/hda: 0.000-29333.390 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 3004.343 primary FAT boot
2 3004.343 5004.624 primary ext2
4 5004.624 5130.131 primary linux-swap
3 5130.132 20010.651 extended lba
5 5130.163 9640.568 logical FAT
6 9640.600 20010.651 logical FAT
I wanted to increase the size of my ext2 partition(minor=2), so I
started by increasing the extended(minor=3) to fill the disk.
(parted) resize 3 5130.132 29333.390
(parted) print
Disk geometry for /dev/hda: 0.000-29333.390 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 3004.343 primary FAT boot
2 3004.343 5004.624 primary ext2
4 5004.624 5130.131 primary linux-swap
3 5130.132 29329.606 extended lba
5 5130.163 9640.568 logical FAT
6 9640.600 20010.651 logical FAT
I then proceeded to reposition the last(minor=6).
20020.651 - 9640.600 = 10370.051 = size of 6
29329.606 - 10370.051 = 18959.555 = new beginning pos for 6
(parted) resize 6 18959.555 29329.606
(parted) print
Disk geometry for /dev/hda: 0.000-29333.390 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 3004.343 primary FAT boot
2 3004.343 5004.624 primary ext2
4 5004.624 5130.131 primary linux-swap
3 5130.132 29329.606 extended lba
5 5130.163 9640.568 logical FAT
6 18959.555 29329.606 logical FAT lba
I then proceeded to reposition the second to last(minor=5)
9640.600 - 9640.568 = 0.032 = previous distance between partitions
9640.568 - 5130.163 = 8510.405 = size of 5
18959.555 - 0.032 - 8510.405 = 10449.118 = new beginning pos for 5
(parted) move 5 10449.118
(parted) print
Disk geometry for /dev/hda: 0.000-29333.390 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 3004.343 primary FAT boot
2 3004.343 5004.624 primary ext2
4 5004.624 5130.131 primary linux-swap
3 5130.132 29329.606 extended lba
5 10448.525 14958.962 logical FAT
6 18959.555 29329.606 logical FAT lba
Finaly I resized the extended to trim out the free space.
(parted) move 5 10449.118
(parted) print
Disk geometry for /dev/hda: 0.000-29333.390 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 3004.343 primary FAT boot
2 3004.343 5004.624 primary ext2
4 5004.624 5130.131 primary linux-swap
3 5130.132 29329.606 extended lba
5 10448.525 14958.962 logical FAT
6 18959.555 29329.606 logical FAT lba
When It was finished I mounted 6 (mount -t vfat /dev/hda6 /mnt/win_e)
An "ls" showed the directory structure was intact, but decending into a
subdiretory (music) performing an "ls" revealed a severly garbled set of
files along with some completely intact. The garbled filnames were
composed random alphabetic and non alphabetic characters. To be sure the
files with correct file names were intact, I played several of the
mp3's, which seemed to be completely ok.
I mouted 5 and examined the directory stucture and file listings, and
everything on 5 seemed to be in perfect condition.
I have a list of the directory contents(/mnt/win_e/music) before the
parted actions, if it would be of use. If you need any more info, please
email me. I will attempt not to reboot as long as possible.
Regards,
Andy Somerville
- Parted 1.4.20 bug report,
ajs372 <=