|
From: | MASTHAN DUDEKULA |
Subject: | Re: Bug in parted command . |
Date: | Fri, 25 Aug 2006 12:34:29 +0530 |
For your information, I am using SUSE LINUX Enterprise Server 10 machine and the version of parted tool is 1.6.25.1
lx88245:~ # parted -v
GNU Parted 1.6.25.1
RegardsHi All,Here an intresting issue on parted command.I have a device of size 1074 MB and i tried to create partitions with parted command. The intresting issue is, the start position of first partition is not constant. The following snippet explain you more on this.lx88245:~ # parted -s /dev/sdc print
Disk geometry for /dev/sdc: 0kB - 1074MB
Disk label type: msdos
Number
Start End Size Type File system Flagslx88245:~ # parted -s /dev/sdc mklabel msdos
lx88245:~ # parted -s /dev/sdc mkpart p 0 1065
lx88245:~ # parted -s /dev/sdc print
Disk geometry for /dev/sdc: 0kB - 1074MB
Disk label type: msdos
Number
Start End Size Type File system Flags1
1kB 1065MB 1065MB primary type=83lx88245:~ # parted -s /dev/sdc rm 1
lx88245:~ # parted -s /dev/sdc print
Disk geometry for /dev/sdc: 0kB - 1074MB
Disk label type: msdos
Number
Start End Size Type File system Flagslx88245:~ # parted -s /dev/sdc mklabel msdos
lx88245:~ # parted -s /dev/sdc mkpart p 0 1069
lx88245:~ # parted -s /dev/sdc print
Disk geometry for /dev/sdc: 0kB - 1074MB
Disk label type: msdos
Number
Start End Size Type File system Flags1
32kB 1069MB 1069MB primary ext3 type=83lx88245:~ # parted -s /dev/sdc rm 1
lx88245:~ # parted -s /dev/sdc mklabel msdos
lx88245:~ # parted -s /dev/sdc mkpart p 0 1071
lx88245:~ # parted -s /dev/sdc print
Disk geometry for /dev/sdc: 0kB - 1074MB
Disk label type: msdos
Number
Start End Size Type File system Flags1
1kB 1071MB 1071MB primary type=83lx88245:~ #
In the first ( parted -s /dev/sdc mkpart p 0 1065) and third ( parted -s /dev/sdc mkpart p 0 1071) case the start position of first partition is 1 KB ( first block ) but in second case ( parted -s /dev/sdc mkpart p 0 1069) it is ( 32 kB). Can anyone explain it why it is happening like this ?
is it bug in parted command ?
Your help is appreciated ?
Regards
Masthan
[Prev in Thread] | Current Thread | [Next in Thread] |