You are not logged in.

#1 2016-03-21 17:18:18

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

<SOLVED>Grub: error: no such device:

G'day mates! I've got a bit of trouble installing Arch, first to my laptop and then to a VM. The same trouble seems to haunt both attempts. Immediately after installation is finished, I reboot, and I select the first option in Grub, I'm greeted with a warning:

error: no such device: string-of-characters
Loading Linux core repo kernel...
error: no such partition...
Loading initial ramdisk...
error: you need to load the kernel first.
Press any key to continue...

after which it returns to the grub menu.

After a bit of online searching, it appeared that my fstab is not configured properly. So I booted up a live Arch install, mounted the / partition (sda1), and checked fstab. Sure enough, fstab is completely empty. This is a bit weird because I'm positive I ran

genfstab -U /mnt /mnt/etc/fstab

during installation.


So I reformatted swap, made sure that sda1 was mounted in /mnt, and reran genfstab. It appeared to execute correctly, but "cat /mnt/etc/fstab" once again revealed an empty fstab.

At this point I think it would be best to ask for help. smile I've checked the permissions of /mnt/etc/fstab; it is indeed -rw-r--r-- and owned by root. I've checked the arch iso (v. 2016.02.01) and the checksums are good too.

My entire installation script is at http://pastebin.com/XAavu1nz

Thanks for any help!
Fred

Last edited by Fred Barclay (2016-03-21 20:56:49)

Offline

#2 2016-03-21 17:23:22

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: <SOLVED>Grub: error: no such device:

Run genfstab without the redirect, is anything printed?

EDIT: wait, you didn't have a redirect. That's probably your problem. You need to redirect the output to /mnt/etc/fstab, not include it as another parameter.

Last edited by WorMzy (2016-03-21 17:26:06)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-03-21 17:24:44

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Grub: error: no such device:

So in the live system, just do

genfstab

?

EDIT: That only prints instructions on how to use genfstab. smile

Last edited by Fred Barclay (2016-03-21 17:26:06)

Offline

#4 2016-03-21 17:25:51

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,808
Website

Re: <SOLVED>Grub: error: no such device:

Fred Barclay wrote:

This is a bit weird because I'm positive I ran

genfstab -U /mnt /mnt/etc/fstab

during installation.

It should be genfstab -U /mnt >> /mnt/etc/fstab


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#5 2016-03-21 17:25:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,553

Re: <SOLVED>Grub: error: no such device:

Your install script isn't writing to a file.

Online

#6 2016-03-21 17:28:25

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Grub: error: no such device:

ugjka wrote:
Fred Barclay wrote:

This is a bit weird because I'm positive I ran

genfstab -U /mnt /mnt/etc/fstab

during installation.

It should be genfstab -U /mnt >> /mnt/etc/fstab

Okay, just...
How on earth did I miss that!?!

Un segundo and I'll check it--but my notes say that I did run this (without the redirect) so I highly suspect this is the problem.
Grr...

Oh well, laugh instead of cry. lol

Last edited by Fred Barclay (2016-03-21 17:32:48)

Offline

#7 2016-03-21 19:23:24

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Grub: error: no such device:

No go--I still get the same error message at boot.

I did a complete reinstall just to be safe--details are at http://pastebin.com/XAavu1nz
Arch is still booting up with the same error message.

fstab is definitely populated correctly--I checked the uuids with "blkid."

However, I did notice some weird messages during installation--not sure if they're errors or not. I took a screenshot of one of 'em. (Sorry it's so small--it's the biggest windows VBox would give.)
https://i.imgur.com/7ndwsNb.png

Thanks!

Last edited by jasonwryan (2016-03-21 19:38:07)

Offline

#8 2016-03-21 19:39:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: <SOLVED>Grub: error: no such device:

Please don't post screenshots of text, paste the actual text. And  read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2016-03-21 20:06:45

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Grub: error: no such device:

Sorry about that. smile

Offline

#10 2016-03-21 20:11:14

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: <SOLVED>Grub: error: no such device:

You should probably update your title, since the genfstab problem was a red herring and the problem is in something else, presumably grub.

Posting your grub.cfg might help, as well as the output of 'lsblk -f'.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#11 2016-03-21 20:44:19

dcdriving
Member
From: United Kingdom
Registered: 2015-01-20
Posts: 70

Re: <SOLVED>Grub: error: no such device:

One of your problems is this line

grub-mkconfig -o /boot/grub

You should be writing to /boot/grub/grub.cfg

Offline

#12 2016-03-21 20:47:03

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Grub: error: no such device:

Subject renamed. (hopefully). wink

It's going to take some doing to get those files out of the vbox install (it's not like I can install vbox-guest-utils and share a folder). I'll be back!

Offline

#13 2016-03-21 20:49:28

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Grub: error: no such device:

dcdriving wrote:

One of your problems is this line

grub-mkconfig -o /boot/grub

You should be writing to /boot/grub/grub.cfg

No, I don't believe that would hurt, would it? sad

I'm really sorry guys--today is just one of "those days." I don't have my usual notes for installing Arch and apparently I'm incapable of reading a wiki correctly. tongue

Last edited by Fred Barclay (2016-03-21 20:50:29)

Offline

#14 2016-03-21 20:56:25

Fred Barclay
Member
From: /home
Registered: 2015-02-27
Posts: 123

Re: <SOLVED>Grub: error: no such device:

And "grub-mkconfig -o /boot/grub" was to blame. Agh!
Thanks so much!

Offline

#15 2016-03-21 20:58:04

dcdriving
Member
From: United Kingdom
Registered: 2015-01-20
Posts: 70

Re: <SOLVED>Grub: error: no such device:

If you don't write to the correct place, how would grub know where to find the config file?
https://wiki.archlinux.org/index.php/GR … ation_file

Edit, sorry, you got it.

Last edited by dcdriving (2016-03-21 20:59:06)

Offline

Board footer

Powered by FluxBB