LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-12-2010, 09:27 AM   #16
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312

Quote:
Originally Posted by markush View Post
Hi,

I don't think this will work. One has to mount the devices before chrooting!

I would use the following
Code:
mount /dev/sda5 /mnt
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
chroot /mnt /bin/bash
this is how it works with Gentoo.

Markus
The devices are mounted before chrooting.
There are six mount commands issued before the chroot command.
Code:
sudo mount /dev/sda5 /mnt/
sudo mount --bind /proc /mnt/proc
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /sys /mnt/sys
sudo mount --bind /etc/resolv.conf /mnt/etc/resolv.conf
sudo chroot /mnt/ /bin/bash
 
Old 12-12-2010, 12:40 PM   #17
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by andrewthomas View Post
The devices are mounted before chrooting.
There are six mount commands issued before the chroot command...
@andrewthomas: sorry, I didn't see that you wrote the chroot command again in your code.

Markus
 
Old 12-12-2010, 12:45 PM   #18
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
No problem. I just named the script chroot to identify it. It really could be named anything.
 
Old 12-12-2010, 11:20 PM   #19
weidemmu
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Hey Andrew,

I tried the re-installation, and it fixed the grub prompt issue.

For the MBR problem, I followed the link u posted, deleted the Dell Local DataSafe
and It fixed the MBR problem.

I will try above commands after this..

Thank for your helping ... ;-)

Markus - thank for you as well.
 
Old 12-13-2010, 06:16 AM   #20
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Glad to be of help.

Could you mark the thread as [SOLVED] using the thread tools menu?
 
  


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
[SOLVED] Error: Unknown Filesystem ghostcamera Linux - Laptop and Netbook 6 09-02-2010 07:03 AM
Unknown error message!!!! GCONF or something? alirezan1 Linux - Newbie 3 08-08-2010 08:45 PM
Grub error: unknown filesystem LydonZA Linux - Newbie 6 05-27-2010 06:00 AM
cant start up (error: unknown filesystem) Salo3750 General 2 03-29-2010 01:55 PM
unknown user error message niranjan_s Fedora 1 09-16-2004 03:37 PM

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

All times are GMT -5. The time now is 06:31 AM.

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