LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-22-2009, 06:25 PM   #1
luxianos
LQ Newbie
 
Registered: Nov 2009
Posts: 6

Rep: Reputation: 0
grub-probe: error: cannot find a device for /. (in chroot)


When I am in a chroot and try to install desktop-base appears the message "grub-probe: error: cannot find a device for /." ¿how can i solve it?
 
Old 12-16-2009, 08:40 PM   #2
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
This is because you do not have any device nodes in your chroot environment. You need to fake mount the host system device nodes to the chroot environment. You can do this by using the bind mount option. Lets assume you have your chroot environment mounted at /mnt/new
Code:
 

user@tacos# mount --bind /dev /mnt/new/dev
It is also possible that you may need to mount more then just the /dev to get it to work, but I don't believe so. I am however very surprised to see this in the zero replies since its a simple question.

Last edited by exvor; 12-16-2009 at 08:41 PM.
 
Old 04-15-2010, 06:38 PM   #3
milad621
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
It was great.thanks.
 
Old 06-11-2010, 11:26 AM   #4
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Rep: Reputation: 17
I wish they included that in the Linux From Scratch Book. I was ripping my hair out with this one for days.
 
Old 06-13-2010, 06:18 PM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Actually they do tell you, just not in the same place as the chrooting. This is actually where I got this information when I posted it.
 
Old 02-21-2013, 03:46 AM   #6
leader1201
LQ Newbie
 
Registered: Feb 2013
Posts: 22

Rep: Reputation: Disabled
i am not able to execute chroot command after mounting

hi all,

i was trying to execute the chroot command on my ubuntu virtual machine commands as follows.

chroot /mnt/ubuntu dpkg -i some_pakcges.deb

It is showing that "dpkg" no such file or directory .

before this command i have to mount the /dev on the /mnt direcotory.

mount -o bind /dev /mnt/ubuntu/dev

It is telling /mnt/ubuntu/dev does not exists.

so i have created /dev directory in the /mnt/ubuntu directory and i have executed above command . now i got succeed in mounting. Is it right way to do that ?

may be because of this only i am not able to perform chroot command.

please help me.

thanks in advance.

Last edited by leader1201; 02-21-2013 at 03:49 AM.
 
  


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
Grub, device string replaced with 32 digit hexadecimal number. Caused Grub "error 11" VipX1 Linux - Newbie 3 10-19-2009 05:27 PM
[SOLVED] FC 10: RAID failure test: grub cannot find boot device jot Fedora 3 03-26-2009 09:11 AM
How do I start to probe and prod a usb device? stardotstar Programming 2 06-10-2008 04:25 PM
probe method on bus and device driver not being called kunice Linux - Hardware 0 02-24-2008 11:47 AM
UL 1.0 GRUB: could not find device for /boot: not found or not a block device cma Linux - General 4 12-12-2005 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:34 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