LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hard drive information with command line (https://www.linuxquestions.org/questions/linux-newbie-8/hard-drive-information-with-command-line-132689/)

Mugatu 01-08-2004 08:04 AM

hard drive information with command line
 
what are some commands i can use to determine the amount of free space on my hard disks, as well as what file system they use? and what about a command i can use to check their integrity? every time i use fsck it fusses at me about running it on a mounted drive. how else am i supposed to run it if i've only got 1 drive on that computer? floppy?

llamakc 01-08-2004 08:09 AM

use the command `df` and `df -h` for human-readable output. You can cat /etc/fstab to see what your disks are using or run

dmesg | grep hd | grep FS

Are you receiving errors about the disk?

Mugatu 01-08-2004 08:17 AM

i'm not receiving any errors, i just figured it'd be useful to know how to check my disks for errors

llamakc 01-08-2004 08:26 AM

Your logs may have some information. Also, grep for "error"

dmesg | grep error

request_module: failed /sbin/modprobe -- parport_lowlevel. error = -16
request_module: failed /sbin/modprobe -- snd-card-0. error = -16
hdc: command error: status=0x51 { DriveReady SeekComplete Error }
hdc: command error: error=0x54
end_request: I/O error, dev hdc, sector 64

-llamakc


All times are GMT -5. The time now is 02:50 AM.