LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-22-2005, 03:49 PM   #1
chriserickson
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Rep: Reputation: 0
HD not showing up as correct size, please help!!


I can' t figure out why but this is driving me crazy!!!! My root partition on FC 4 is showing up as the wrong size... If i run fdisk -l i get:
Disk /dev/sda: 36.2 GB, 36234592256 bytes
255 heads, 63 sectors/track, 4405 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 4150 33334843+ 83 Linux
/dev/sda2 4151 4405 2048287+ 82 Linux swap / Solaris

which say's its a 30> gig hard drive. But if I run df it say's
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 3983648 2818300 959720 75% /
/dev/shm 257216 0 257216 0% /dev/shm

where it shows up as only ~4 gigs...what is going on!? Someone please help?
 
Old 09-22-2005, 08:41 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,346

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Your partition table shows:
/dev/sda1 * 1 4150 33334843+ 83 Linux

And your file system size is:
/dev/sda1 3983648 2818300 959720 75% /

This means that only the first roughly 10% of the partition is formatted as a file system and the rest of the partition is unformatted raw space. How that happened can probably only be answered by examining the history of how you allocated the partition, formated the file system, changed partition sizes, reformatted the partition, etc. Or another possibility is that you formatted the partition in an archaic file system which has logical limitations to the size it can handle. What file system type was the partition formatted in?

--------------------------------------
Steve Stites
 
Old 09-22-2005, 09:52 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
What does hdparm list for geometry?

Try using Knoppix (version 3.7) and check the geometry of the hard drive. If it is right, then trash Fedora and use something else like...Gentoo.
 
Old 09-23-2005, 12:08 AM   #4
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
chriserickson: It's hard to image how you got such a small filesystem, but expanding it should be easy.

Boot into rescue mode and, assuming you are using ext3, run:

resize2fs /dev/sda1

The ext3 filesystem should then fill the partition. For more info, see:

man resize2fs
 
Old 09-23-2005, 09:52 AM   #5
chriserickson
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Do I just use the rescue CD to boot to rescue mode?
 
Old 09-23-2005, 11:11 AM   #6
chriserickson
LQ Newbie
 
Registered: Sep 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks, that worked!
 
Old 09-23-2005, 01:04 PM   #7
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
You probably already figured it out, but you can boot into rescue mode by using the first FC4 installation CD and entering “linux rescue” (boot: linux rescue) at the first prompt or by using the FC4 Rescue CD.

It’s good to hear that everything worked out, because I was expecting to hear that the filesystem failed the mandatory e2fsck check. Still don’t understand why the filesystem was so small compared to the partition size.
 
  


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
df not reporting correct size. mdarby Slackware 2 11-10-2004 07:36 AM
size of shared folder not correct VMWare buldir Linux - Software 0 09-01-2004 04:10 AM
Hard disk not showing correct size rwalkerphl Linux - Newbie 8 08-19-2004 02:58 PM
Does BIOS really need to recognize correct HDD size? ikletti Linux - Hardware 1 09-24-2003 05:13 PM
screen size not correct? blither Slackware 9 12-16-2002 09:53 PM

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

All times are GMT -5. The time now is 06:08 AM.

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