You are not logged in.
Hi,
I have a weird problem where when I connect an extra internal hard drive, my OS won't boot. In order to boot to Arch, I have to disconnect the drive and remove the entry from fstab then reconnect it only once I'm booted. I receive this message when I try to boot with the spare drive:
ERROR: Unable to find root device /dev/sdb3. You are being dropped to a recovery shell/dev/sdb is an SSD and is the boot drive. It contains both the Windows and Linux partition.
/dev/sda is a storage drive that contains both an NTFS and ext4 partition.
/dev/sdc is the spare drive that causes boot problems and is NTFS formatted.
I also get the same problem when I leave a flash drive connected and I try to boot. My BIOS is not configured to boot from USB.
Here are some outputs with the spare drive connected.
fdisk
Disk /dev/sdb: 74.5 GiB, 80026361856 bytes, 156301488 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: 0x9b9dcc69
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sdb2 206848 103811071 51802112 7 HPFS/NTFS/exFAT
/dev/sdb3 104015872 156301311 26142720 83 Linux
/dev/sdb4 103811072 104015871 102400 83 Linux
Partition table entries are not in disk order.
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 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: 0xc3e46687
Device Boot Start End Blocks Id System
/dev/sda1 2048 1324380159 662189056 7 HPFS/NTFS/exFAT
/dev/sda2 1324380160 1953523711 314571776 83 Linux
Disk /dev/sdc: 465.8 GiB, 500107862016 bytes, 976773168 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: 0xc3e46687
Device Boot Start End Blocks Id System
/dev/sdc1 2048 976769023 488383488 7 HPFS/NTFS/exFAT/etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sdb3 / ext4 defaults 0 1
/dev/sdb4 /boot ext4 defaults 0 1
/dev/sda1 /mnt/Storage ntfs-3g uid=myname,gid=users 0
/dev/sda2 /mnt/LinuxStorage ext4 defaults 0 0
/mnt/LinuxStorage/swap none swap defaults 0 0
/dev/sdc1 /mnt/Hitachi ntfs-3g uid=myname,gid=users 0/boot/grub/menu.lst
# (0) Arch Linux
title Arch Linux
root (hd0,3)
kernel /vmlinuz-linux root=/dev/sdb3 ro nomodeset
initrd /initramfs-linux.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,3)
kernel /vmlinuz-linux root=/dev/sdb3 ro nomodeset
initrd /initramfs-linux-fallback.img
# (2) Windows
title Windows 7
rootnoverify (hd0,0)
#makeactive
chainloader +1I have a feeling this is a grub problem and it is trying to boot using the spare drive instead of the boot drive. I'd appreciate some help.
Offline
Offline
or you may change hd0 to hd1.
ezik
Offline
Or use labels: https://wiki.archlinux.org/index.php/Gr … y#By_Label
Offline
Dog avatars agree... labels are great.
Offline
Thanks for the suggestions. I might just go with labels then since they're easier to read than the UUIDs.
One question though: in /boot/grub/menu.lst, do I have to change root hd(X,Y) as well? If so, what should I put there?
Last edited by devrepublic (2014-01-11 21:19:25)
Offline
I'm not much of a grub user, but the other day I was trying to figure out setting up booting archiso with a loopback on my 3rd drive. I couldn't figure out a different way besides using the old hd(X,Y) either. I mean, the labels I could apply to the kernel command line. But I am not sure if grub can even guarantee that one drive will be hdX consistenly.
Offline
One question though: in /boot/grub/menu.lst, do I have to change root hd(X,Y) as well? If so, what should I put there?
The linked part of the Wiki does that you need to change those bits to /dev/disk/by-label/LABEL as instructed by the linked part of the wiki
Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository
Offline
devrepublic wrote:One question though: in /boot/grub/menu.lst, do I have to change root hd(X,Y) as well? If so, what should I put there?
The linked part of the Wiki does that you need to change those bits to /dev/disk/by-label/LABEL as instructed by the linked part of the wiki
The linked part of the wiki explains how to use labels for the kernel command line, but not for grub's internal disk and partition numbering scheme.
Offline
Hi guys,
An easiest way to solve this problem is to simply modify the first hard drive in the bios, or if it doesn't help much, check if when you plugged your new hgard drive you did not interverted the cable sata/ide because it was easier, and plugged az new one for the "old" hard drive (old = hard drive you installed arch on).
Then, do the uuid solution as explained in the first answer.
Offline
If you use UUID or filesystem labels (or PARTLABEL if you use GPT) I don't see why you would need to go through checking your bios for ordering options and then checking "interverted" cables. Not to mention that every bios is different and may or may not offer that option of disk ordering.
Offline