You are not logged in.

#1 2008-07-18 15:35:57

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Changed hard drive now system will not boot [Solved]

Hi,

Right got myself into a real mess, transferred data from old drive to new ... set up fstab ... grub is working...

But.... getting init kernel panic

Now I figure I need to reinstall kernel [via chroot! in wiki!]

first try did not work via ubuntu live cd so am burning arch disc now

I noticed that /dev is empty wondered is that would cause a problem

reallly do not want to install Ubuntu as I need my box hehe

MrG

Last edited by Mr Green (2008-07-22 15:21:45)


Mr Green

Offline

#2 2008-07-18 17:15:11

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Changed hard drive now system will not boot [Solved]

*boing

stuck my old drive in, so back in Arch... but I would like to run new drive at some point

MrG

Last edited by Mr Green (2008-07-18 17:15:59)


Mr Green

Offline

#3 2008-07-18 18:35:22

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: Changed hard drive now system will not boot [Solved]

While most things in /dev are created on the fly you do need a console node and a null node to boot the system.  If you boot a cd, mount the drive (eg /mnt/disk) and then

mknod -m 600 /mnt/disk/dev/console c 5 1
mknod -m 666 /mnt/disk/dev/null c 1 3

That might fix the problem.

The other times I've had kernel panics have been when the root=/dev/sda? bit of the kernel line in grub was pointing to the wrong place (kernel was looking at my /home partition and wondering why it couldn't find init) so thats another thing I would check.

Offline

#4 2008-07-18 19:09:07

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Changed hard drive now system will not boot [Solved]

thanks for that :-) I knew /dev /proc etc... as you do not need to copy them over so yes it may be the problem.... I changed grub I knew I had to change root [although I still forgot when I first booted ;-( ]

I have burned an Arch install disc now, was using Ubuntu livecd to chroot in but it takes forever to load lol... been a while since I transferred a drive

really do not want to reinstall

MrG


Mr Green

Offline

#5 2008-07-19 04:56:24

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Changed hard drive now system will not boot [Solved]

Ok added console and null but still get kernel panic

wondering if I should have copied over /proc as well? atm its empty

I knew I might forget something lol

MrG


Mr Green

Offline

#6 2008-07-19 13:46:55

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Changed hard drive now system will not boot [Solved]

I am assuming that /proc /sys /tmp of course need to be empty...would be nice to get new drive working

MrG


Mr Green

Offline

#7 2008-07-22 15:21:32

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: Changed hard drive now system will not boot [Solved]

ok cleared /proc and /sys ... booted using my old /boot on old drive and got fstab set up sorted gnome so getting there :-)


Mr Green

Offline

Board footer

Powered by FluxBB