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 11-28-2005, 08:32 PM   #1
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Rep: Reputation: 30
cannot use 100% of hard disk, fdisk / parted / partition question


Hi all,

I have run out of hard disk space on my laptop, and after playing round for a bit noticed the following when I typed

#fdisk -l

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 76 506047+ 82 Linux swap / Solaris
/dev/hda3 77 5548 43953840 83 Linux
/dev/hda4 5549 6765 9775552+ 83 Linux

So it looks like the end of my last partition (4) is not the end of the hardrive, so I should have another 4GB or so available.

Does this mean I still have space available??

I have tried to add a new partition, but fdisk tells me I have to delete a partition first in order to create one. I have tried using parted and it gives me an error on resizing saying that my partition is of unusual layout and is not suported <yet>??

Any suggestions?
 
Old 11-28-2005, 09:51 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,001

Rep: Reputation: 2873Reputation: 2873Reputation: 2873Reputation: 2873Reputation: 2873Reputation: 2873Reputation: 2873Reputation: 2873Reputation: 2873Reputation: 2873Reputation: 2873
Re: cannot use 100% of hard disk, fdisk / parted / partition question

Quote:
Originally posted by lucastic
Does this mean I still have space available??
Nope.
It means you have unallocated space. It is *not* (currently) available.
Quote:
Any suggestions?
Delete a partition - or two or three.

The partition table can only hold 4 entries - guess how many you have. A construct called an extended partition was later devised to overcome this limitation. One of the 4 primary entries can be an extended partition, within which can be allocated logical partitions. As many as you want - within limits.

Best for you might be to backup your hda4 then delete it, then allocate all the space as an extended, then start allocating partitions and restoring.
All this done most easily from something like Knoppix.

Personally I'd remove everything except hda1 (presumably /boot) and move the lot into logical partitions.
 
Old 11-29-2005, 12:57 AM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
It could also be that a hidden recovery partition occupies the very end of the drive. I know that's the case with IBM Thinkpads; and may be true for others as well. You might not want to destroy it.
 
Old 11-29-2005, 01:26 AM   #4
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Original Poster
Rep: Reputation: 30
its an asus M3000 laptop. Surely it couldnt take up all that space??

(parted) print
Disk geometry for /dev/ide/host0/bus0/target0/lun0/disc: 0kB - 60GB
Disk label type: msdos
Number Start End Size Type File system Flags
1 32kB 107MB 107MB primary ext2 boot
2 107MB 625MB 518MB primary linux-swap
3 625MB 46GB 45GB primary ext3
4 46GB 56GB 10GB primary ext3
 
Old 11-29-2005, 02:51 AM   #5
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
As I recall, the hidden recovery area occupies ~3.5G, so it would seem that all 60G of space on your drive is accounted for (again, assuming that hidden partition does exist on your model)
 
Old 12-02-2005, 08:58 PM   #6
lucastic
Member
 
Registered: Aug 2003
Location: Oz
Distribution: Gentoo - Debian
Posts: 202

Original Poster
Rep: Reputation: 30
thanks for that info.
 
  


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
partition resizing using parted...bad memories of fdisk rextor Linux - General 1 07-30-2005 10:34 AM
What app can REALLY delete a partition? (not fdisk, parted, etc...) kornerr Linux - General 4 05-28-2005 12:14 PM
Cant get fdisk or cfdisk to partition my 20gig Bytes disk Heath Linux - Newbie 3 05-19-2004 05:08 AM
Hitachi scsi hard disk fdisk curiosity/conundrum rharvey@cox Linux - Hardware 4 11-07-2003 08:31 AM
Hitachi SCSI hard disk fdisk definition rharvey@cox *BSD 2 10-27-2003 04:28 AM

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

All times are GMT -5. The time now is 03:36 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