View previous topic :: View next topic |
Author |
Message |
yaum n00b
Joined: 23 Nov 2004 Posts: 5 Location: France, Nancy
|
Posted: Tue Nov 23, 2004 12:12 pm Post subject: Maximum partition size on SCSI disk |
|
|
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...? _________________ Quand tu fais Djock ca refoule... |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Tue Nov 23, 2004 2:02 pm Post subject: |
|
|
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 |
|
|
voltairien Tux's lil' helper
Joined: 24 Apr 2004 Posts: 123
|
Posted: Tue Nov 23, 2004 6:14 pm Post subject: |
|
|
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 |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Tue Nov 23, 2004 6:31 pm Post subject: |
|
|
Ahh. Well that's the difference between market speak Gig and real Gig. The size is normal |
|
Back to top |
|
|
yaum n00b
Joined: 23 Nov 2004 Posts: 5 Location: France, Nancy
|
Posted: Wed Nov 24, 2004 8:41 am Post subject: |
|
|
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 !!! _________________ Quand tu fais Djock ca refoule... |
|
Back to top |
|
|
Raffi l33t
Joined: 17 Mar 2003 Posts: 731 Location: Moscow, Id.
|
Posted: Wed Nov 24, 2004 3:23 pm Post subject: |
|
|
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 |
|
|
yaum n00b
Joined: 23 Nov 2004 Posts: 5 Location: France, Nancy
|
Posted: Wed Nov 24, 2004 4:57 pm Post subject: |
|
|
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 |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6069 Location: Removed by Neddy
|
Posted: Wed Nov 24, 2004 5:21 pm Post subject: |
|
|
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 |
|
|
|