Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Maximum partition size on SCSI disk
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
yaum
n00b
n00b


Joined: 23 Nov 2004
Posts: 5
Location: France, Nancy

PostPosted: Tue Nov 23, 2004 12:12 pm    Post subject: Maximum partition size on SCSI disk Reply with quote

I've created a new partition on my scsi disk with FDISK. But the size I 've choosen is not really what "df" print me :

/dev/sdc1 141122196 32828 133920768 1% /sdc1

The disk is empty, but it seem that about 9Go are missing...

Any ideas...? :roll:
_________________
Quand tu fais Djock ca refoule...
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Tue Nov 23, 2004 2:02 pm    Post subject: Reply with quote

The file system itself has overhead. A newly created file system uses up about 1% of the disk. On older Linux filesystem (and traditionally on Unix) the df command would hide this used space and report 0% used.
Back to top
View user's profile Send private message
voltairien
Tux's lil' helper
Tux's lil' helper


Joined: 24 Apr 2004
Posts: 123

PostPosted: Tue Nov 23, 2004 6:14 pm    Post subject: Reply with quote

The problem is not the 1% present in "df", but the partition size of 137 Gb whereas the disk is about 146 Gb ... isn't it ?
- What about your fdisk command (p option) ?
- And so the result of : dmesg | grep "SCSI"
V.
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Tue Nov 23, 2004 6:31 pm    Post subject: Reply with quote

Ahh. Well that's the difference between market speak Gig and real Gig. The size is normal
Back to top
View user's profile Send private message
yaum
n00b
n00b


Joined: 23 Nov 2004
Posts: 5
Location: France, Nancy

PostPosted: Wed Nov 24, 2004 8:41 am    Post subject: Reply with quote

Here is what fdisk print me with the P command :

Disk /dev/sdc: 146.8 GB, 146815733760 bytes
255 heads, 63 sectors/track, 17849 cylinders, total 286749480 sectors
Units = sectors of 1 * 512 = 512 bytes


FDISK corectly recognize my disk size... But, when I really count partition size, 8Go are missing :

bash-2.05b# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdc1 135G 33M 128G 1% /sdc1




I agree with missing 1% of disk space when creating my partition...
But 1% of 146 Go must not give 135Go !!! 8O
_________________
Quand tu fais Djock ca refoule...
Back to top
View user's profile Send private message
Raffi
l33t
l33t


Joined: 17 Mar 2003
Posts: 731
Location: Moscow, Id.

PostPosted: Wed Nov 24, 2004 3:23 pm    Post subject: Reply with quote

OK. fdisk is reporting the size in market speak. If you take the size in bytes that fdisk shows and do the computation for Gig 146815733760/1024/1024/1024 you get 136.7. If instead you do the calculation in market speak you 146815733760/1000/1000/1000 you get 146.8. That is the difference you are seeing.
Back to top
View user's profile Send private message
yaum
n00b
n00b


Joined: 23 Nov 2004
Posts: 5
Location: France, Nancy

PostPosted: Wed Nov 24, 2004 4:57 pm    Post subject: Reply with quote

Ok ok... :)
As explained, it' easyer to understand... I hope my mistake will be helpfull for others...

Thanks
_________________
Quand tu fais Djock ca refoule...
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6069
Location: Removed by Neddy

PostPosted: Wed Nov 24, 2004 5:21 pm    Post subject: Reply with quote

yer bloody laymen gig value!!!

ARRR there is 8bits to a byte
there is 1024 bytes to a kilo byte (not 1000!!!)
there is 1024 kilo bytes to a megabyte (not 1000!!!)
there is 1024 megabytes to a gigabyte (not 1000!!!!)

as an engineer this really hacks me off!!!

if you are gonna educate some one, educate them correctly!!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum