LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using fdisk and cfdisk each shows a different partition table (https://www.linuxquestions.org/questions/linux-newbie-8/using-fdisk-and-cfdisk-each-shows-a-different-partition-table-4175477148/)

slacker_ 09-14-2013 04:53 PM

Using fdisk and cfdisk each shows a different partition table
 
I set up my disk with fdisk originally, it displays the following table:
Code:

Device    Boot    Start      End  Blocks Id System
/dev/sda1  *        2048 76043007 38020480 83 Linux
/dev/sda2      76043008 78140159  1048576 82 Linux Swap

but cfdisk shows something quite different:
Code:

Name  Flags    Part Type  FS Type    [Label]  Size (MB)     
                Pri/Log    Free Space                1.05*
sda1  Boot      Primary    ext3                  38932.98* 
sda2            Primary    swap                  1073.75*

Now first of all, I'm not sure what the "*" means in cfdisk, and I have no idea why the part table looks soo wonky compared to how I set it up in fdisk. Can anyone offer some insight?

rknichols 09-14-2013 05:19 PM

They look pretty much equivalent to me. Partition 1 starts at sector 2048, which is 1 MiB (1.048576 MB) into the disk, and has 38020480 1 KiB blocks, which is 38932.97152 MB. My arithmetic for the swap partition also agrees with what cfdisk shows.

According to the manpage (Ahem!) for cfdisk, the asterisk means that the partition is not aligned on cylinder boundaries.

slacker_ 09-14-2013 05:22 PM

Quote:

Originally Posted by rknichols (Post 5027755)
They look pretty much equivalent to me. Partition 1 starts at sector 2048, which is 1 MiB (1.048576 MB) into the disk, and has 3802480 1 KiB blocks, which is 38932.97152 MB. My arithmetic for the swap partition also agrees with what cfdisk shows.

According to the manpage (Ahem!) for cfdisk, the asterisk means that the partition is not aligned on cylinder boundaries.

And now I feel rather stupid. Ha for some reason, even with it spelled out very plainly, I was reading the free space as 1Gb. Thank you for the explanation kind sir (or madam, which ever way your chromosomes were aligned).


All times are GMT -5. The time now is 11:07 PM.