LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-27-2014, 05:00 PM   #1
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 516

Rep: Reputation: 50
Angry "`/boot/grub' is not readable by GRUB on boot" & "cannot find a device for /"


Whenever I try updating grub, I get this error:
Code:
# grub-install /dev/sda
Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting.
and
Code:
# grub-mkconfig -o /boot/grub/grub.cfg 
/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
Also, I'm using the btrfs.
 
Old 12-28-2014, 01:01 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
This thread should help.

Last edited by Richard Cranium; 12-28-2014 at 05:01 PM. Reason: Thanks j_v!
 
Old 12-28-2014, 09:05 AM   #3
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
@Richard_Cranium: url needs editing. This is what I get when I copy/paste it:
Code:
http://http//www.linuxquestions.org/questions/slackware-14/rootdev-not-found-by-sbin-init-from-initramfs-4175522403/
This seems to be the one intended?
Code:
http://www.linuxquestions.org/questions/slackware-14/rootdev-not-found-by-sbin-init-from-initramfs-4175522403/
My apologies if I'm stating the obvious.
 
Old 12-28-2014, 05:01 PM   #4
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Nope, you are correct. I've edited the post.
 
Old 12-28-2014, 08:22 PM   #5
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 516

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Richard Cranium View Post
This thread should help.
What specifically about that thread applies here?

I find it strange that grub could install once, but any subsequent grub-install gives the above errors.

Also, the first time I installed grub was when I was booted from the install disk, yet booting from that disk again and issuing grub-install still throws the above errors.

Also, I'm installing grub on a small (~5 MB) BIOS boot partition.
 
Old 12-28-2014, 08:37 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
you did mount the boot partition to /boot before running grub-install?
 
Old 12-28-2014, 11:56 PM   #7
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 516

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by colorpurple21859 View Post
you did mount the boot partition to /boot before running grub-install?
I did this: http://docs.slackware.com/howtos:sla..._first_install
 
Old 12-29-2014, 05:10 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
If your following that Doc make sure you have the boot partition mounted to /mnt/boot
or
boot the installation on the drive from the install disk as per the instructions at the boot screen of the install disk and once booted into your installation mount the boot partition to /boot if not mounted then rerun grub.
 
Old 12-29-2014, 08:19 AM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Geremia View Post
What specifically about that thread applies here?
It's difficult to read your mind when you leave out details such as...

Quote:
I find it strange that grub could install once, but any subsequent grub-install gives the above errors.

Also, the first time I installed grub was when I was booted from the install disk, yet booting from that disk again and issuing grub-install still throws the above errors.

Also, I'm installing grub on a small (~5 MB) BIOS boot partition.
...so do better next time in your initial post.
 
Old 12-30-2014, 08:51 PM   #10
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 516

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Richard Cranium View Post
It's difficult to read your mind when you leave out details such as...
...so do better next time in your initial post.
I'm not sure what else there is to say. I was able to successfully run install-grub once, but every subsequent time running it gives the "`/boot/grub' is not readable by GRUB on boot" error. Why can I only successfully install grub once?
 
Old 12-30-2014, 08:59 PM   #11
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
so I will ask again, is the bios boot partition mounted to /boot on the root file system? The link you posted above tells how to install grub during installation. It tells me nothing about if/or where the bios boot partition is mounted. What is the ouput of
Code:
mount -l
 
Old 12-30-2014, 09:07 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
also the output of
Code:
fdisk -l
 
Old 12-31-2014, 02:21 AM   #13
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 516

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by colorpurple21859 View Post
What is the ouput of
Code:
mount -l
Code:
/dev/sda1 on / type btrfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
gvfsd-fuse on /home/geremia/.gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,user=geremia)
Quote:
Originally Posted by colorpurple21859 View Post
also the output of
Code:
fdisk -l
Code:
# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.10

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 1953525168 sectors, 931.5 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): 89ABC430-B22D-4202-BD09-A19804955C61
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 1953525134
Partitions will be aligned on 8-sector boundaries
Total free space is 0 sectors (0 bytes)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048      1953525134   931.5 GiB   8300  
   2              34            2047   1007.0 KiB  EF02
 
Old 12-31-2014, 05:11 AM   #14
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,396

Rep: Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594Reputation: 1594
after booting or chrooting into the slackware installation at the command prompt issue
Code:
mount /dev/sda2 /boot/efi
to mount the boot bios partition. then run grub-install or grub-mkconfig. This is assuming your booting in efi mode. If you still have errors, booting in bios mode or no /boot/efi, then mount the boot bios partition to /boot.
Code:
ls /boot
will list what is in /boot. If you just want to update the grub.cfg file then just run grub_mkconfig after mounting the boot bios partition. if After running grub-mkconfig you boot menu doesn't change, the grub.cfg file may be in the wrong location if booting in efi mode.

Last edited by colorpurple21859; 12-31-2014 at 06:40 AM.
 
Old 12-31-2014, 02:28 PM   #15
Geremia
Member
 
Registered: Apr 2011
Distribution: slackware64-current
Posts: 516

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by colorpurple21859 View Post
assuming your booting in efi mode.
No, I'm using BIOS, not EFI.
Quote:
Originally Posted by colorpurple21859 View Post
If you still have errors, booting in bios mode or no /boot/efi, then mount the boot bios partition to /boot.
That produces an error, saying something about NTFS and how it couldn't be mounted. What filesystem type is the BIOS boot partition (of type EF02)?
 
  


Reply

Tags
btrfs, grub, grub2



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] i didn't find "grub.cfg" file on /boot/grub/ Carl_cj Slackware 14 11-16-2014 09:21 AM
[SOLVED] There is no "menu.lst" in my Ubuntu "/boot/grub/" folder. msbstar Linux - Newbie 18 09-15-2012 01:26 PM
dual boot fedora & vista - boot error - "GRUB loading stage 2" ans Fedora 1 08-20-2007 03:35 AM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
grub list "MZ" for my windows boot "Help on Change" davimint Linux - Newbie 2 01-26-2006 06:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:28 PM.

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