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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-22-2003, 11:10 PM
|
#1
|
|
LQ Newbie
Registered: May 2003
Posts: 14
Rep:
|
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?
|
|
|
|
05-23-2003, 07:24 AM
|
#2
|
|
Moderator
Registered: Aug 2002
Posts: 10,756
|
There isn't any path enviroment set in rescue mode.
Just use the cd command to navigate to /sbin or /bin.
|
|
|
|
05-23-2003, 07:27 AM
|
#3
|
|
Member
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256
Rep:
|
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
|
|
|
|
05-23-2003, 01:52 PM
|
#4
|
|
LQ Newbie
Registered: May 2003
Posts: 14
Original Poster
Rep:
|
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...
|
|
|
|
05-23-2003, 01:56 PM
|
#5
|
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,164
Rep:
|
maybe the shell is cd'd into a directory on the hard
drive?
|
|
|
|
05-23-2003, 02:01 PM
|
#6
|
|
Moderator
Registered: Aug 2002
Posts: 10,756
|
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?
|
|
|
|
05-23-2003, 02:02 PM
|
#7
|
|
LQ Newbie
Registered: May 2003
Posts: 14
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:07 AM.
|
|
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
|
|