LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-15-2005, 02:37 PM   #1
stradivarius
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Rep: Reputation: 0
adding new logical partition failed


Hi,
I currently have WinXP, FC4 and Ubuntu on my /dev/hda. I would like to try Musix, which appears to be very nice distro for musicians. However I don't know how to do it:-)
There should be some 7GB of free place, according to win hdd manager.. It is shown as part of extended partition (with black stripe), as unassigned and impossible to create new partition, although I don't want to have any new win disk:-)

Here's my fdisk print:

Code:
Disk /dev/hda: 60.0 GB, 60011642880 bytes
16 heads, 63 sectors/track, 116280 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1       12195     6146248+   7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/hda2           12196       12398      102312   83  Linux
/dev/hda3           12399       14479     1048824   82  Linux swap / Solaris
/dev/hda4           14480      101175    43694753    f  W95 Ext'd (LBA)
Partition 4 does not end on cylinder boundary.
/dev/hda5           14480       26669     6143728+  83  Linux
/dev/hda6           26670       87615    30716752+   b  W95 FAT32
/dev/hda7           87616      101175     6834208+  83  Linux
fdisk's command "n" gives
Code:
No free sectors available
. PM 8.0 throws error and does't show any partitions.. Is the number of logical partitions somehow limited? is there any way I can use these 7GB of free space? Thanks for any considerations or links!
 
Old 09-15-2005, 02:40 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 125Reputation: 125
Your Logical partition ends at 101175. The unpartitioned space on your drive is outside the logical partition. You *MIGHT* be able to resize the logical partition safely, but I would strongly urge a backup first.
 
Old 09-15-2005, 02:48 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,340

Rep: Reputation: 2231Reputation: 2231Reputation: 2231Reputation: 2231Reputation: 2231Reputation: 2231Reputation: 2231Reputation: 2231Reputation: 2231Reputation: 2231Reputation: 2231
You need to resize the extended partition i.e. hda4 to include the remaining free space. The free space isn't part of the the extended partition. The cylinder errors could be throwing PM off. The extended partition ends at 101175 and your unallocated space is from 101176 - 116280

fdisk errors because all 4 primary partitions are used and the extended partition space is 100% allocated.

BTW the max number of partitions one can have on an IDE drive is 64.

Last edited by michaelk; 09-15-2005 at 02:51 PM.
 
Old 09-15-2005, 03:38 PM   #4
stradivarius
LQ Newbie
 
Registered: Feb 2004
Posts: 5

Original Poster
Rep: Reputation: 0
parted

uh, backup, but youre right. Lets make some rsync..
I was thinking about following command:
Code:
parted resize /dev/hda4 7297447 58605120
I hope I have right start and end values, they should be in MB according to man, so:
start 14594894*512/1024=7297447[MB]
end 117210240*512/1024=58605120[MB]

as I changed my view to sectors:
Code:
Command (m for help): u
Changing display/entry units to sectors

Command (m for help): p

Disk /dev/hda: 60.0 GB, 60011642880 bytes
16 heads, 63 sectors/track, 116280 cylinders, total 117210240 sectors
Units = sectors of 1 * 512 = 512 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *          63    12292559     6146248+   7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/hda2        12292560    12497183      102312   83  Linux
/dev/hda3        12497184    14594831     1048824   82  Linux swap / Solaris
/dev/hda4        14594894   101984399    43694753    f  W95 Ext'd (LBA)
Partition 4 does not end on cylinder boundary.
/dev/hda5        14594895    26882351     6143728+  83  Linux
/dev/hda6        26882415    88315919    30716752+   b  W95 FAT32
/dev/hda7        88315983   101984399     6834208+  83  Linux
After resize, i will use the "n" command in fdisk. As far as I understand it, the type of resized partition is not important.
Sorry, lamer:-)
 
  


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
Primary or Logical partition ? infernal Linux - Software 7 10-28-2015 09:50 AM
logical partition to a primary one britcoms9 Linux - Newbie 4 01-20-2008 06:46 PM
Setting up logical volume management... [FAILED] userini Linux - Software 0 06-28-2004 12:56 PM
Mount logical partition Rex_chaos Linux - General 3 03-13-2002 02:21 PM
logical or primary partition Socrates Linux - Software 1 02-25-2001 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration