<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:courier,monaco,monospace,sans-serif;font-size:10pt"><div>Hi Dev,<br><br>I have a scsi drive and used parted to partition with gpt label.<br>I wanted to create a partition for 1024MB and gave as below<br>on the command line.<br><br>parted /dev/sda mkpart primary ext2 0 1024<br><br>I have got the below output. When i listed with unit in sectors,it used only<br>1999967 secotors which is 1999967*512/1048576 = 976.5 MB.<br>Why it's created a partition of 976MB when requested was 1024MB.<br><br><br>Disk /dev/sda: 73.4GB<br>Sector size (logical/physical): 512B/512B<br>Partition Table: gpt<br>&nbsp;<br>Number&nbsp; Start&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp; File system&nbsp; Name&nbsp;&nbsp;&nbsp;&nbsp; Flags<br>&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 17.4kB&nbsp; 1024MB&nbsp; 1024MB&nbsp; ext3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 primary<br><br><br>/sbin/parted /dev/sdb unit s print<br>Number&nbsp; Start&nbsp;&nbsp; End&nbsp;&nbsp;&nbsp;&nbsp; Size&nbsp;&nbsp;&nbsp; File system&nbsp; Name&nbsp;&nbsp;&nbsp;&nbsp; Flags<br>&nbsp;1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 34&nbsp;&nbsp;&nbsp;&nbsp; 2000000 1999967&nbsp;&nbsp;&nbsp; ext3&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; primary<br><br>Also, is there any way to specify in sectors instead of MB while creating<br>partition.<br><br><br>Thanks,<br>Kamesh<br></div></div><br>
                <hr size=1> 
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the <a href="http://uk.rd.yahoo.com/mail/uk/taglines/default/championships/quiz/*http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk/">Yahoo! Mail Championship</a>.</body></html>