View Full Version : [SOLVED] hard drive mounting problem
JohnnyBoy022
February 19th, 2008, 10:13 PM
hey everyone, I just installed arch on my laptop. I wanted to install on my external usb hard drive. I unplugged my internal hard drive (with windows) on it for the install, since I was kind of paranoid about ruining something. So during the install the only drive was the external which was identified as sda, great. Everything works fine when the internal is not plugged in.
When I have the internal plugged in and try to boot I get the nasty error message about not being able to mount sda and not finding something or other, kernel panic. Obviously the internal is being identified as sda now so it is looking there. How do I change this, so it looks in sdb (the external) to find the stuff to boot? Thanks for the help
dgray_from_dc
February 19th, 2008, 10:33 PM
I'm not sure I understand, are you setting the BIOS to boot from the external drive? If not, how is your windows drive booting into Linux in the first place?
Anyway, I was thinking, reinstalling GrUB may make things better. Grub is probably looking for sda. If you reinstall, it'll probably reconfigure for sdb.
K.Mandla
February 19th, 2008, 10:40 PM
Maybe when the internal is installed, the drives are renamed in a different sequence. In other words, it's finding the internal drive first, labeling it as /dev/sda1 or something, then trying to find the boot information on that drive. But the external has been labeled as /dev/sda2 or something, and so it's technically looking in the wrong place.
Does that make sense?
JohnnyBoy022
February 19th, 2008, 10:43 PM
Sorry for the misunderstanding, I will try to explain a bit better.
Arch is installed on the external. Windows is installed on the internal. GRUB is installed on the MBR of the external. My BIOS sees the external (where arch is) just fine, and I can get to GRUB. GRUB works fine and I can start booting Arch. About 10 seconds into the Arch boot, I get a message about starting kinit. This is what looks for some "init" file in sda. However, since the external is being mounted as sdb (i believe), it can't find it. So how can I change where this kinit looks for the init file? I think its looking in sda but I want it to look in sdb. Thanks for the help
JohnnyBoy022
February 19th, 2008, 10:45 PM
Maybe when the internal is installed, the drives are renamed in a different sequence. In other words, it's finding the internal drive first, labeling it as /dev/sda1 or something, then trying to find the boot information on that drive. But the external has been labeled as /dev/sda2 or something, and so it's technically looking in the wrong place.
Does that make sense?
This makes sense, except I think the file i want is located in sdb. So how do I change where kinit looks for this file, I want to change from sda to sdb?
dgray_from_dc
February 19th, 2008, 11:13 PM
I think you're on the right track for what you want to do, but the file and/or setting you're looking for is beyond my scope of knowledge. The only advice I can offer is a reinstall with the internal connected. Sorry I couldn't be of more help.
bwtranch
February 20th, 2008, 03:26 AM
Sorry for the misunderstanding, I will try to explain a bit better.
Arch is installed on the external. Windows is installed on the internal. GRUB is installed on the MBR of the external. My BIOS sees the external (where arch is) just fine, and I can get to GRUB. GRUB works fine and I can start booting Arch. About 10 seconds into the Arch boot, I get a message about starting kinit. This is what looks for some "init" file in sda. However, since the external is being mounted as sdb (i believe), it can't find it. So how can I change where this kinit looks for the init file? I think its looking in sda but I want it to look in sdb. Thanks for the help
I can almost get my arms around this one, but not quite. I can't figure out why it wants to look at sda. Hmmm, probably gets detected at startup. Ah, well ok, you could disable auto hardware detection. I'll bet that's what it is. There are several things that would fix this. Depending. What does nano /etc/fstablook like?
K.Mandla
February 20th, 2008, 05:18 AM
This makes sense, except I think the file i want is located in sdb. So how do I change where kinit looks for this file, I want to change from sda to sdb?
You might be able to adjust the kernel boot line to look for the root drive elsewhere. It might be something like
root=/dev/sdXY
I'm not really sure though. I'm having a hard time wrapping my brain around the issue right now. Please stand by. ... :D
JohnnyBoy022
February 20th, 2008, 11:33 PM
K. Mandla, I messed around with it a lot and your fix was the one that worked although I eventually figured it out myself. Thanks for the help though, marked as solved.
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.