Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
Quote:
Originally Posted by EDDY1
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.
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)
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.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
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.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900
Rep:
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
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"
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.