Re: sfdisk: trying to create aligned partitions: fail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 17, 2011 at 11:31:56AM +0200, Giulio wrote:
> I know sfdisk won't automatically align partitions and didn't expect it to
> do it, my email was about sfdisk behaving in an unexpected way:
> - not respecting 1MB as start of partition when I ask for it
> - creating partitions out of order when using sectors

 Try --in-order command line option, the option is undocumented in old
 versions ;-(

 sfdisk --in-order -L -uM /dev/sdb <<-EOF
 1,10,83
 ,,83
 ;
 ;
 EOF

 result (output from fdisk):
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1            2048       22527       10240   83  Linux
    /dev/sdb2           22528      204799       91136   83  Linux



sfdisk --in-order -L -uS /dev/sdb <<-EOF
2048,8000,83
,,83
;
;
EOF

 result (output from fdisk):

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1            2048       10047        4000   83  Linux
    /dev/sdb2           10048      204799       97376   83  Linux



-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux