Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 08-25-2005, 07:54 AM   #1
Registered: Aug 2004
Location: Jaipur(Rajasthan), INDIA
Posts: 35

Rep: Reputation: 15
Problem in Linux Rescue


I have a problem while troubleshooting through "linux rescue".

I was not able to log onto my machine.....I booted my machine with enterprise CD... and followed the following steps

#fdisk -l
#<tab><tab> //to look for commands available
// there were 287 commands avilable

#chroot /mnt/sysimage
#e2label /dev/hda1
#mount /dev/hda1 /mnt
#<tab><tab> //once again to get the list of commands available
//this time there were only 87 commands available
// vi, ls, chroot were not available

I want to know why was there a change in the no of commands available...
did I make a mistake....i tried it a number of times....but i could not get through..

The problem with my machine was that someone has changed the label of my /boot partition to / and / to /boot using the command "e2label"
Old 08-25-2005, 11:59 AM   #2
LQ Guru
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,670

Rep: Reputation: 229Reputation: 229Reputation: 229
"I want to know why was there a change in the no of commands available..."
"#chroot /mnt/sysimage "

When you chroot you switch to running on a different filesystem. The new file system happens to have a different (smaller) number of commands available.

Steve Stites
Old 08-26-2005, 08:23 AM   #3
Registered: Aug 2004
Location: Jaipur(Rajasthan), INDIA
Posts: 35

Original Poster
Rep: Reputation: 15

I found the probable reason....I think it was because i mounted /dev/hda1 on /mnt....i tried this time by creating a directory in /mnt and then mount /dev/hda1 or / on the new was working fine then....i don know whether i m correct but i made it work that way



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
How can I remove root logons using Linux Single and Linux Rescue from Red Hat startup LHRM Linux - Security 9 04-09-2004 08:07 PM
Knoppix as rescue cd problem yowi Debian 4 02-17-2004 05:32 PM
Win XP Install Overwrites MBR and Linux Rescue Fails to Recognize Linux Partitions carrlane Linux - Software 8 01-14-2004 08:49 AM
Linux RH7.2 Entering 'linux rescue' but /mnt/sysimage not found apeacez Linux - Newbie 4 09-29-2003 12:10 AM
Rescue Problem. Furtzi Linux - Newbie 2 03-04-2002 10:36 AM

All times are GMT -5. The time now is 03:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration