LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   how to partitioning the hard disk using fdisk command (http://www.linuxquestions.org/questions/linux-desktop-74/how-to-partitioning-the-hard-disk-using-fdisk-command-4175433800/)

Prabhu.Are 10-24-2012 04:26 AM

how to partitioning the hard disk using fdisk command
 
HI, I'm trying to format the unallocated space by using fdisk command, In a point it ask me to give the
"First cylinder (2662-5283, default 2662):" value but I'm not sure whether this is the place where to give the space of the partition or not. Please assist me in this.

pixellany 10-24-2012 04:32 AM

It will prompt you for the starting point of the new partition--after you enter that, it will then prompt you for the size. Enter "man fdisk" for details of the syntax.

For a more user-friendly partition editor, try GParted.

And--Welcome to the forum!!

frankbell 10-27-2012 10:25 PM

You might also look at cfdisk, a much easier-to-understand CLI formatting too.

Prabhu.Are 12-08-2012 04:42 PM

Quote:

Originally Posted by frankbell (Post 4816486)
You might also look at cfdisk, a much easier-to-understand CLI formatting too.

cfdisk is launching as FATAL Error.

markush 12-08-2012 04:58 PM

If you only want to create a new partition, this is most easily done with fdisk, it gives you as default the first and the last available cylinder, this means if you press enter in both cases you'll have the new partition exactly in the free space.

Markus

Edit: don't forget to reboot after partitioning, the kernel recognizes the new partitiontable not before rebooting! This is important.

TobiSGD 12-08-2012 05:23 PM

Quote:

Originally Posted by markush (Post 4845372)
Edit: don't forget to reboot after partitioning, the kernel recognizes the new partitiontable not before rebooting! This is important.

On Linux this is usually not a problem at all, after fdisk has written the new partition table it causes the kernel to re-read the partition table and you can simply continue with creating a file-system on the partition.

markush 12-08-2012 05:30 PM

Quote:

Originally Posted by TobiSGD (Post 4845381)
On Linux this is usually not a problem at all, after fdisk has written the new partition table it causes the kernel to re-read the partition table and you can simply continue with creating a file-system on the partition.

Not here, for sure, I've often repartitioned my drives and read the warning that the kernel will reread the partitiontable while rebooting.

Are you sure that the kernel rereads the partitiontable after fdisk has written it? I mean, it's clear for a live-system while installation. What I mean is a normaly running system where the disk is in use.

Markus

TobiSGD 12-08-2012 05:56 PM

Quote:

Originally Posted by markush (Post 4845385)
Not here, for sure, I've often repartitioned my drives and read the warning that the kernel will reread the partitiontable while rebooting.

Are you sure that the kernel rereads the partitiontable after fdisk has written it? I mean, it's clear for a live-system while installation. What I mean is a normaly running system where the disk is in use.

Markus

If you read that warning again, you will notice that it says that DOS-based systems need to reboot. I do that all the time, with disks that are in use and disks that are currently not in use, never had a problem.

alieblice 12-21-2012 07:32 AM

theres a tutorial here
www.thegeekstuff.com/2010/09/linux-fdisk/

after making changes you can run 'partprobe ' command as root to make kernel understand new changes instead of doing reboot for that .


All times are GMT -5. The time now is 03:53 PM.