LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-17-2005, 01:16 AM   #1
mlsbraves
Member
 
Registered: Feb 2004
Location: Gulfport, MS
Distribution: Slackware 10.1, Gentoo
Posts: 90

Rep: Reputation: 16
Added second harddrive as a partition, but now the partition size is wrong..


I installed a second harddrive(80GB) and I wanted to make this another partition on my system. So I installed the harddrive, fdisked it(Maid the whole drive one primary partition), formated it to ext3, added it to my fstab, and created a folder for it. Everything seemed to be fine but when I looked under properties it says my partition was 73.4GB and (6% used). I can't figure out why the whole drive isnt there.

fdisk print:
Code:
Disk /dev/hdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1        9729    78148161   83  Linux
Can someone please help me figure out why the whole size isnt there?

Thanks for your time.
 
Old 08-17-2005, 04:48 AM   #2
birdseye
Member
 
Registered: Mar 2005
Location: Wales, UK
Distribution: Gentoo, Debian, Ubuntu
Posts: 60

Rep: Reputation: 15
First off, mount /dev/hdb1, go to its root, and 'ls -la' it. That may sound pretty obvious, but may tell you something.

Also, I don't know the details, but when you format a drive, you loose some of the space due to the formatting. This may account for your lost space.

Hope that helps,

Rhys
 
Old 08-17-2005, 06:32 AM   #3
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
I've gathered in these forum that ext2 (and ext3) reserves about 5% of the disk to be used by root. This allows it to login and work in case of failure, full disks, etc.
 
Old 08-17-2005, 05:25 PM   #4
mlsbraves
Member
 
Registered: Feb 2004
Location: Gulfport, MS
Distribution: Slackware 10.1, Gentoo
Posts: 90

Original Poster
Rep: Reputation: 16
Quote:
Originally posted by birdseye
First off, mount /dev/hdb1, go to its root, and 'ls -la' it. That may sound pretty obvious, but may tell you something.
ls -la returns:
Code:
total 8
drwxr-xr-x   2 root root 4096 2005-08-16 21:01 ./
drwxr-xr-x  19 root root 4096 2005-08-17 00:51 ../
Quote:
Originally posted by birdseye
Also, I don't know the details, but when you format a drive, you loose some of the space due to the formatting. This may account for your lost space.

Rhys
I've done this before and its never took that much space. Besides, Not only is it telling me the capasity is wronge but its also saying that 4GB are already used.

Thanks for the help though. Hope I can figure out this problem

Last edited by mlsbraves; 08-17-2005 at 05:26 PM.
 
Old 08-17-2005, 06:21 PM   #5
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
You are thinking about drive capacity the way manufacturers quote it, not the way linux or windows sees/reports it.

Do the math:

80026361856 bytes * (1KB / 1024 bytes) * (1MB / 1024KB) * (1GB / 1024MB) = 74.5GB

Pretty close.
 
Old 08-17-2005, 08:10 PM   #6
mlsbraves
Member
 
Registered: Feb 2004
Location: Gulfport, MS
Distribution: Slackware 10.1, Gentoo
Posts: 90

Original Poster
Rep: Reputation: 16
So by formatting it to ext3 I lost 4GB? I wasnt aware it took up so much space. Thanks for all the help. I appreciate it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong partition size indicated thepoint Linux - Hardware 3 08-02-2005 10:14 PM
Deleted ntfs partition - added linux partition in its place - corrupt! eklhad Linux From Scratch 2 06-28-2005 01:31 AM
Restored backup, now new root partition reporting wrong size. wackman Linux - Software 6 05-28-2005 02:24 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
root partition shows wrong total size Dergro Linux - General 12 10-08-2003 12:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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