LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-31-2004, 12:03 AM   #1
robert644
Member
 
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 130

Rep: Reputation: 15
fdisk + thing


when i run fdisk -l , and the output shown is this ...

/dev/hda10 8489 8854 2939863+ 83 Linux

where 2939863+ is the block size, what does the '+' represent ? i can't locate any information about it, perhaps '+' is not an acceptable google search term ?!
 
Old 10-31-2004, 12:41 AM   #2
ror
Member
 
Registered: May 2004
Distribution: Ubuntu
Posts: 583

Rep: Reputation: 33
not entirely sure, but if you're really a newbie (if this is placed in the right forum) then I'd suggest using cfdisk not fdisk, it's a lot more "human readable".
 
Old 10-31-2004, 12:48 AM   #3
ilde
LQ Newbie
 
Registered: Aug 2004
Location: Mexico
Distribution: Debian
Posts: 16

Rep: Reputation: 0
Hi.

83 after the plus sign means "Linux partition"
82 stands for "Linux swap"

If you want to see all other types, you may issue:
fdisk /dev/hda
once inside fdisk, type:
l <ENTER>
It will display a list of partition types.

Please be very cautious when using fdisk in a working system, for you could trash it quite easily!!

Regards.
 
Old 10-31-2004, 01:11 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
Quote:
/dev/hda10 8489 8854 2939863+ 83 Linux
The plus ( + ) or minus ( - ) is rounding up or down and doesn't seem to cause any problems that I know of.
 
Old 10-31-2004, 01:13 AM   #5
robert644
Member
 
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 130

Original Poster
Rep: Reputation: 15
thanks for the replies, i suppose 'newbie' is a rather subjective term depending with whom you are conversing.

i just assumed that the question was of a newbie nature. i suspect it may mean that the partition does not end on the precise end of a block. perhaps (383223+) means (383223 and a half) or some such thing
 
Old 10-31-2004, 01:18 AM   #6
n0xvb
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; openSUSE 11.2
Posts: 255

Rep: Reputation: 34
The + means that the number shown under blocks has been rounded up compared to the number of sectors shown.

For example, I have a laptop with the following fdisk -l output:

Disk /dev/hda: 4327 MB, 4327464960 bytes
240 heads, 63 sectors/track, 559 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 27 204088+ 82 Linux Swap
/dev/hda2 * 28 559 4021920 83 Linux


The disk geometry may or may not match the physical characteristics of the drive (in fact these days it usually does not!) The important number is the units.

The partition listing is using k-bytes instead of the bytes listed by the units. So take the unit size and divide it by 1024.

7741440/1024 = 7560

If I divide 204088 by 7560 then I get the number of secors used

26.99576........

Thus fdisk says I'm using 26 sectors (plus a portion of a k-byte)

Is that clear as mud? Hope it helps!
 
Old 10-31-2004, 01:39 AM   #7
robert644
Member
 
Registered: Aug 2004
Location: internet
Distribution: slackware
Posts: 130

Original Poster
Rep: Reputation: 15
great and thanks, that helps clear up things for me. i appreciate the help
 
  


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
fdisk Jmcatch742 Linux - Newbie 10 08-17-2009 02:11 PM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
fdisk theresaboothe Linux - Newbie 3 01-28-2005 10:08 AM
using fdisk jonn Linux - Newbie 2 08-03-2004 04:10 PM
Where can I get fdisk? Nevetsmik103081 Linux - Software 2 06-18-2003 05:45 PM

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

All times are GMT -5. The time now is 06:09 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