Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Minimal BASH-like line editing is supported.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
usuha
n00b
n00b


Joined: 28 May 2016
Posts: 26
Location: Tokyo, Japan

PostPosted: Mon Jun 26, 2017 5:09 am    Post subject: Minimal BASH-like line editing is supported. Reply with quote

I installed Gentoo Linux, but did not reboot.
The ISO file used for installation is install-amd64-minimal-20170622.iso.

emerge sys-boot/grub
grub-install /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

It stops on the screen below.

GNU BRUB version 2.2
Minimal BASH-like line editing is supported. For the first word, TAB lists possible commnad completions. Anywhere else TAB lists possible device or file completions

grub>_
grub>linux (hd0,2)/boot/kernel-4.9.34 root=/dev/sda3
error: unknown filesystem

If anyone knows how to solve this problem, please give me a professor.


Last edited by usuha on Mon Jun 26, 2017 11:18 am; edited 2 times in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Mon Jun 26, 2017 7:18 am    Post subject: Reply with quote

http://sysresccd.org has an option to Boot an existing Linux system installed on the disk. Boot your system using Sysresccd and check what filesystem you have on /dev/sda3
Code:
lsblk -o+fstype /dev/sda
Then check support for this filesystem in your kernel.
Back to top
View user's profile Send private message
usuha
n00b
n00b


Joined: 28 May 2016
Posts: 26
Location: Tokyo, Japan

PostPosted: Mon Jun 26, 2017 7:45 am    Post subject: Minimal BASH-like line editing is supported. Reply with quote

Thank a lot charles17.

I installed "Gentoo Linux" in the virtual environment of VMware Workstation 12 Pro.

fdisk –l
fdisk /dev/sda
o
n, p, 1, 2048, +800M, a
n, p, 2, Enter, +2.2G
n, p, 3, Enter, Enter
w

mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda3
mkswap /dev/sda2
swapon /dev/sda2

I do not understand how to boot from "grub>".
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Mon Jun 26, 2017 8:10 am    Post subject: Reply with quote

Maybe https://www.startpage.com/do/search?query="vmware"+"grub" could help?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Mon Jun 26, 2017 8:12 am    Post subject: Reply with quote

usuha,

You are being confused by the two contexts for the word 'root'. It means different things to grub and the kernel.

Code:
mkfs.ext4 /dev/sda1
mkfs.ext4 /dev/sda3
mkswap /dev/sda2

grub calls its root, the partition where its files are found. That's /boot to the kernel. (sda1)
The kernel calls its root the top of the filesystem tree. (sda3)

Code:
grub>linux (hd0,2)/boot/kernel-4.9.34 root=/dev/sda3

Is close. The (hd0,2) is grubspeak for sda3. It should be (hd0,0), since grubs files are on sda1,

Try
Code:
grub>linux (hd0,0)/boot/kernel-4.9.34 root=/dev/sda3

You may need an initrd line too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
usuha
n00b
n00b


Joined: 28 May 2016
Posts: 26
Location: Tokyo, Japan

PostPosted: Mon Jun 26, 2017 8:31 am    Post subject: Reply with quote

Thanks a lot NeddySeagoon.

"Gentoo Linux" did not start up.
The following error message appeared.

grub>linux (hd0,0)/boot/kernel-4.9.34 root=/dev/sda3
error: no such partition.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Mon Jun 26, 2017 8:54 am    Post subject: Reply with quote

usuha,

I must still be asleep.
Its kernel, not linux.
Code:
kernel (hd0,0)/boot/kernel-4.9.34 root=/dev/sda3


You can also use tab completion.
Type kernel (hd then press the tab key.
Grub will either list your hard driven or if there is only one, fill in the HDD.

Extend the typing to the comma.
kernel (hd0, and press tab again. Grub will list your partitions.
Once you get to kernel (hd0,0)/boot/ the tab key will list all the files in /boot.
Type the first few letters of your kernel file name and press tab.
Add the root=/dev/sda3 since grub cannot help with that.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
usuha
n00b
n00b


Joined: 28 May 2016
Posts: 26
Location: Tokyo, Japan

PostPosted: Mon Jun 26, 2017 11:13 am    Post subject: Reply with quote

Thanks a lot NeddySeagoon.

kernel (hd
tab key
kernel (hd0
comma
tab key
kernel (hd0,msdos_

From now on, I do not understand well.
Do I need to create a BIOS boot partition?

(parted)mkpart primary 1 3
(parted)name 1 grub
(parted)set 1 bios_grub on

Thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum