LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 10:27 AM   #16
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308

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, 01:40 PM   #17
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
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, 01:45 PM   #18
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
No problem. I just named the script chroot to identify it. It really could be named anything.
 
Old 12-13-2010, 12:20 AM   #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, 07:16 AM   #20
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

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

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


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


All times are GMT -5. The time now is 05:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration