You are not logged in.

#1 2014-01-11 18:33:48

devrepublic
Member
Registered: 2013-02-06
Posts: 20

Unable to boot after adding an internal hard drive

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 +1

I 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

#2 2014-01-11 19:01:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Unable to boot after adding an internal hard drive


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-01-11 19:06:04

shulamy
Member
From: israel
Registered: 2010-09-11
Posts: 470

Re: Unable to boot after adding an internal hard drive

or you may change hd0 to hd1.

ezik

Offline

#4 2014-01-11 19:30:39

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: Unable to boot after adding an internal hard drive

Offline

#5 2014-01-11 20:00:36

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to boot after adding an internal hard drive

Dog avatars agree... labels are great.

Offline

#6 2014-01-11 21:18:58

devrepublic
Member
Registered: 2013-02-06
Posts: 20

Re: Unable to boot after adding an internal hard drive

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

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

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to boot after adding an internal hard drive

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

#8 2014-01-12 17:46:43

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,175
Website

Re: Unable to boot after adding an internal hard drive

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


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

#9 2014-01-12 19:47:01

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to boot after adding an internal hard drive

clfarron4 wrote:
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

#10 2014-01-14 10:54:03

madnerves
Member
Registered: 2008-03-13
Posts: 20

Re: Unable to boot after adding an internal hard drive

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

#11 2014-01-14 14:45:00

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Unable to boot after adding an internal hard drive

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

Board footer

Powered by FluxBB