Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] installed Gentoo on SSD - no bootable device
Date: Fri, 05 Sep 2014 00:36:22
Message-Id: 20140905003621.GJ7483@syscon7
In Reply to: [gentoo-user] installed Gentoo on SSD - no bootable device by Joseph
1 On 09/04/14 18:17, Joseph wrote:
2 >I just installed gentoo on my new SSD (intel 480GB drive SSDSC2BF-480H501)
3 >
4 >I mostly was installing everything over ssh (easier) and using grub2 but upon rebooting I get:
5 >
6 >"No bootable device - Insert boot disk and press any key"
7 >
8 >I boot strap to my system:
9 >
10 ># swapon /dev/sda3
11 ># mount -t ext4 /dev/sda4 /mnt/gentoo
12 ># mount /dev/sda2 /mnt/gentoo/boot
13 ># cd /mnt/gentoo
14 ># mount -t proc none /mnt/gentoo/proc
15 ># mount --rbind /dev /mnt/gentoo/dev
16 ># chroot /mnt/gentoo /bin/bash
17 ># env-update
18 ># source /etc/profile
19 >
20 >If boot strap and try to start ssh I and get a warning (and can not login)
21 >
22 >"You attempting to run an openrc service on a system which openrc did not boot
23 >..."
24 >I can ssh to the system before I boot I bootstrap
25 >
26 >My partition:
27 >fdisk -l /dev/sda
28 >
29 >Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors
30 >Units: sectors of 1 * 512 = 512 bytes
31 >Sector size (logical/physical): 512 bytes / 512 bytes
32 >I/O size (minimum/optimal): 512 bytes / 512 bytes
33 >Disklabel type: gpt
34 >Disk identifier: 37C37937-6310-4B04-93A6-05CD7792EF16
35 >
36 >Device Start End Size Type
37 >/dev/sda1 2048 6143 2M BIOS boot partition
38 >/dev/sda2 6144 268287 128M Linux filesystem
39 >/dev/sda3 268288 4462591 2G Linux swap
40 >/dev/sda4 4462592 937703054 445G Linux filesystem
41 >
42 >sda2 - boot
43 >sda4 - root
44
45 When I installed grub2 I got no errors:
46 grub2-install /dev/sda
47 Installation finished. No error reported.
48
49 but looking at grub2 configuration, it is looking for kernel on sda4 (shouldn't it be sda2?).
50
51 linux /vmlinuz-3.14.14-gentoo root=/dev/sda4 ro single
52
53
54 ### BEGIN /etc/grub.d/00_header ###
55 if [ -s $prefix/grubenv ]; then
56 load_env
57 fi
58 if [ "${next_entry}" ] ; then
59 set default="${next_entry}"
60 set next_entry=
61 save_env next_entry
62 set boot_once=true
63 else
64 set default="0"
65 fi
66
67 if [ x"${feature_menuentry_id}" = xy ]; then
68 menuentry_id_option="--id"
69 else
70 menuentry_id_option=""
71 fi
72
73 export menuentry_id_option
74
75 if [ "${prev_saved_entry}" ]; then
76 set saved_entry="${prev_saved_entry}"
77 save_env saved_entry
78 set prev_saved_entry=
79 save_env prev_saved_entry
80 set boot_once=true
81 fi
82
83 function savedefault {
84 if [ -z "${boot_once}" ]; then
85 saved_entry="${chosen}"
86 save_env saved_entry
87 fi
88 }
89
90 function load_video {
91 if [ x$feature_all_video_module = xy ]; then
92 insmod all_video
93 else
94 insmod efi_gop
95 insmod efi_uga
96 insmod ieee1275_fb
97 insmod vbe
98 insmod vga
99 insmod video_bochs
100 insmod video_cirrus
101 fi
102 }
103
104 if [ x$feature_default_font_path = xy ] ; then
105 font=unicode
106 else
107 insmod part_gpt
108 insmod ext2
109 set root='hd0,gpt4'
110 if [ x$feature_platform_search_hint = xy ]; then
111 search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt4 --hint-efi=hd0,gpt4 --hint-baremetal=ahci0,gpt4 00e8b950-21c6-4558-918f-855042b42d36
112 else
113 search --no-floppy --fs-uuid --set=root 00e8b950-21c6-4558-918f-855042b42d36
114 fi
115 font="/usr/share/grub/unicode.pf2"
116 fi
117
118 if loadfont $font ; then
119 set gfxmode=auto
120 load_video
121 insmod gfxterm
122 set locale_dir=$prefix/locale
123 set lang=en_US
124 insmod gettext
125 fi
126 terminal_output gfxterm
127 if sleep --interruptible 0 ; then
128 set timeout=10
129 fi
130 ### END /etc/grub.d/00_header ###
131
132 ### BEGIN /etc/grub.d/10_linux ###
133 menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-00e8b950-21c6-4558-918f-855042b42d36' {
134 load_video
135 insmod gzio
136 insmod part_gpt
137 insmod ext2
138 set root='hd0,gpt2'
139 if [ x$feature_platform_search_hint = xy ]; then
140 search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 4fac7293-6a58-43a4-857b-6e3095a8e50d
141 else
142 search --no-floppy --fs-uuid --set=root 4fac7293-6a58-43a4-857b-6e3095a8e50d
143 fi
144 echo 'Loading Linux 3.14.14-gentoo ...'
145 linux /vmlinuz-3.14.14-gentoo root=/dev/sda4 ro
146 }
147 submenu 'Advanced options for Gentoo GNU/Linux' $menuentry_id_option 'gnulinux-advanced-00e8b950-21c6-4558-918f-855042b42d36' {
148 menuentry 'Gentoo GNU/Linux, with Linux 3.14.14-gentoo' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option
149 'gnulinux-3.14.14-gentoo-advanced-00e8b950-21c6-4558-918f-855042b42d36' {
150 load_video
151 insmod gzio
152 insmod part_gpt
153 insmod ext2
154 set root='hd0,gpt2'
155 if [ x$feature_platform_search_hint = xy ]; then
156 search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 4fac7293-6a58-43a4-857b-6e3095a8e50d
157 else
158 search --no-floppy --fs-uuid --set=root 4fac7293-6a58-43a4-857b-6e3095a8e50d
159 fi
160 echo 'Loading Linux 3.14.14-gentoo ...'
161 linux /vmlinuz-3.14.14-gentoo root=/dev/sda4 ro
162 }
163 menuentry 'Gentoo GNU/Linux, with Linux 3.14.14-gentoo (recovery mode)' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option
164 'gnulinux-3.14.14-gentoo-recovery-00e8b950-21c6-4558-918f-855042b42d36' {
165 load_video
166 insmod gzio
167 insmod part_gpt
168 insmod ext2
169 set root='hd0,gpt2'
170 if [ x$feature_platform_search_hint = xy ]; then
171 search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 4fac7293-6a58-43a4-857b-6e3095a8e50d
172 else
173 search --no-floppy --fs-uuid --set=root 4fac7293-6a58-43a4-857b-6e3095a8e50d
174 fi
175 echo 'Loading Linux 3.14.14-gentoo ...'
176 linux /vmlinuz-3.14.14-gentoo root=/dev/sda4 ro single
177 }
178 }
179
180 ### END /etc/grub.d/10_linux ###
181
182 ### BEGIN /etc/grub.d/20_linux_xen ###
183 ### END /etc/grub.d/20_linux_xen ###
184
185 ### BEGIN /etc/grub.d/30_os-prober ###
186 ### END /etc/grub.d/30_os-prober ###
187
188 ### BEGIN /etc/grub.d/40_custom ###
189 # This file provides an easy way to add custom menu entries. Simply type the
190 # menu entries you want to add after this comment. Be careful not to change
191 # the 'exec tail' line above.
192 ### END /etc/grub.d/40_custom ###
193
194 ### BEGIN /etc/grub.d/41_custom ###
195 if [ -f ${config_directory}/custom.cfg ]; then
196 source ${config_directory}/custom.cfg
197 elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
198 source $prefix/custom.cfg;
199 fi
200 ### END /etc/grub.d/41_custom ###
201
202
203 --
204 Joseph

Replies

Subject Author
Re: [gentoo-user] installed Gentoo on SSD - no bootable device Daniel Frey <djqfrey@×××××.com>