Koozali.org: home of the SME Server

Viewing Hard Drive Stats

richman

Viewing Hard Drive Stats
« on: April 27, 2004, 01:08:41 PM »
Hi,
i was having problems getting my old compaq machine to recognise the 120gb hard drive i had in the machine and last nite i formteed and set it up using the Maxblast utility. Now after i had done that i went to do (before installing SME) and typed c:/dir and it told me i had 117gb free but when i went to the bios it said i had 5768mb free. I was just woundering is their a way of seeing how big SME server is picking up the drive as.

Cheers
Richman

Souley

Viewing Hard Drive Stats
« Reply #1 on: April 27, 2004, 01:24:03 PM »
Hi
After setting up the sme
Log as root
Type
Code: [Select]
[root@tuxtest /]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda3             17128592   1520528  14737956  10% /
/dev/sda1               100692      8897     86596  10% /boot
none                     63552         0     63552   0% /dev/shm


Best regards Souley

Ps : I think if you're bios doesn't seen the hard drive as a 120 Gb it's not really good sign

richman

Viewing Hard Drive Stats
« Reply #2 on: April 27, 2004, 01:33:24 PM »
I will try that now and let you know how i get on, how do u log in as root?

Cheers
Richman

Souley

Viewing Hard Drive Stats
« Reply #3 on: April 27, 2004, 01:41:58 PM »
Go in console mode (ctrl alt f2) for example
Login : root
Password = same as admin

Good luck
Souley

richman

Viewing Hard Drive Stats
« Reply #4 on: April 27, 2004, 01:43:59 PM »
here we go look below

Offline genzil

  • ***
  • 51
  • +0/-0
    • http://www.tuxx.org.uk
Viewing Hard Drive Stats
« Reply #5 on: April 27, 2004, 02:26:37 PM »
Try the same as you did to get the picture but use -h

[craig@tuxx craig]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3             2.6G  2.1G  512M  81% /
/dev/hda1              95M  8.7M   81M  10% /boot
none                   93M     0   93M   0% /dev/shm

As you can see from my hard drive I have 2 partitions that are 2.6GB and 95MB in size. That gives me disk of about 2.7GB (I added the ones with hda in the filesystem)

I would guess that you get a disk that is about 106GB.  The reason that you only have 106GB and not 120GB could be for several reasons of which the usual one is that the file system and some other system stuff takes up the other 14GB.  I wouldn't worry about it.

To load up, linux used the BIOS to kickstart from the hard drive and then ignores it after that. Once loaded it detects it all you hardware and uses it's own findings.  Hence why you had the diferences before.
Smile :-)......

richman

Viewing Hard Drive Stats
« Reply #6 on: April 27, 2004, 02:54:54 PM »
I think that everything is fine then  :hammer:  (thank god) I just need to play with my server and get it all set-up and know my way around.

Thankyou everyone for your help in this matter and hope to speak to you soon

Richman