You are not logged in.

#1 2014-09-26 18:30:13

0v3rl04d
Member
From: localhost
Registered: 2014-09-26
Posts: 11

Boot rescue after first install

Hi all,

i've installed arch on my laptop but i've a broblem after the first boot...

This is my system configuration: SSD+GPT+BIOS(not UEFI)

I've follow the beginne's guide...

I've created the GPT partition table with gdisk with 'o'.
I've aligned the disk at 6144 (best for my Samsung 840 evo).
I've created the first partition of 2MB with code ef02 for boot, 2nd partition 225GB for / (root) and 3rd partition for swap.
I've closed gdisk with 'w' for write the scheme, this output no errors...

I've installed the system and configured them but when i install the grub2 this output me this error:

https://www.dropbox.com/s/yagajwmycl1ax … 4.jpg?dl=0

What's wrong i do?

Thanks all and sorry for my english ;-)

PS: This is not the 1st time i've installed arch linux...

Offline

#2 2014-09-26 20:08:33

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 324

Re: Boot rescue after first install

this may help

https://bbs.archlinux.org/viewtopic.php … 2#p1242602

what command did you run, do you have llvm installed??


ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820  Steam-HearThis.at-Last FM-Reddit

Offline

#3 2014-09-26 20:58:30

0v3rl04d
Member
From: localhost
Registered: 2014-09-26
Posts: 11

Re: Boot rescue after first install

Thank you for reply!

I've installed again the system to start! :-(

At this time, for installing the grub, i've used this command:

#grub-install --target=i386-pc --recheck --debug /mnt/sdc

This output with no error!!! But when i restart the system the problem it's the same!

error: no such device: 3d95f99c-bla bla...
Entering rescue mode...

Through an ubuntu live:  (arch installed device is sdb)

sudo blkid
/dev/loop0: TYPE="squashfs" 
/dev/sda1: LABEL="Storage" UUID="158d9c57-60fd-4385-8624-5d4a0ea65353" TYPE="ext4" PARTUUID="000d6c9e-01" 
/dev/sdb1: PARTUUID="46ef1da0-44dd-4549-81d9-e49494d9ea92" 
/dev/sdb2: UUID="4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6" TYPE="ext4" PARTUUID="c33a0ea0-b5bd-45a6-9642-704100589f2c" 
/dev/sdb3: UUID="837b4fa3-19f1-4f69-a309-da02eab308e6" TYPE="swap" PARTUUID="7fb8d6b5-d97f-4326-b737-41b677b678ea" 
/dev/sdc1: UUID="2014-07-22-22-36-29-00" LABEL="Ubuntu 14.04.1 LTS amd64" TYPE="iso9660" PTUUID="1b45097d" PTTYPE="dos" PARTUUID="1b45097d-01" 
/dev/sdc2: SEC_TYPE="msdos" UUID="E63C-163E" TYPE="vfat" PARTUUID="1b45097d-02" 
sudo lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 698.7G  0 disk 
└─sda1   8:1    0 698.7G  0 part 
sdb      8:16   0 232.9G  0 disk 
├─sdb1   8:17   0     2M  0 part 
├─sdb2   8:18   0   225G  0 part /
└─sdb3   8:19   0   7.9G  0 part [SWAP]
sdc      8:32   1  14.9G  0 disk 
├─sdc1   8:33   1   981M  0 part 
└─sdc2   8:34   1   2.3M  0 part 
loop0    7:0    0 938.7M  1 loop 
#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sdc2
UUID=4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6       /               ext4           $

# /dev/sdc3
UUID=837b4fa3-19f1-4f69-a309-da02eab308e6       none            swap           $

This is the grub.cfg of the installation:

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt 
insmod ext2
set root='hd2,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
else
  search --no-floppy --fs-uuid --set=root 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt 
	insmod ext2
	set root='hd2,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
	else
	  search --no-floppy --fs-uuid --set=root 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
	fi
	echo	'Loading Linux linux ...'
	linux	/boot/vmlinuz-linux root=UUID=4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6 rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6' {
	menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt 
		insmod ext2
		set root='hd2,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
		else
		  search --no-floppy --fs-uuid --set=root 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initramfs-linux.img
	}
	menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt 
		insmod ext2
		set root='hd2,gpt2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt2 --hint-efi=hd2,gpt2 --hint-baremetal=ahci2,gpt2  4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
		else
		  search --no-floppy --fs-uuid --set=root 4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6
		fi
		echo	'Loading Linux linux ...'
		linux	/boot/vmlinuz-linux root=UUID=4b3df82d-8e9a-4f0c-9dd6-a6a863e2f1b6 rw  quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initramfs-linux-fallback.img
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_memtest86+ ###
### END /etc/grub.d/60_memtest86+ ###

Offline

#4 2014-09-26 21:15:02

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Boot rescue after first install

