How to print partition table in sector order?
root@debian:~# fdisk -ul /dev/sda gives me:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 72962047 72960000 34.8G 83 Linux
/dev/sda2 413618176 488396799 74778624 35.7G 5 Extended
/dev/sda3 72962048 145862655 72900608 34.8G 83 Linux
/dev/sda4 145862656 220833791 74971136 35.7G 83 Linux
/dev/sda5 486397952 488396799 1998848 976M 82 Linux swap / Solaris
the printout is in partition order
I want a printout in sector order like
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 72962047 72960000 34.8G 83 Linux
/dev/sda3 72962048 145862655 72900608 34.8G 83 Linux
/dev/sda4 145862656 220833791 74971136 35.7G 83 Linux
free 220833792 413618175 192784384 91,93 G
/dev/sda2 413618176 488396799 74778624 35.7G 5 Extended
/dev/sda5 486397952 488396799 1998848 976M 82 Linux swap / Solaris
Thanks
root@debian:~# fdisk -ul /dev/sda gives me:
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 72962047 72960000 34.8G 83 Linux
/dev/sda2 413618176 488396799 74778624 35.7G 5 Extended
/dev/sda3 72962048 145862655 72900608 34.8G 83 Linux
/dev/sda4 145862656 220833791 74971136 35.7G 83 Linux
/dev/sda5 486397952 488396799 1998848 976M 82 Linux swap / Solaris
the printout is in partition order
I want a printout in sector order like
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 72962047 72960000 34.8G 83 Linux
/dev/sda3 72962048 145862655 72900608 34.8G 83 Linux
/dev/sda4 145862656 220833791 74971136 35.7G 83 Linux
free 220833792 413618175 192784384 91,93 G
/dev/sda2 413618176 488396799 74778624 35.7G 5 Extended
/dev/sda5 486397952 488396799 1998848 976M 82 Linux swap / Solaris
Thanks
Statistics: Posted by fwm — 2024-03-16 22:01