LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2004, 08:04 AM   #1
Mugatu
Member
 
Registered: Dec 2003
Location: VA
Distribution: Ubuntu
Posts: 193

Rep: Reputation: 30
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?
 
Old 01-08-2004, 08:09 AM   #2
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
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?
 
Old 01-08-2004, 08:17 AM   #3
Mugatu
Member
 
Registered: Dec 2003
Location: VA
Distribution: Ubuntu
Posts: 193

Original Poster
Rep: Reputation: 30
i'm not receiving any errors, i just figured it'd be useful to know how to check my disks for errors
 
Old 01-08-2004, 08:26 AM   #4
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to check hard drive satimis Linux - General 4 06-25-2004 02:42 AM
Command to get SCSI drive information? tells Red Hat 2 06-01-2004 11:08 PM
Copy A File Off A CD To The Hard Drive In Command Line nickae77 Linux - Newbie 4 05-21-2004 04:38 AM
How to Know mi hard by command line CleonII Linux - Hardware 2 04-13-2004 11:08 AM
hard drive information vanhalen Linux - Newbie 3 07-08-2002 07:28 AM


All times are GMT -5. The time now is 09:50 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration