Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 02:40 PM.
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.