LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-14-2013, 05:53 PM   #1
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Rep: Reputation: 3
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?
 
Old 09-14-2013, 06:19 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 3,615

Rep: Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577Reputation: 1577
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.

Last edited by rknichols; 09-14-2013 at 06:23 PM.
 
Old 09-14-2013, 06:22 PM   #3
slacker_
Member
 
Registered: Aug 2013
Distribution: Arch, Debian, Slackware
Posts: 333

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by rknichols View Post
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).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fdisk shows wrong partition type BlackTornado Linux - Newbie 3 03-06-2013 03:39 AM
fdisk partition table representation vofka Linux - General 3 06-27-2009 04:20 PM
Fatal error when cfdisk reads partition table on 160GB disk glasisch Linux - Newbie 1 05-22-2005 11:44 AM
Cant get fdisk or cfdisk to partition my 20gig Bytes disk Heath Linux - Newbie 3 05-19-2004 06:08 AM
can fdisk or cfdisk resize a fat32 partition? toastermaker Linux - Software 6 01-29-2004 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration