how to partitioning the hard disk using fdisk command
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.