LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-06-2006, 03:05 PM   #1
Ingla
Member
 
Registered: Oct 2005
Distribution: Ubuntu 8.04, Ubuntu 10.04
Posts: 159

Rep: Reputation: 15
Can't Boot In - Please Help!


Hello.

I posted some of this previously and got one reply from bigrigdriver. I guess he went offline, but I still need some authoritative help. If anyone knows about these things, your assistance will be greatly appreciated.

I've been running Ubuntu 5.10 (Breezy) for a while with no special
problems. It's on a separate hard drive in a removable drawer. I'm not talking about USB or other removable media. A computer has room and cables for two hard drives (at least). The drawers, which I've been using for years, simply plug in to the cables. The frame of the drawer is permanently connected to the cables leading to the motherboard. The removable part simply plugs in with pins to the frame. That way, you can remove one hard drive and put in another without opening the machine. However, this is exactly the same as if you did open it and change the hard drives.

The Linux disk had been out of the machine for about 24 hours. It had been working fine and I had made no recent installations or other changes.

When I put in the disk and tried to boot into Ubuntu as usual, I got this:

Alert! /dev/hdc1 does not exist. Dropping to shell!

It just hung on that.

After going to Windows and coming back, I got the same thing several
times. Once, it continued, saying:

BusyBox v1.00-pre10 (Debian 20040623-1ubuntu 22) Built in shell (ash).
Enter 'help' for a list of built in commands.
/bin/sh: can't access tty: job control turned off
#_

Usually, it doesn't get that far, but just hangs on the first message.

Can anyone tell me how such a thing could happen and what - if
anything - I can do about it?

Bigrigdriver suggested this may have been caused by removing a hard disk before it was unmounted. I've never done that. I only change hard drives after going out of Linux (or Windows) in the proper manner and after the machine is turned off. However, I have some reason to suspect that another user on this machine is not quite so careful. It's not impossible that he hit "Shut Down" and immediately pulled the hard drive.

In any case, he said this may be fixable (I've spent a lot of time and effort setting up this system and it would be a shame to have to format and start again...especially since I can't even get in to copy out all the how-to's I had been compiling in case I needed to retrace my steps).

Under Windows, I would have a good idea where to start to attempt a
fix (although, if Windows breaks, it's often hopeless). At minimum,
I'd have a good chance of recovering data. But, I'm a Linux
newbie...at least as far as anything like this is concerned.

I do have an Ubuntu Live CD, but have never tried to use it (hope it
boots). Bigrigdriver mentioned fsck, but it has a lot of optional parameters and, if I understand correctly, I have to be sure that no part of the Linux system is mounted, or I could kill it for good.

I would think that, if the Linux hard drive were in the machine and I just booted from the Live CD, nothing would be mounted and I could proceed. Is this correct?

Searching around, I found that fsck won't run if superblock is corrupted. This is the quote:
------------------------------------------------------------------
"If the superblock is corrupted the file system still can be repaired using alternate superblock which are formed while making new file system .

the first alternate superblock number is 32 and others superblock numbers can be found using the following command :

newfs -N /dev/rdsk/c0t0d0s6

for example to run fsck using first alternate superblock following command is used

fsck -F ufs -o b=32 /dev/rdsk/c0t0d0s6"
------------------------------------------------------------------
How would I know if I needed to do this? Can I do it from Live CD?

What I need is a one-step-at-a-time walk-through, in baby talk. If
anyone knows how to go about this, I'd certainly appreciate the help.

Thanks very much.
 
Old 03-06-2006, 04:03 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Are both drives in removable bays?
If so have you changed the order to which they are installed?
Is one drive that was in there during the install no longer there?
I would make sure the system drives are plugged in the right bays and the drive is still set to be master or slave in the process during the install. If you had 2 drives plugged in at boot and linux install on the second then the bootloader on the master boot record is on the first drive. See if any of this helps.

Brian1
 
Old 03-06-2006, 04:40 PM   #3
Ingla
Member
 
Registered: Oct 2005
Distribution: Ubuntu 8.04, Ubuntu 10.04
Posts: 159

Original Poster
Rep: Reputation: 15
Thanks for the reply.

I have two drawers, one above the other. The bottom is usually Windows and the top one is whatever else I'm using at the moment. I could reverse that, but try not too because it gets confusing to know which boot sequence to use if you don't keep something constant.

If I have disks in both drawers, I change the boot sequence in CMOS. Both drives are masters.

Often, just because the computer runs faster with only one drive, I remove the bottom disk...then boot in without changing anything in CMOS. With nothing in the bottom drawer the machine boots to the top one. This is often how I run Linux and it is how I originally installed it.

I only have one disk in the machine when I'm installing an OS..to avoid crossovers where one system is actually partially installed on the other other disk, which would require both to be in the machine forever and booted in the right way (is that what you meant?). I remove the bottom drawer and put the disk I want to install to in the top...then boot from the installation CD. Thus all disks are always bootable masters.

My plan, if I need to use the Live CD, was to have Linux in the top drawer, as usual, with the bottom empty, and boot from the CD. This was the setup when I installed Ubuntu. Thus the CD can only act on that system.

I need to know, first of all, if that will allow me to try to run fsck from the Live CD with the certainty that nothing in Ubuntu is mounted. Sounds logical, but what do I know?

Thanks.
 
  


Reply



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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 05:45 PM
solaris boot problem boot error loading interpreter(misc/krtld) Johncy_j Solaris / OpenSolaris 5 08-18-2005 01:47 AM
Dual boot SUSE/XP But SUSE wont let me boot or see boot menu Hairulfr SUSE / openSUSE 9 08-17-2005 12:57 PM
failed features: boot.shm boot.loadmodules boot.swap cccc SUSE / openSUSE 1 08-08-2005 07:23 AM
DUAL BOOT - WIN XP cant be seen/boot on boot - pls help Bluiee Linux - Newbie 1 05-25-2004 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration