LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 01-23-2012, 04:27 AM   #1
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,242

Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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

Last edited by EDDY1; 01-23-2012 at 04:42 AM.
 
Old 01-23-2012, 12:13 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,617

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Quote:
Originally Posted by EDDY1 View Post
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.
 
Old 01-23-2012, 10:59 PM   #3
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,242

Original Poster
Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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)
 
Old 01-23-2012, 11:04 PM   #4
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,242

Original Poster
Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
Quote:
Originally Posted by k3lt01 View Post
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.
 
Old 01-23-2012, 11:21 PM   #5
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,242

Original Poster
Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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.
Attached Images
File Type: png Screenshot at 2012-01-23 21:22:26.png (89.4 KB, 3 views)

Last edited by EDDY1; 01-23-2012 at 11:28 PM.
 
Old 01-24-2012, 02:46 AM   #6
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,617

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
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.
 
Old 01-24-2012, 02:05 PM   #7
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,242

Original Poster
Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
I'm thinking about reinstalling grub2 to sdb will this change all of the necessary entires to make my system boot from the usb?
 
Old 01-24-2012, 02:30 PM   #8
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,617

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
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
 
Old 01-25-2012, 06:15 PM   #9
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,242

Original Poster
Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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"
 
Old 01-25-2012, 07:52 PM   #10
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with Slackware 14.
Posts: 2,617

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
I'm not sure I'm gonna be to much help, I think Widget or Drs305 on Ubuntu Forums are the men you need.
 
Old 01-27-2012, 11:58 AM   #11
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,242

Original Poster
Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
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.
 
Old 01-27-2012, 12:33 PM   #12
EDDY1
Guru
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,242

Original Poster
Rep: Reputation: 466Reputation: 466Reputation: 466Reputation: 466Reputation: 466
I may have found something in /boot/grub/device.map
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I installed ubuntu 9.04 to my Maxtor external hdd. I have no internal hdd. I can boot dont33 Linux - Newbie 1 08-13-2009 04:13 PM
copied Debian install from dead hdd to new hdd.now system fails to boot :S deepclutch Debian 18 02-15-2008 07:17 AM
Dual boot XP(internal IDE HDD) Debian(external USB-IDE HDD) using boot.ini PolarDog Linux - Laptop and Netbook 2 07-01-2005 09:50 PM
debian and ntfs external hdd wael_nasreddine Debian 22 03-16-2005 07:22 PM
Installing Debian on External HDD h0meb0y25 Debian 2 04-29-2004 12:15 PM


All times are GMT -5. The time now is 06:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration