Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Linux Help Please!

Posted on 2003-11-18
Medium Priority
Last Modified: 2013-12-06

I've been locked outside my linux box !

Everything was going nice and fine until i needed to reboot it... which is when I was presented with Grub's command Prompt interface.

- I dont have a boot disk
- Cd wont boot at startup (even though i set it up through bios)  (hmmm?)

how do i boot into linux redhat 9 ?!


Question by:11ods
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
  • 3
  • +4
LVL 20

Expert Comment

ID: 9769988
Did you do anything... like move the harddrives round... at the "reboot time"?

-- Glenn

Expert Comment

ID: 9770177
Can you tell exactly what you were doing before the reboot
and why you needed to reboot your machine?

Expert Comment

ID: 9770268
in the grub command prompt

type    linux single
or type linux 1

it will let you in  

then fix all the mistakes you have done

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.


Author Comment

ID: 9770303
'linux single'
'linux 1'
dont work..

i dont remember doing anything special before the reboot...
I think something froze so i rebooted, and then this happened..
no change in hardware, no change in harddrives.. nothing ..

Expert Comment

ID: 9770385
Seems Grub isn't able to find any image to boot
so it takes you to the prompt and leaves you there
Iam not very familiar/comfortable with Grub
do you remember the name you have given to your
default linux image in your grub.conf file?
If yes, try
boot imagename or
boot imagename single
at the grub prompt
I think you can edit the conf file at the prompt itself though Im not sure
If so, you can look into the conf file and try with the name
LVL 20

Expert Comment

ID: 9770400
Ok, and prior to the "freeze" you weren't mucking about with fdisk, mkfs or some similar tool?
The reason I ask is that your filesystem(s) might have gotten hosed... And those could very well do it.

We know that the MBR is OK, since you get dumped directly to the grub> prompt... this indicates that grub runs, but cannot find it's "supporting" files. grub (unlike lilo, which use fixed adressing to get them) needs be able to read the filesystem where /boot is situated, and for some reason it's failing.

