[SOLVED] '/usr/sbin/grub-probe: error: cannot stat `/dev/root'
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
'/usr/sbin/grub-probe: error: cannot stat `/dev/root'
Hi everybody
I build target BLFS, now I want to use LFS as a standalone OS and boot directly from Bios, not as a bootable partition by host.
I have installed grub2 on LFS7.2 and I'd make my grub.cfg file.
my partition that LFS is located on it, is sdb1
now I am booted on BLFS through my host grub and below info is from booted BLFS(that have X and fluxbox and Firefox).
Code:
root [ /home/blfs ]# mount
/dev/sdb1 on / type ext3 (rw,barrier=1)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
tmpfs on /run type tmpfs (rw)
devtmpfs on /dev type devtmpfs (rw,nosuid,mode=0755)
devpts on /dev/pts type devpts (rw,gid=4,mode=620)
Code:
root [ /home/blfs ]# cat /boot/grub/grub.cfg
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext2
set root=(hd1,1)
menuentry "GNU/Linux, MYLinux 3.5.2-lfs-7.2" {
linux /boot/vmlinuz-3.5.2-lfs-7.2 root=/dev/sdb1 ro
}
root [ /home/blfs ]#
Hi Spiky0011
I build LFS on a VM.
yesterday I wanted to boot LFS as a standalone OS and the problem have been solved with this thread. for install grub, I logout from LFS GUI and chroot to LFS env according to LFS book instructions and the problem solved and now LFS is booted on a VM.
but now I want to transfer LFS on a hardware like flash or thin.
to do this, I first compressed LFS to lfs.tar.bz2 that its size is about 500M and my thin memory is 2G.
I first run a iso os like fedora 13 then I mount my flash and my thin to live fedora and copy lfs.tar.bz2 to my hard. but when I extract the lfs.tar.bz2 because the size of LFS is about 1.4G then my memory space not is enough.
what do I do?
please give me your suggestions.
thank you every body
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.