LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

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

Rep: Reputation: 15
Problem in Linux Rescue


Hi

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, 10:59 AM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,525

Rep: Reputation: 177Reputation: 177
"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, 07:23 AM   #3
p_test
Member
 
Registered: Aug 2004
Location: Jaipur(Rajasthan), INDIA
Posts: 35

Original Poster
Rep: Reputation: 15
Hi

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 directory...it was working fine then....i don know whether i m correct but i made it work that way

thanks
 
  


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 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 07:07 PM
Knoppix as rescue cd problem yowi Debian 4 02-17-2004 04:32 PM
Win XP Install Overwrites MBR and Linux Rescue Fails to Recognize Linux Partitions carrlane Linux - Software 8 01-14-2004 07:49 AM
Linux RH7.2 Entering 'linux rescue' but /mnt/sysimage not found apeacez Linux - Newbie 4 09-28-2003 11:10 PM
Rescue Problem. Furtzi Linux - Newbie 2 03-04-2002 09:36 AM


All times are GMT -5. The time now is 08:24 PM.

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