How many drives do you have? Did this system dualboot?
From the grub> prompt we should be able to determine _something_ about the linux partitions... like if they are there, and perhaps also if they are "mendable"... They might just have been "hidden":-). I've not tested the following (too lazy to reboot:-), but...
the "help" command is your friend, as well as the <TAB> key.
just type
to see what commands you have, and perhaps do
parttype (hd<TAB>
to get a "completion" of available disks... and
parttype (hd0,<TAB>
for a similar list over available partitions. You don't have to actually go through with the parttype command, unless there is something wrong with them (linux partition(s) tagged as "something else"... might be because of an erroneous "hide" command).
If the partitons look OK, one could try to use find to find the main grub config file menu.lst (default is /boot/grub/menu.lst ... contrary to popular deception (grub.conf et al);-).
Start with that and tell us what you see/get.

-- Glenn
LVL 20

Expert Comment

ID: 9770406
If you can get hold of a floppy-rescue, that might help (since you cannot boot a CD rescue). http://www.toms.net/rb (tomsrtbt) is a very nice "linux on a floppy", just for situations like this.
Might make you feel less like "groping in the dark" that you might be feeling with grub:-).

-- Glenn

Author Comment

ID: 9773844
so here's what I have for you: (even some good news maybe)

Gns: prior to the "freeze" i wasnt mucking about with any program except for trying to install the official rpm's for php-mysql (which also didnt work ..*sigh*)

I have 2 drives, but only 1 in use. 1 OS: rh9.

here's what i get for 'parttype (hd0<TAB>
Partition num: 0, Filesystem type is ext2fs, Partition type 0x83
Partition num: 1, Filesystem type is ext2fs, Partition type 0x83
Partition num: 2, Filesystem type is unknown, Partition type 0x82

how does that looK?

when using the find command, say for example:
find menu.lst   (or even for the hell of it: menu.conf) i get:     Error 15: File not found
I also somehow found the startup disk that was created by linux setup !
and after some stuff runing down the screen i get the following:
Warning: unable to open initial console.
and thats where that ends...
i'm considering just reinstalling linux and problem solved.  how bad is the situation ?


Author Comment

ID: 9774615
I cant even reinstall ... cant boot from cd drive.
last time i installed was booting from a harddisk.
LVL 12

Expert Comment

ID: 9775625
"last time i installed was booting from a harddisk. " Can you repeat the same procedure as last time you install the linux? if yes, try to do the same and let the installation to upgrade your RH9 instead of install, for doing a upgrade you may get a chance to recover your RH9 without a reinstall.

info about RH9 upgrade

The installation process for Red Hat Linux 9 includes the ability to upgrade from prior versions of Red Hat Linux (version 6.2 and later which also can upgrade the same version) which are based on RPM technology.

Upgrading your system installs the modular 2.4.x kernel as well as updated versions of the packages which are currently installed on your system.

The upgrade process preserves existing configuration files by renaming them with an .rpmsave extension (for example, sendmail.cf.rpmsave). The upgrade process also creates a log of its actions in /root/upgrade.log. As software evolves, configuration file formats can change, so you should carefully compare your original configuration files to the new files before integrating your changes.

It is always a good idea to back up any data that you have on your systems. For example, if you are upgrading or creating a dual-boot system, you should back up any data you wish to keep on your hard drive(s). Mistakes do happen and can result in the loss all of your data.
Some upgraded packages may require the installation of other packages for proper operation. If you choose to customize your packages to upgrade, you may be required to resolve dependency problems. Otherwise, the upgrade procedure takes care of these dependencies, but it may need to install additional packages which are not on your system.

Depending on how you have partitioned your system, the upgrade program may prompt you to add an additional swap file. If the upgrade program does not detect a swap file that equals twice your RAM, it will ask you if you would like to add a new swap file. If your system does not have a lot of RAM (less than 32 MB), it is recommended that you add this swap file.

If the upgrade can't work, re install will be the last choice, but don't know whether you can repeat the installation procedure as you did by harddisk?

Author Comment

ID: 9775659

i dont have an OS running in order for me to put the redhat files on the harddrive...

which means,
cant reinstall, upgrade or anything until i either get into linux through grub,
or get my cd to boot somehow....
or fix whatever was wrong with the floppy startup disk (as i mentioned above)...

... at least thats how i see things right now...
LVL 12

Expert Comment

ID: 9775820
try using the small linux as Glenn suggest you can also get the other one here http://www.itm.tu-clausthal.de/~perle/hal91/ or check here http://dilbert.physast.uga.edu/~andy/minilinux.html.

and try to change the thing you wanted, or even use the small linux to mount your cd rom to see the cd rom is working or not.
LVL 20

Expert Comment

ID: 9777060
The partition list looks good (0x83 == Linux native, 0x82 == Linux swap), so then it is the /boot filesystem that is probably hosed in some way... This can have happened some time prior to the freeze/(non-)boot, since most (if not all) files under that directory are only used exclusively during boot.

How very frustrating that you cannot boot a CD... You've rechecked the BIOS settings and tried with a few different CDs I'd imagine(?)...
What type of machine is this? Does it have a floppy drive?

-- Glenn

Author Comment

ID: 9783591
what ended up happening with this is i took a cd drive off another computer, installed it in the linux box, and booted from CD that way ...   dont know why it wouldnt boot off my first cd drive..

LVL 12

Accepted Solution

paullamhkg earned 1000 total points
ID: 9784018
Well there may be some dirt in your CD ROM, try to get some CD rom cleaner to clean it and try to use it again, may be this will help.
LVL 20

Assisted Solution

Gns earned 1000 total points
ID: 9785830
Ok... And booting rescue from the working CD, you could see something wrong with /boot? Or did you simply do a reinstall?
What brand was the non-working CD? As has been actualized recently (Mdk9.2 triggering a stoopidness in a slightly old LG firmware), not all drives/firmwares are that great:-)... Or it might just be dirty, as Paul suggests

-- Glenn

Expert Comment

ID: 10046783
If I understand well and if you didn't solve the probleme :

First of all, you must enter in your box: there is few ways :
cdrom boot: your computer doesn't seem to have the ability

floppy boot:
On "http://www.debian.org/releases/stable/i386/ch-install-methods.html#s-create-floppy" you can find how to create boot disk from unix or windows workstations with different kernel to support your hardware.

windows boot:
If there is windows os on the computer you can find way to boot on "http://www.debian.org/releases/stable/i386/ch-rescue-boot.html"

if you need help to use it, ask!
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10305913
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Answered by paullamhkg and Gns
Please leave any comments here within the next four days.


EE Cleanup Volunteer

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question