Jump to content

Swapped ide for disks, dualboot linux hangs


So_it_goes
 Share

Recommended Posts

Hi

 

Using 2007

 

Had to swap ide connection for my harddisks.

 

Restarted

Got to the dual boot window, where I can selct

- linux

- xxxx

- yyyy

- windows

 

Windows works ok.

But when I select linux , everything hangs in that window.

 

Tried the third option , and what I could see I had problems with mount/unmont.

 

It seems that I need to tell some boot file/program that I've moved the harddisks.

 

Any ideas/suggestions ?

 

//

Link to comment
Share on other sites

You'll have to boot a live CD (or the rescue CD = Mandriva first install CD), then login to shell, mount your root partition under the "in-memory" /mnt location, edit /mnt/etc/fstab (change all "hda" with "hdb", and "hdb" with "hda"), and finally "chroot /mnt; /sbin/lilo".

 

I know this is very summarized; I don't know how well you do in Linux. Don't hesitate to ask for advice for any of the above instructions.

 

Yves.

Link to comment
Share on other sites

Thanks for the reply.

 

I'm used to the basic vi commands and unix CLI's( solaris ).

 

This is my first linux, though

 

edited:

 

/mnt/sbin/lilo ?

 

In the mounted ram-linux I'm running,

/sbin/ is a soft link to a tmp directory.

 

//

Edited by So_it_goes
Link to comment
Share on other sites

I think you need to tell people which bootloader you are using... for sure

 

if it is grub you can just press e and edit the lines (2 of them) where it says hd(0,x) replace the first 0 by 1 (0=hda, 1=hdb)

same with any other info in these same line where hda should become hdb

then press b to boot

if this work you can then edit

/boot/grub/menu.lst LST not 1st

Edited by emmanuel_uk
Link to comment
Share on other sites

Hi again

 

It seems like you're way ahead of me.

 

You have to help me more,

because I don't understand

"what does it read first line of the boot?"

When I boot from the Rescue-System CD ??

 

 

This is how I do it right now:

I boot from a CD , where I get a GUI.

There I chooseRescue->System mode where I manually mount

the harddisks in the Secondary ide position to /mnt.

Then I can chose if I want to go to a console so that I can get a cli inteface

to access the harddisk info.

 

This is the first place wher I have a cli-prompt.

 

And this is the only way I've found to edit files on my linux partitions.

 

//

Link to comment
Share on other sites

Thanks for the help everyone, if I'll keep getting help like this I'm sure I'm

up and running soon.

This is by the way written on my 600Mhz 512 MB Dell , with mandriva.

 

The other, non working,machin has more memory and speed.

 

The problem is I don't remeber if I choose lilo or grub( default or not default ).

 

//

Link to comment
Share on other sites

Try to pay a bit more care to what has been suggested to you. Nobody told you to run "/mnt/sbin/lilo" - simply because it makes no sense at all.

You must

1. Use the installation CD, or a liveCD and chroot to the installed system.

2. Run from there vi (or nano, or mc...) and edit /etc/fstab, changing alll references to /dev/hda to /dev/hdb and vice versa

3. Editing /boot/grub/menu.lst OR /etc/lilo.cong in an analogouw way. If one of them does not exist, then you are using the other bootloader.

4. Reinstall bootloader: /sbin/lilo for LILO, or grub --install /dev/hda for GRUB.

Link to comment
Share on other sites

because I don't understand

"what does it read first line of the boot?"

When I boot from the Rescue-System CD ??

ok, sorry I confused you

You have been offered 2 solutions

One with live / rescue cd. The most comprehensive solution

 

Mine, not well explained, + letting you find out and learn a bit more.

Have you tinkered and pressed e by now?

So when you boot normally from the HD what does it say at the top?

if you select linux then press e can you edit the boot command line?

if not then you do not have grub and you can forget my suggestion (well most of it) and go with other posters

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...