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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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.
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.
[...], how do I get to it
- open terminal
- change to root
- type: fdisk -l
you'll get something like:
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.
[...], and how do I work it?.
to manipulate hda i have to type, as root of course (indicated by '#'):
# fdisk /dev/hda
you'll see something like this:
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.
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?