LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to use Fdisk in Linux ? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-fdisk-in-linux-884300/)

gardenair 06-03-2011 05:51 AM

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

EricTRA 06-03-2011 05:57 AM

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

gardenair 06-03-2011 06:16 AM

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 ?

EricTRA 06-03-2011 06:18 AM

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

gardenair 06-03-2011 06:46 AM

thanks for the reply. Well any good web site which you recommend in which i can read its tutorial from scratch ?

syg00 06-03-2011 06:49 AM

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 ?.

gardenair 06-03-2011 06:55 AM

thanks for guiding me. :hattip:

EricTRA 06-03-2011 07:07 AM

Quote:

Originally Posted by gardenair (Post 4375029)
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

MTK358 06-03-2011 09:42 AM

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


All times are GMT -5. The time now is 05:04 PM.