View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-22-2009, 07:25 PM   #1
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, 09:40 PM   #2
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,531

Rep: Reputation: 74
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

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 09:41 PM.
Old 04-15-2010, 07:38 PM   #3
LQ Newbie
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
It was great.thanks.
Old 06-11-2010, 12:26 PM   #4
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, 07:18 PM   #5
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,531

Rep: Reputation: 74
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, 04:46 AM   #6
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 04:49 AM.


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

All times are GMT -5. The time now is 05:58 PM.

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