LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-14-2007, 07:22 AM   #1
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Rep: Reputation: 15
unable to specify size for new partition using fdisk


Hello

I have recently added a hard disk to an existing raid array container. I wish to create a new partion, assign the new hard disk space to the partition, and then ultimately add the partition to an existing lvm. please see below:

[root@pasty ~]# fdisk /dev/sda

The number of cylinders for this disk is set to 35632.
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): p

Disk /dev/sda: 293.0 GB, 293089574912 bytes
255 heads, 63 sectors/track, 35632 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 24234 194555182+ 8e Linux LVM
/dev/sda3 24235 25126 7164990 83 Linux
/dev/sda4 25127 26724 12835935 5 Extended
/dev/sda5 25127 25577 3622626 8e Linux LVM
/dev/sda6 25578 25959 3068383+ 83 Linux
/dev/sda7 25960 26341 3068383+ 83 Linux
/dev/sda8 26342 26596 2048256 82 Linux swap
/dev/sda9 26597 26723 1020096 83 Linux

Command (m for help):


My problem is, when i attempt to create the new partition (sda10) i m not prompted to specify the end cylinder(ie the size of the partion). instead i end up with a partition of no specified size:

/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 24234 194555182+ 8e Linux LVM
/dev/sda3 24235 25126 7164990 83 Linux
/dev/sda4 25127 26724 12835935 5 Extended
/dev/sda5 25127 25577 3622626 8e Linux LVM
/dev/sda6 25578 25959 3068383+ 83 Linux
/dev/sda7 25960 26341 3068383+ 83 Linux
/dev/sda8 26342 26596 2048256 82 Linux swap
/dev/sda9 26597 26723 1020096 83 Linux
/dev/sda10 26724 26724 8001 83 Linux



any idea how i can increase the size of partition sda10 to utilise the space on the new hardisk??
any help will be much appreciated
 
Old 05-14-2007, 07:51 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
The extended partition (sda4) ends at cylinder 26274, so that's as far as fdisk will go in creating a new logical. If you change fdisk to display sectors instead of cylinders, you will probably see that it did create something with a few sectors.

What you need to do is re-size the extended partition using GParted or QTParted.
 
Old 05-14-2007, 09:26 AM   #3
fedora_user
Member
 
Registered: Jan 2006
Posts: 112

Original Poster
Rep: Reputation: 15
thanks for that pixellany...that helps.
by the way, i dont have graphical mode, will it be ok to use gparted live cd to boot off from and then to increase the extended sda4 partition?( i ask coz this method is only used if youre not "up and running")
 
Old 05-14-2007, 11:09 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by fedora_user
thanks for that pixellany...that helps.
by the way, i dont have graphical mode, will it be ok to use gparted live cd to boot off from and then to increase the extended sda4 partition?( i ask coz this method is only used if youre not "up and running")
That's the way to go--definitely. You can't be using the partitions that you are re-sizing.
 
  


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
kde and fdisk disagree on a partition size Tortanick Linux - Hardware 2 04-25-2007 06:30 AM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
Fdisk To Se-size carlosinfl Linux - General 2 02-25-2007 02:21 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 03:10 AM


All times are GMT -5. The time now is 11:21 PM.

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