LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-24-2012, 03:26 AM   #1
Prabhu.Are
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Rep: Reputation: Disabled
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.
 
Old 10-24-2012, 03:32 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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!!
 
Old 10-27-2012, 09:25 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
You might also look at cfdisk, a much easier-to-understand CLI formatting too.
 
1 members found this post helpful.
Old 12-08-2012, 03:42 PM   #4
Prabhu.Are
LQ Newbie
 
Registered: Oct 2012
Posts: 24

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by frankbell View Post
You might also look at cfdisk, a much easier-to-understand CLI formatting too.
cfdisk is launching as FATAL Error.
 
Old 12-08-2012, 03:58 PM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
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.

Last edited by markush; 12-08-2012 at 04:06 PM.
 
Old 12-08-2012, 04:23 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by markush View Post
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.
 
Old 12-08-2012, 04:30 PM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
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
 
Old 12-08-2012, 04:56 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by markush View Post
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.
 
1 members found this post helpful.
Old 12-21-2012, 06:32 AM   #9
alieblice
Member
 
Registered: Jul 2011
Posts: 80

Rep: Reputation: Disabled
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 .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fdisk resize partitioning of a system disk (safe?) ted_chou12 Linux - Newbie 5 09-28-2012 10:42 PM
[SOLVED] fdisk and df giving different hard disk size sysmicuser Linux - Newbie 8 03-14-2012 08:33 AM
Three disk partitioning questions (fdisk) benav Linux - Newbie 4 07-14-2011 05:22 PM
Display Free Hard Disk Space using Fdisk amirsd Linux - Newbie 5 01-27-2010 01:35 PM
Hitachi SCSI hard disk fdisk definition rharvey@cox *BSD 2 10-27-2003 04:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration