You are not logged in.

#1 2014-01-05 18:31:53

aceloop
Member
Registered: 2014-01-05
Posts: 4

grub doesn't load the kernel in virtualbox

in a couple of months im going to get a new machine to go alone side my laptop, and in the new machine i want to install arch linux. so i thought i test it in VBox.

but im getting an error.

-snip-

this is what I see when I try to load archlinux in virtualbox.


any help?

Last edited by aceloop (2014-01-05 20:03:22)

Offline

#2 2014-01-05 18:57:42

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: grub doesn't load the kernel in virtualbox

Put the Archiso on the VM and launch it at boot time
Post the installation's /boot/grub/grub.cfg and

ls lF /dev/disk/by-UUID
lsblk

Better details clearer answers, don't you?


do it good first, it will be faster than do it twice the saint wink

Offline

#3 2014-01-05 19:47:25

aceloop
Member
Registered: 2014-01-05
Posts: 4

Re: grub doesn't load the kernel in virtualbox

sorry about the question not being clearer. ive sent most of my weekend trying to install arch, just a bit of frustration starting to kick in.



installation's /boot/grub/grub.cfg ----

a bit might be missing if so, i can upload bit too.

-snip-


"ls lF /dev/disk/by-UUID" wasnt work so i did "ls -l /dev/disk/by-uuid/"


-snip-


lsblk---

-snip-

Last edited by aceloop (2014-01-05 20:03:04)

Offline

#4 2014-01-05 19:52:20

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

Re: grub doesn't load the kernel in virtualbox

My god man, please learn to copy and paste.

Offline

#5 2014-01-05 19:56:01

aceloop
Member
Registered: 2014-01-05
Posts: 4

Re: grub doesn't load the kernel in virtualbox

Scimmia wrote:

My god man, please learn to copy and paste.

which mistake did i do know?

Offline

#6 2014-01-05 19:58:27

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: grub doesn't load the kernel in virtualbox

aceloop, welcome to the forums. Please read our forum rules to make yourself aware of them. Please remove all images and copy paste the output you get. The images you have posted violate the image size restriction we have on our boards.

secondly also search the boards for similar threads. I have seen at least 2 threads -- 1 with a possible solution.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#7 2014-01-05 20:00:41

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

Re: grub doesn't load the kernel in virtualbox

Posting a bunch of screenshots instead of just pasted text.

Anyway, your problem is obvious. Look at your GRUB config file, you see that root=UUID=ad4103..., when that UUID doesn't exist. Change it.

Offline

#8 2014-01-05 23:43:22

aceloop
Member
Registered: 2014-01-05
Posts: 4

Re: grub doesn't load the kernel in virtualbox

hello guys again. well the problem im having now is that i can seem to edit the /etc/grub.d/40_custom file, it just wouldn't save what i want. every time i reboot the CD it seems to "forget" the setup.


and the code should be this right?

menuentry "My arch" {
	set root=(hd0,4)
	linux /boot/vmlinuz-linux root=UUID=  rw quietlinux
	initrd /boot/initrd.img 
}

thanks to everyone

Last edited by aceloop (2014-01-05 23:43:57)

Offline

#9 2014-01-06 06:33:23

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: grub doesn't load the kernel in virtualbox

aceloop, that is incorrect grub config.

When you use UUID, you actually have to provide the UUID of the root partition.

As an aside, if you are looking to be spoonfed all the answers, then Arch might not be for you. Please do some research on your own especially things like these are well documented in the wiki.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2014-01-06 08:44:37

Andy_Crowd
Member
From: 延雪平縣 Sweden
Registered: 2013-12-28
Posts: 119

Re: grub doesn't load the kernel in virtualbox

Try boot from CD, mount partition, use arch-chroot to go inside, use grub-install /dev/sda , or you can use "fdisk -l" to find your harddrive name and use "grub-install /dev/sdX"  --boot-directory=/mnt/boot (X is name of disk).
You can use "cat /boot/grub/grub.cfg | grep UUID" to find "old" uuid in grub. From example abowe use "ls -l /dev/disk/by-uuid/" to find UUID for your disk. Use sed -i "s/your old uuid/new uuid for your disk/g" /boot/grub/grub.cfg
Correct me if I am wrong.


Help to make Arora bug free!!
日不落 | Year 2081 | 笑傲江湖 | One more a really good book in my collection the Drystoll.

Offline

Board footer

Powered by FluxBB