Hi 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 Flags lx88245:~ # 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 Flags 1 1kB 1065MB 1065MB primary type=83 lx88245:~ # 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 Flags lx88245:~ # 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 Flags 1 32kB 1069MB 1069MB primary ext3 type=83 lx88245:~ # 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 Flags 1 1kB 1071MB 1071MB primary type=83 lx88245:~ # 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
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 Regards Masthan On 8/25/06, MASTHAN DUDEKULA <d.mastan@gmail.com> wrote:
Hi 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 Flags
lx88245:~ # 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 Flags
1 1kB 1065MB 1065MB primary type=83
lx88245:~ # 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 Flags
lx88245:~ # 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 Flags
1 32kB 1069MB 1069MB primary ext3 type=83
lx88245:~ # 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 Flags
1 1kB 1071MB 1071MB primary type=83
lx88245:~ #
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
I've always had good luck with qtparted, especially when I boot from a stand-alone knoppix. Last weekend, during a BLU installfest, while installing SuSE 10.1 from the DVD on a Dell laptop, the resize of the Windows XP NTFS partition failed. We corrected it by running the Windows chkdisk command, then I booted Knoppix. QTParted reported an error, and I reran chkdsk again, then booted Knoppix and QTParted was able to resize the partition properly. After resizing, I booted Windows just to make sure it would run before we installed SuSE 10.1. The attendee was able to install SuSE 10.1 successfully. After the install of SuSE 10.1, the attendee was able to boot Windows. The standard practice I have been using at installfests is to be very paranoid and always make sure that Windows runs before and after the Linux install. The bottom line for me is that QTParted seems to be very solid even though it uses the GNU parted libraries, and I have had issues with other GNU parted front ends. -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
participants (2)
-
Jerry Feldman
-
MASTHAN DUDEKULA