LinuxQuestions.org
Register a domain and help support LQ
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 06-03-2011, 05:51 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 570

Rep: Reputation: 31
How to use Fdisk in Linux ?


hi,
I have used fdisk command in windows environment.Just insert a bootable cd having fdisk into cdroom and start hard disk partitioning.

I have been working in red hat/fedora Linux since many months.I always use gui interface to do my hard disk partition. Well i am eager to learn Fdisk under Linux. How can I use it ,Its method to create a a fdisk cd or it is in the 1st cd of the operating system ?
please guide me about it
thanks
garden
 
Old 06-03-2011, 05:57 AM   #2
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

Normally fdisk is installed by default. Try by executing:
Code:
fdisk -l
as root or in combination with sudo as user. That should print out all of your partitions. Or isn't that what you mean?

Kind regards,

Eric

Last edited by EricTRA; 06-03-2011 at 05:58 AM. Reason: Typo
 
Old 06-03-2011, 06:16 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 570

Original Poster
Rep: Reputation: 31
thanks for the prompt reply.Well i have used this command and it show the partitions. Fdisk is a command or Disk utility to create new partitions ? For example i want to install Fedora 10 in my pc and I want make partitions of hard disk. Will his will help for creating partition of hard disk or it is always batter to use GUI partition interface ?
 
Old 06-03-2011, 06:18 AM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Hello,

You're welcome and yes you can use this utility to create partitions. Just run:
Code:
fdisk /your/device (for example /dev/sda)
and you'll enter in a console from where you can do what you need to create partitions. It's pretty self-explanatory. Type 'm' to get a menu of commands.

Kind regards,

Eric
 
Old 06-03-2011, 06:46 AM   #5
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 570

Original Poster
Rep: Reputation: 31
thanks for the reply. Well any good web site which you recommend in which i can read its tutorial from scratch ?
 
Old 06-03-2011, 06:49 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,275

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Whenever you weant to know about a command in Linux try "man command" (for a manual/help display - use "q" to quit) or "info command" (this is generally more expansive, but run the tutorial first).

Edit: just saw your post - google should find plenty - maybe tldp.org ?.

Last edited by syg00; 06-03-2011 at 06:52 AM.
 
Old 06-03-2011, 06:55 AM   #7
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 570

Original Poster
Rep: Reputation: 31
thanks for guiding me.
 
Old 06-03-2011, 07:07 AM   #8
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290Reputation: 1290
Quote:
Originally Posted by gardenair View Post
thanks for the reply. Well any good web site which you recommend in which i can read its tutorial from scratch ?
Hello,

The Linux Documentation Project should get you on your way. Have a look here.

Kind regards,

Eric
 
Old 06-03-2011, 09:42 AM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
There's also cfdisk, which provides a more GUI-like (but still text-based and keyboard-controlled) interface that's more intuitive.
 
  


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
understadning /dev/dm-02 mapping and fdisk -l or fdisk -l | less mixxmaster27 Linux - Newbie 2 06-03-2010 12:17 PM
Replacing fdisk with gnu fdisk in busybox? Alkisx Slackware 5 10-23-2009 11:51 AM
from fdisk to linux dankin here General 2 10-06-2007 12:04 PM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
fdisk in linux antken Linux - General 1 01-22-2001 07:00 AM


All times are GMT -5. The time now is 07:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration