LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-22-2004, 11:14 AM   #1
Jmcatch742
Member
 
Registered: Jul 2004
Distribution: Mepis, Ubuntu, Slackity slack
Posts: 159

Rep: Reputation: 30
fdisk


Can somebody explain to me in detail what fdisk is, how do I get to it, and how do I work it? Thank you.

Jmcatch742
 
Old 08-22-2004, 11:20 AM   #2
scuzzman
Senior Member
 
Registered: May 2004
Location: Hilliard, Ohio, USA
Distribution: Slackware, Kubuntu
Posts: 1,851

Rep: Reputation: 47
fdisk is a utility to create/delete/resize partitions
see here or here or here.
 
Old 08-22-2004, 12:13 PM   #3
peace
Member
 
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
Try:

man fdisk

Also check out cfdisk (a little more easy to use):

man cfdisk

<edit> By the way, both those programs are normally in /sbin/. </edit>

Last edited by peace; 08-22-2004 at 12:17 PM.
 
Old 08-22-2004, 12:18 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
hi there

no matter what u see about the help pages oin fdisk be sure to use very carefullly

i too have faced some problems with fdisk
also i have got to know that cfdisk is a better option ,thoough i haven't used it

regards
gaurav
 
Old 08-16-2009, 01:03 PM   #5
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
fdisk

If only they used the same denotation, moreover make it plain, especially as it may ruin your os.

fred.
 
Old 08-16-2009, 01:13 PM   #6
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,796

Rep: Reputation: 213Reputation: 213Reputation: 213
Getting to it...

In any linux installation or live-cd, open a terminal and with root privileges, type the command. It's use is frequently asked of poster to the forum in response to questions about partitioning problems, in the form of "fdisk -l", to list a partition table.

Last edited by thorkelljarl; 08-16-2009 at 03:40 PM.
 
Old 08-16-2009, 03:34 PM   #7
:::
Member
 
Registered: Aug 2009
Distribution: slackware 12.2
Posts: 51

Rep: Reputation: 17
Quote:
Can somebody explain to me in detail what fdisk is
fdisk is a partition program, i.e. you can create/delete partitions, change their id &c. on a given hard drive.
Quote:
[...], how do I get to it
- open terminal
- change to root
- type: fdisk -l
you'll get something like:
Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         123      987966   82  Linux swap
/dev/hda2             124         610     3911827+  83  Linux
/dev/hda3             611        1219     4891792+  83  Linux
/dev/hda4            1220        4865    29286495   83  Linux
see the 1st column, i.e. /dev/hdaX, where X is a nr.? hda means "hard drive a" (as opposed to "hard drive b, hard drive c", which i don't have). the numbers 1-4 are the partitions. so the output says i have one hard drive called hda with 4 partitions on it (hda1, hda2, hda3 and hda4), fdisk operates on hard drives not partitions.
Quote:
[...], and how do I work it?.
to manipulate hda i have to type, as root of course (indicated by '#'):
Code:
# fdisk /dev/hda
you'll see something like this:
Code:
The number of cylinders for this disk is set to 4865.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):
now press m for help, p for print partitions (which is essentially the same as fdisk -l). be sure to know what you want to do. for everything else see the man page ($ man fdisk). easy.

Last edited by :::; 08-16-2009 at 03:36 PM.
 
Old 08-16-2009, 07:25 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
This is good from The Linux Doc Project: http://tldp.org/HOWTO/Partition/fdisk_partitioning.html
 
Old 08-16-2009, 07:29 PM   #9
scottro11
Member
 
Registered: Jun 2009
Location: NYC
Posts: 260

Rep: Reputation: 59
I have my own little page on it, that some have found helpful. It's very dated (using hdX nomenclature, rather than sdX), but...

http://home.roadrunner.com/~computertaijutsu/fdisk.html
 
Old 08-17-2009, 12:33 PM   #10
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
fdisk

Dear scot,
now that makes sense, i.e., comprehensible by a non- expert, one question, however, does an extended partition, and that lies within, count as a mounted partition even though it might have a different name?

Many thanks, fred.
 
Old 08-17-2009, 02:11 PM   #11
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
I love it how 5 year old threads get revived. Are you working in the medical profession? If not, you missed your profession
 
  


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
using fdisk jonn Linux - Newbie 2 08-03-2004 04:10 PM
fdisk rogk Linux - General 4 07-24-2004 03:25 PM
Fdisk rstmn957 Slackware 2 12-23-2003 08:15 PM
can't fdisk new hd nmistry Linux - Hardware 4 11-03-2003 11:43 AM

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

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