LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-12-2001, 10:39 AM   #1
maxwell
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Rep: Reputation: 0
Unhappy Problem with mounting a hd in rescue mode


Hello!

I have the problem with mounting a hd in rescue mode. The troubles go this way:
1.) Changing the screen refresh rates to the right values (listed in the screen manual) in the file XF86Config.
2.) Startup again with Linux Version Red hat 6.2
3.) XWindows (KDM-Login Manager) starts automatically after booting and the monitor displays a signalling error. Obviously can't synchronize the signal.

What i tried so far:
a) Pressing Ctrl-Alt-Backspace to stop the XWindows desktop is not working. Maybe the keyboard at all does not work anymore because Ctrl-Alt-F1..F4 doesn't work too.
b) The connection to the Linux-PC via LAN is not working anymore.
No ping during startup and in 'blank screen' mode is coming back.
c) Using the Boot-disk causes the same blanc screen because after a certain point the boot sequence of the hd is used (however the bootprocess started from the floppy).
d) When using the Installation CD to startup in rescue mode i get the bash mode. This sounds good but i can't mount any of my harddisks.

Now my questions:
- Can someone help me ??!!!
- Is it possible to stop in prompt mode before starting Xwindows?
- Is it possible to mount hd's when not listed in /dev ?
- How to reactivate the LAN (it was working before) ?
- Are there any options when starting with the boot-disk ?
- Does a kernel-upgrade with the same version help ?
- Is there a wa to get my data from the disk before reinstalling Linux (last option)?

Thanks for you help!
 
Old 07-12-2001, 05:04 PM   #2
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
OK, I'll take a stab at this. Boot up into the rescue mode. In the rescue mode, use mkdir to create a directory. Let's say mkdir /foo. Next, run the command mount -t ext2 -o rw /dev/hdXY /foo. This will mount your drive in directory /foo. The X is your hard drive letter and the Y is your partition number of your root partition.

Now, you can edit your /etc/inittab file( actually it will be /foo/etc/inittab ). Look for a line that looks something like this id:5:initdefault:. Change the ' 5 ' to a ' 3 ' and save the change. Then umount /foo and reboot. When it reboots, you won't be in the X window mode. You'll be in a text mode startup and you'll be able to reconfigure your X window. I hope this is what you want.

Last edited by linuxcool; 07-12-2001 at 05:09 PM.
 
Old 07-13-2001, 03:55 AM   #3
maxwell
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, but this mount command was not working.
I tried: mount -t ext2 /dev/hdax /foo
and mount -t ext2 -o rw /dev/hdax /foo
(where x was 1..9, info: hda7 is the root partition)
both lines are not working.
After entering the command there are no files and links under /foo at all.
I suppose that the mount commands are not working because the system can't find any hd under /dev. Just the console, the cd, the ram, some /tty's,.. but no hda1..hda9.
Maybe the rescue mode doesn't check or can't find the hd's?

Any other advice?
 
Old 07-13-2001, 06:53 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,311
Blog Entries: 54

Rep: Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860
Quote:
- Is it possible to stop in prompt mode before starting Xwindows?
Yes. X starts because the default initlevel in /etc/inittab is set to 5. 3 will be console+networking mode and 1 console in single user mode.
Try appending any of these lines to the kernel u choose at the boot prompt, depending on what ure /etc/fstab has. These would get u in at initlevel 1. Append values could be: rescue, S, single or init=/bin/sh. U could also try to append the root partition if necessary like root=/dev/hda1.

Quote:
- Is it possible to mount hd's when not listed in /dev ?
No. If it aint in /dev it doesnt exist :-[, same goes for /proc.

Quote:
- How to reactivate the LAN (it was working before) ?
better first try to get ure box up. Worry bout LAn later, it aint ure biggest problem.

Quote:
- Are there any options when starting with the boot-disk ?
Other than Linux rescue, I dont know, no. Using (tab) should give any prompt options.
*There are other linuxes like one-floppy type rescue disks like tomsrtbt, LOAF, trinux etc. Maybe u can access ure disk with one of them.

Quote:
- Does a kernel-upgrade with the same version help ?
Not unless was severely borken like missing parts.

Quote:
- Is there a wa to get my data from the disk before reinstalling Linux (last option)?
If booting standalone/cdr/fd doesnt work u could always try to physically remove the disk and either attach it to another Linux box to mount it, or a Windoze box and use ExploreFS (freeware) to save data.
Some one-floppy distro's contain enough modules to get eth0 going if its not borken, then u could mount/image it and stream it to a remote host.

GL.
 
Old 07-13-2001, 04:09 PM   #5
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
OK. I have one more idea. At the prompt, instead of typing in ' linux rescue ' type in ' linux single '. This should get you into the single user mode and your partitions should all be mounted. Then you can do anything you need to do to get it running again. I got the info for this here .
 
Old 07-13-2001, 04:36 PM   #6
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Quote:
Originally posted by linuxcool
OK. I have one more idea. At the prompt, instead of typing in ' linux rescue ' type in ' linux single '. This should get you into the single user mode and your partitions should all be mounted. Then you can do anything you need to do to get it running again. I got the info for this here .
If this doesn't work try to get a fresh boot-/rescue-disk set from the webpage of your linuxdistribution.
 
Old 07-16-2001, 08:45 AM   #7
maxwell
LQ Newbie
 
Registered: Jul 2001
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

Good news from Austria!

Using the single-mode (with command: linux single) from CD caused the start of the installation procedure. The same thing happens when starting the linux emergency procedure.


BUT:
I got an Installation CD for rh 7.0
The rescue mode on this version is working fine.
It was possible to mount all necessary hd's!


I want to thank everybody who tried to help me!

Last edited by maxwell; 07-16-2001 at 08:57 AM.
 
Old 07-16-2001, 05:12 PM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
THAT'S GREAT!!! You're welcome.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
rescue mode hansi umayangan Linux - General 1 03-16-2005 11:43 PM
mounting '/ ' file system on linux rescue mode ?? bipinkdas Red Hat 2 01-25-2005 10:16 AM
How could I go into Rescue Mode??? unixfreak Linux - Newbie 20 08-24-2004 09:19 PM
about rescue mode morrisset Linux - Newbie 3 07-10-2004 11:11 AM
Rescue Mode Help dsiguy Linux - General 9 09-24-2003 03:52 PM


All times are GMT -5. The time now is 05:34 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration