LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian error on boot external hdd (http://www.linuxquestions.org/questions/linux-newbie-8/debian-error-on-boot-external-hdd-925217/)

EDDY1 01-23-2012 05:27 AM

Debian error on boot external hdd
 
Have a hdd that has os installed, took out of my machine and put in an enclosure. I get my grub screen but uponloading the os it goes to busybox with error "/bin/sh: can't accesstty: job control turned off (initramfs)
Also says
Alert /dev/disk/by-uuid/long number does not exist. Dropping to shell

k3lt01 01-23-2012 01:13 PM

Quote:

Originally Posted by EDDY1 (Post 4581946)
Have a hdd that has os installed, took out of my machine and put in an enclosure. I get my grub screen but uponloading the os it goes to busybox with error "/bin/sh: can't accesstty: job control turned off (initramfs)
Also says
Alert /dev/disk/by-uuid/long number does not exist. Dropping to shell

Start your machine and let the internal hdd's OS boot up (hopefully it's linux) make sure the external hdd is connected and in a terminal type
Code:

blkid
This will give you the uuids for each hdd. Now go into Grub and change the uuid for your external hdd save and reboot.

EDDY1 01-23-2012 11:59 PM

I believe that because it was originally my main disk that it's listed as sda, I've changed entries in /etc/fstab , but haven't made the changes in grub2, still looking for the file to edit.
At present I have a running sid system to go in and make any changes necessary.
I'm just trying to find the editable grub file to change my (hd0,msdos6) to (hd1,msdos6)

EDDY1 01-24-2012 12:04 AM

Quote:

Originally Posted by k3lt01 (Post 4582316)
Start your machine and let the internal hdd's OS boot up (hopefully it's linux) make sure the external hdd is connected and in a terminal type
Code:

blkid
This will give you the uuids for each hdd. Now go into Grub and change the uuid for your external hdd save and reboot.

Thank you I will try this later as it does refer to my grub issue.

EDDY1 01-24-2012 12:21 AM

1 Attachment(s)
As suggested I ran "blkid" it does show that the device is being seen as sdb, which originally it was sda.
Both drives have their own grubs & I would like to keep it that way to use the drive to boot another computer of the same architecture externally, so I have already made /etc/fstab changes, but have not found the grub file to edit yet, so now I'm going to try google for grub2 editing.

k3lt01 01-24-2012 03:46 AM

Eddy, I am able to work through Grub2 on my own machines because I have the time to do so but I'm thinking this will be quicker if someone like Widget joins this discussion. Widget is one of the few that I know of who are good with Grub2 just off the top of his head.

The way I see it is you currently have two options, you can edit the /boot/grub/grub.cfg file on the internal hard drive or you can run grub-update on the machine itself as long as you have the external hdd connected and mounted.I think that should pick it up for you.

EDDY1 01-24-2012 03:05 PM

I'm thinking about reinstalling grub2 to sdb will this change all of the necessary entires to make my system boot from the usb?

k3lt01 01-24-2012 03:30 PM

I'm not sure re-installing Grub will help. When I work from USB flash drives I just set the uuid to the drive and set the bios to boot from USB before internal hdd. I think if you re-install Grub it will do the grub update but place the internal hdd menus in the external's grub.cfg

EDDY1 01-25-2012 07:15 PM

I tried update-grub it put entries in grub but still won't boot, so I'm pretty sure that it hsa something to do with device listing. In fact upon booting the debian os that will boot I've gotten a new message
"hdio_get_identity /dev/sdb failed invalid argument"

k3lt01 01-25-2012 08:52 PM

I'm not sure I'm gonna be to much help, I think Widget or Drs305 on Ubuntu Forums are the men you need.

EDDY1 01-27-2012 12:58 PM

Right now I'm still looking for help in remapping the drive, when I use debian live on my usb stick & do "fdisk -l" it shows itself as sdb my main drive as sda 7 the usb drive in the enclosure as sdc.
Booting from gparted-live-cd it shows main as hda & usb enclosure as sda.
Booting from main drive it just shows sda & sdb.
I have yet to find the entries to edit in wins bootloader & grub.
Actually I have found the file in grub but have not done it before.

EDDY1 01-27-2012 01:33 PM

I may have found something in /boot/grub/device.map


All times are GMT -5. The time now is 09:28 AM.