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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
07-19-2003, 10:19 PM
|
#1
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Rep:
|
ScanDisk on RedHat Partition
How can I use scandisk on /dev/hda1 instead of c: because it is not in a c or d drive.
Is there a program like scandisk for Linux?
|
|
|
07-19-2003, 10:21 PM
|
#2
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
fsck /dev/hda
|
|
|
07-19-2003, 11:21 PM
|
#3
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Quote:
Originally posted by DrOzz
fsck /dev/hda
|
Where do I enter this?
|
|
|
07-19-2003, 11:28 PM
|
#4
|
LQ Newbie
Registered: Jul 2003
Posts: 5
Rep:
|
To enter it like that you'd have to open a terminal window, I believe. (Menu/ System Tools/ Terminal)
When I tried it bash didn't recognize it, but that's probably because I don't have that program installed. You can still give it a shot.
|
|
|
07-19-2003, 11:33 PM
|
#5
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Quote:
Originally posted by Cap'n Ahab
To enter it like that you'd have to open a terminal window, I believe. (Menu/ System Tools/ Terminal)
When I tried it bash didn't recognize it, but that's probably because I don't have that program installed. You can still give it a shot.
|
Quote:
bash: fsck: command not found
|
Any idea where to download the program?
|
|
|
07-19-2003, 11:38 PM
|
#6
|
Senior Member
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185
Rep:
|
it is saying the command is not found because of probably:
a) your not running it as root
or..
b) your running it as root but /sbin is not in your path
so in order to run this to solve both circumstances you will have to:
su to root
type the full path
/sbin/fsck /dev/hda
|
|
|
07-19-2003, 11:45 PM
|
#7
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Quote:
WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.
|
I take it that means don't use it?
|
|
|
07-19-2003, 11:48 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
That means don't use it 'then'. You should never run a disk check on a mounted filesystem because of the read-write issues. Umount the drive (if this is your root drive boot up into rescue mode with your CD) and then run fsck on it.
Cool
|
|
|
07-19-2003, 11:59 PM
|
#9
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Quote:
Originally posted by MasterC
That means don't use it 'then'. You should never run a disk check on a mounted filesystem because of the read-write issues. Umount the drive (if this is your root drive boot up into rescue mode with your CD) and then run fsck on it.
Cool
|
And how would I boot up in Rescue Mode?
|
|
|
07-20-2003, 12:16 AM
|
#10
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Most likely it's going to be:
Drop in your INSTALL cd to your cdrom, start up your system, once you get to the point where you "press enter to continue or F1 for help" you press F1, type in rescue and it loads rescue mode. However, that's for a mandrake system, I'm sure RH isn't far different, but the documentation should discuss it.
Something to note:
Your drives are automatically checked with fsck after so many reboots or a given amount of time (usually 20-30 reboots and 50-70 days) to ensure data is not getting corrupted. This is done during bootup when the drives are not mounted.
Cool
|
|
|
07-20-2003, 12:43 AM
|
#11
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
ok went into rescue mode. I entered fsck And it says /etc/fstab does not exsist. Should I have turned off read/write, I made it an image I think...........
|
|
|
07-20-2003, 12:48 AM
|
#12
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
You don't have to have /etc/fstab to run fsck. Once you are in rescue mode, be sure your device that you want to scan isn't mounted (you can check with:
mount
If it's listed, umount it with:
umount /dev/hdx)
And then run fsck on it:
/sbin/fsck /dev/hdx
HTH
Cool
|
|
|
07-20-2003, 01:00 AM
|
#13
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Quote:
/dev/hda3 : Device or resource busy
|
It won't let me unmout it.......
|
|
|
07-20-2003, 01:06 AM
|
#14
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
In rescue mode? Make sure you aren't in the directory that it's mounted to...
Cool
|
|
|
07-20-2003, 01:17 AM
|
#15
|
Member
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179
Original Poster
Rep:
|
Quote:
Originally posted by MasterC
In rescue mode? Make sure you aren't in the directory that it's mounted to...
Cool
|
And How would I do that?
hda3 is my only drive besides /boot and SWAP.
|
|
|
All times are GMT -5. The time now is 02:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|