LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-22-2003, 11:10 PM   #1
blackx
LQ Newbie
 
Registered: May 2003
Posts: 14

Rep: Reputation: 0
fsck, e2fsck, mke2fs ?'s - RH9


I am booting my RH9 boot into rescue mode and trying to figure out how to run fsck, mke2fs -n to find the superblocks, and e2fsck -b to fix superblocks but its not finding the commands in the defualt /(root) and locate is not working.
I was under the understanding the partitions had to be unmounted to run the about commands on them.. is this true.
Do I have to mount my normal /root partition and chroot it?
 
Old 05-23-2003, 07:24 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
There isn't any path enviroment set in rescue mode.

Just use the cd command to navigate to /sbin or /bin.
 
Old 05-23-2003, 07:27 AM   #3
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
yeah, it's in one of those paths.

try to echo the $PATH (if u r running a shell) and see if paths are there, if they are, chances are u can just use "whereis fsck" or "which fsck". If not, check those paths (/sbin, /bin, /usr/bin, /usr/sbin/, etc)

oh and of course u have to be root, just run

/sbin/su

and login as root

hope that helps
 
Old 05-23-2003, 01:52 PM   #4
blackx
LQ Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
That makes sense but here is a problem I am running into. I want to find the superblocks on / partition but get a error when I run:

mke2fs -n /dev/sda2

error:
/dev/sda2 is mounted: will not make a file system here.

I have booted off the RH9 cd1 -> linux rescue mode -> selected read only for /mnt/sysimage.
So I figured I need to umount /dev/sda1

umount /dev/sda2

error:
umount /dev/sda2 device or resource busy

umount /mnt/sysimage

error:
umount /dev/sda2 device or resource busy

Can someone educate me on what I am missing... sorry for the lamer question...
 
Old 05-23-2003, 01:56 PM   #5
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
maybe the shell is cd'd into a directory on the hard
drive?
 
Old 05-23-2003, 02:01 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Maybe because you are selecting read only for /mnt/sysimage.

Can you just boot to a command prompt in rescue mode not select or mount any partitions?
 
Old 05-23-2003, 02:02 PM   #7
blackx
LQ Newbie
 
Registered: May 2003
Posts: 14

Original Poster
Rep: Reputation: 0
when you boot to rescue mode it puts you in a small linux root environment and your normal user /(root) environment is mounted to /mnt/sysimage in rw or ro mode depending on what you chose during the option menus that is unless you choose to skip linux partition detection.
I didnt run chroot on /mnt/sysimage ether and that is why I am confused...

"Maybe because you are selecting read only for /mnt/sysimage.
" why wouldnt let me umount it though?

Last edited by blackx; 05-23-2003 at 02:04 PM.
 
  


Reply



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
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
mke2fs problem cuco76 Fedora 9 11-22-2003 06:06 PM
Ambiguous error messages from fsck, but not from e2fsck jiffydude Linux - Software 2 09-12-2003 06:02 PM
problem with mke2fs tasadar Linux - Software 5 07-26-2003 11:31 PM
mke2fs appler Linux - Newbie 2 03-04-2003 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:02 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
Open Source Consulting | Domain Registration