[parted-devel] Parted Query
kamesh waran
sjkameshwaran at yahoo.co.in
Tue Mar 27 02:25:23 CET 2007
Hi Dev,
I have a scsi drive and used parted to partition with gpt label.
I wanted to create a partition for 1024MB and gave as below
on the command line.
parted /dev/sda mkpart primary ext2 0 1024
I have got the below output. When i listed with unit in sectors,it used only
1999967 secotors which is 1999967*512/1048576 = 976.5 MB.
Why it's created a partition of 976MB when requested was 1024MB.
Disk /dev/sda: 73.4GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 1024MB 1024MB ext3 primary
/sbin/parted /dev/sdb unit s print
Number Start End Size File system Name Flags
1 34 2000000 1999967 ext3 primary
Also, is there any way to specify in sectors instead of MB while creating
partition.
Thanks,
Kamesh
___________________________________________________________
All New Yahoo! Mail – Tired of unwanted email come-ons? Let our SpamGuard protect you. http://uk.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/parted-devel/attachments/20070327/da80c884/attachment.html
More information about the parted-devel
mailing list