Why is "/" defined as sdc2 in your fstab?
Shouldn't it be /dev/sdb2?
Same with grub.cfg:

	set root='hd2,gpt2'

GRUB-speak for the second partition (GPT) on the third HDD (GRUB numbers them from 0)...
Also, the GRUB-install command is directed to sdc as well.

Most importantly:

This output with no error!!! But when i restart the system the problem it's the same!

error: no such device: 3d95f99c-bla bla...*
Entering rescue mode...

* Please post the entire error message -- it could be critical.

Offline

#5 2014-09-26 21:27:38

0v3rl04d
Member
From: localhost
Registered: 2014-09-26
Posts: 11

Re: Boot rescue after first install

I don't know why the name is changed... But i think that is not importart, because my fstab is configured by UUID and not with DEV...

The UUID in the grub.cfg is the same showed by blkid...

The error on start is this:

error: no such device: 3d95f99c-0b99-4194-be71-5f6696ec5880
Entering rescue mode...
grub rescue> _

This is exactly the screen that i seen

Thank you

Offline

#6 2014-09-26 21:57:14

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Boot rescue after first install

OK, how about the `grub-install` command?
Try this instead:

# grub-install --target=i386-pc --recheck /dev/sdb

You've used `--recheck --debug /mnt/sdc`, which is entirely wrong:
https://wiki.archlinux.org/index.php/Be … guide#GRUB

Last edited by Head_on_a_Stick (2014-09-26 21:58:05)

Offline

#7 2014-09-26 22:01:11

0v3rl04d
Member
From: localhost
Registered: 2014-09-26
Posts: 11

Re: Boot rescue after first install

I've used the same command:

#grub-install --target=i386-pc --recheck --debug /mnt/sdc

The command end fine with no error.

Offline

#8 2014-09-26 22:05:57

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Boot rescue after first install

Well if you don't want to try my suggestion, just tell me to go away...
tongue

Offline

#9 2014-09-26 22:23:28

0v3rl04d
Member
From: localhost
Registered: 2014-09-26
Posts: 11

Re: Boot rescue after first install

Head_on_a_Stick wrote:

Well if you don't want to try my suggestion, just tell me to go away...
tongue

Sorry now i understand! :-D

I try

EDIT1:

Nothing... After reinstall the grub and update nothing is changed... the same problem at start!

Last edited by 0v3rl04d (2014-09-26 22:47:37)

Offline

#10 2014-09-26 22:50:38

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Boot rescue after first install

Is /dev/sdb1 flagged as a "BIOS boot partition" ("ef02" in gdisk)?
What is the output of:

# gdisk -l /dev/sdb

EDIT: you've aligned to sector 6144 (why? EBS in not directly related to alignment -- 4k is standard) -- I've seen a thread on the Debian forum in which a user with a similarly-aligned drive couldn't boot...
Maybe starting on sector 34 (for the BIOS boot partition, 2048 for the rest) would fix this?
http://forums.debian.net/viewtopic.php?f=17&t=117320

Last edited by Head_on_a_Stick (2014-09-26 22:56:43)

Offline

#11 2014-09-26 22:59:32

0v3rl04d
Member
From: localhost
Registered: 2014-09-26
Posts: 11

Re: Boot rescue after first install

Yes, the sdb1 is 2MB Type ef02 for the boot...

gdisk is not installed...

#fdisk -l
Disk /dev/loop0: 938.7 MiB, 984301568 bytes, 1922464 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000d6c9e

Device     Boot Start        End    Sectors   Size Id Type
/dev/sda1  *     2048 1465147391 1465145344 698.7G 83 Linux

Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 774C8FCD-E215-4CF6-BD10-0A76145935DA

Device         Start       End   Sectors  Size Type
/dev/sdb1       2048      6143      4096    2M BIOS boot
/dev/sdb2       6144 471865343 471859200  225G Linux filesystem
/dev/sdb3  471865344 488397134  16531791  7.9G Linux swap

Disk /dev/sdc: 14.9 GiB, 16018046976 bytes, 31285248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1b45097d

Device     Boot   Start     End Sectors  Size Id Type
/dev/sdc1  *          0 2009087 2009088  981M  0 Empty
/dev/sdc2       1943108 1947779    4672  2.3M ef EFI (FAT-12/16/32)

Offline

#12 2014-09-26 23:05:56

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: Boot rescue after first install

GPT wiki page wrote:

While GPT support on BIOS systems is theoretically possible it sometimes isn't practical and other times there are complete incompatibilities.

https://wiki.archlinux.org/index.php/GU … OS_systems

I would recommend trying a UEFI boot manager such as gummiboot instead...
Or maybe an MBR disk if you want to continue with non-EFI booting.

Offline

#13 2014-09-26 23:08:41

0v3rl04d
Member
From: localhost
Registered: 2014-09-26
Posts: 11

Re: Boot rescue after first install

I try MBR...

Thank you for help

Offline

Board footer

Powered by FluxBB