LinuxQuestions.org
Help answer threads with 0 replies.
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: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
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
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,342

Rep: Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385Reputation: 1385
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,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
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: Hanover, Germany
Distribution: Gentoo
Posts: 15,364
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
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,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
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: Hanover, Germany
Distribution: Gentoo
Posts: 15,364
Blog Entries: 2

Rep: Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981Reputation: 3981
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 04:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration