You are not logged in.

#1 2009-10-03 09:39:50

Rimas
Member
Registered: 2006-12-10
Posts: 19

[SOLVED] System broken after HD was mounted on another arch machine

Hi all!
I think I've broken my system sad
I had dual boot.
Recently I took my HD to copy somethind from another computer (also Arch-powered). Connected it instead of CD drive, booted, mounted, everything went fine.
But when I tried to boot from it at home, there was not usual grub menu, just windows started to boot instead sad

Here is my fdisk -l output:

 Device   Boot          Id   System
/dev/sda1  *    . . .   b     W95 FAT32
/dev/sda2       . . .   83    Linux
/dev/sda3       . . .   83    Linux

I've tried few options from Live CD
->More options:
     Attempt existing Linux detection.
Result:

Booting 'Scan for /boot/grub/menu.lst'

find --set-root --ignore-floppies /boot/grub/menu.lst

Error 15: File not found

Press any key to continue...

Boot Existing Linux Install:

root (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26.img

result:

Booting '[EDIT ME] Boot Existing Linux Install'

root (ht0,0)
 Filesystem type is fat, partition type 0xb
kernel /vmlinuz26 root=/dev/sda3 ro

Error 15: File not found

Press any key to continue...

Also I tried to reinstall grub following wiki. grub-install warned that it can take long time, but how long? minute or five, longer?
Seems to me it halts on this stage, though I can stop it with ^C

Am I doing something wrong?

Thanks in advance for your answers.

Last edited by Rimas (2009-10-03 11:23:39)

Offline

#2 2009-10-03 10:07:53

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: [SOLVED] System broken after HD was mounted on another arch machine

I'm not sure why your grub would disappear from connecting to another machie, I keep on changing HDs with no issue. Boot the arch cd, mount the arch partition and chroot in it then:

grub-install /dev/sda
Rimas wrote:

Also I tried to reinstall grub following wiki. grub-install warned that it can take long time, but how long? minute or five, longer?

Just a second or two. hmm

Last edited by sHyLoCk (2009-10-03 10:09:29)


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#3 2009-10-03 10:40:15

Rimas
Member
Registered: 2006-12-10
Posts: 19

Re: [SOLVED] System broken after HD was mounted on another arch machine

Thanks, sHyLoCk, for your answer.
Tried once more to reinstall grub and result is the same sad
Just blinking cursor after grub-install /dev/sda

Last edited by Rimas (2009-10-03 10:40:42)

Offline

#4 2009-10-03 11:22:20

Rimas
Member
Registered: 2006-12-10
Posts: 19

Re: [SOLVED] System broken after HD was mounted on another arch machine

Finally! big_smile
It installed grub, but it takes extremely long to accomplish that.
But after reboot again no grub menu ;(
So, the problem was not in the grub. I have also /dev/sdb - my "storage" drive. ntfs and no OS on it.
Problem was in BIOS.
My little son switched on the computer without system drive, so bios swaps drives priority and my "storage" appeared at the first position o_O
So, when system was booting, it at first was asking my "storage" for OS, and after refusal was askin second drive (/dev/sda) and it proposed windows each time, so in such way grub was passed around.

Drives priority in BIOS corrected and everything is working again smile

And sorry for such topic. I still have rather smal experience hmm

Offline

Board footer

Powered by FluxBB