LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2003, 04:30 PM   #16
Dr. Ephemeron
Member
 
Registered: Oct 2003
Distribution: Mandrake 10.1 & Fedora Core 4
Posts: 84

Rep: Reputation: 15

Quote:
Originally posted by irvken

I thought I had, in /boot a file appeared - initrd-2.4.23.img, seemed like a likely candidate.

I went to the root dir / and removed the sym ln initrd.img and created a new one to this file

.. and then I rebooted

lots of modprobe:Can't open dependencies file /lib/modules 2.4.18-686... etc (No such file or directory)

and then a kernel panic

I really shouldn't be left in charge of a computer

I assume I need something to boot from? Would a knoppix disk do?

and then what do I do?
My mkinitrd in Mandrake 9.2 doesn't even have a -o option... I think maybe you need more specific instructions for Debian possibly?
 
Old 12-22-2003, 04:31 PM   #17
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
lilo
 
Old 12-22-2003, 04:32 PM   #18
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
I could if I have a cd-drive, another 20 minutes, hang on
 
Old 12-22-2003, 04:40 PM   #19
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Firstly rename lilo to lilo.old using cp. Then edit lilo.old to point at the new initrd and vmlinuz as an extra section with a label called Linux and amend the label for the old one as Linux_old and save as lilo. This gives the option to use the old kernel (like now). Do lilo to set it and reboot.

Last edited by TigerOC; 12-22-2003 at 04:53 PM.
 
Old 12-22-2003, 05:08 PM   #20
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
that's beyond me, I can't even mount the drive from knoppix
 
Old 12-22-2003, 05:09 PM   #21
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
as afras I'm aware there is no file text file claeed lilo only the command /sbin/lilo, anyway it's academic as I can't even get to the drive
 
Old 12-22-2003, 05:10 PM   #22
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
sorry I'm so depressed my spelling has gone to pieces
 
Old 12-22-2003, 05:14 PM   #23
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
if you know the drive address from a consol do mount -t ext2 /dev/hdxx /mnt where xx is the drive.
Edit: Its been quite a long day so I'm signing off - if you need some help (you sound quite desperate and sounds like a business operation) e-mail me and perhaps I can sort you out tomorrow perhaps even by phone.
Rob

Last edited by TigerOC; 12-22-2003 at 05:23 PM.
 
Old 12-22-2003, 05:25 PM   #24
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
no, it's not having it

mount -t ext2 /dev/hda2 /mnt
ide-scsi: hda : unsupported command in request queue (0)
end requset: I/O error, dev 03:02 (hda), sector 2
EXT2-fs: unable to read superblock
mount: wrong fs type etc..

I had to type all that in by hand. I had a few problems with this drive a couple of weeks ago when I used Norton to copy between an old drive and this, had to run a fsck several times before it would work, I bet this is a hangover from that.
 
Old 12-23-2003, 03:05 AM   #25
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
ok then, I managed to recover and back up my files last night by slaving the debian drive to a RedHat machine I had, thank goodness for Red Hat hardware browser (at heart I'm a GUI man ).

Going back to this -
Quote:
Firstly rename lilo to lilo.old using cp. Then edit lilo.old to point at the new initrd and vmlinuz as an extra section with a label called Linux and amend the label for the old one as Linux_old and save as lilo. This gives the option to use the old kernel (like now). Do lilo to set it and reboot.
by lilo you mean lilo.conf? I think I've already done something like this.
 
Old 12-23-2003, 03:41 AM   #26
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
right then, I'm thoroughly confused

here's my lilo.conf


# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
initrd=/initrd.img
label=Linux
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional


here's where my relevant root files point


lrwxrwxrwx 1 root root 23 Dec 22 21:06 initrd.img -> /boot/initrd-2.4.23.img
lrwxrwxrwx 1 root root 23 May 13 2003 vmlinuz -> boot/vmlinuz-2.4.18-686
lrwxrwxrwx 1 root root 26 May 11 2003 vmlinuz.old -> boot/vmlinuz-2.2.20-idepci


hmm that doesn't look right.

Heres the contents of boot



-rw-r--r-- 1 root root 512 May 11 2003 boot.0300
-rw-r--r-- 1 root root 512 Nov 24 23:16 boot.0340
lrwxrwxrwx 1 root root 11 May 11 2003 boot.b -> boot-menu.b
-rw-r--r-- 1 root root 7988 Apr 13 2002 boot-bmp.b
-rw-r--r-- 1 root root 6204 Apr 13 2002 boot-compat.b
-rw-r--r-- 1 root root 7964 Apr 13 2002 boot-menu.b
-rw-r--r-- 1 root root 6204 Apr 13 2002 boot-text.b
-rw-r--r-- 1 root root 728 Apr 13 2002 chain.b
-rw-r--r-- 1 root root 3888 May 11 2003 config-2.2.20-idepci
-rw-r--r-- 1 root root 37064 Apr 14 2002 config-2.4.18-686
-rw-r--r-- 1 root root 806912 Dec 22 20:02 initrd-2.4.23.img
-rw------- 1 root root 27136 Dec 22 21:07 map
-rw------- 1 root root 46080 Nov 24 23:16 map.alternate
-rw-r--r-- 1 root root 656 Apr 13 2002 os2_d.b
lrwxrwxrwx 1 root root 23 Dec 22 14:37 System.map -> /boot/System.map-2.4.23
-rw-r--r-- 1 root root 224124 May 11 2003 System.map-2.2.20-idepci-rw-r--r-- 1 root root 408718 Apr 14 2002 System.map-2.4.18-686
-rw-r--r-- 1 root root 574787 Dec 22 14:31 System.map-2.4.23
lrwxrwxrwx 1 root root 20 Dec 22 14:36 vmlinuz -> /boot/vmlinuz-2.4.23
-rw-r--r-- 1 root root 665509 May 11 2003 vmlinuz-2.2.20-idepci
-rw-r--r-- 1 root root 632393 Apr 14 2002 vmlinuz-2.4.18-686
-rw-r--r-- 1 root root 1117787 Dec 22 14:30 vmlinuz-2.4.23



lots of rubbish in there I don't know where from

and this is the contents of /usr/src

drwxr-xr-x 14 root root 4096 Oct 8 23:42 kernel-source-2.4.18
-rw-r--r-- 1 root root 23841187 Aug 10 00:25 kernel-source-2.4.18.tar.bz2
lrwxrwxrwx 1 root dip 21 Dec 22 11:20 linux -> /usr/src/linux-2.4.23
drwxr-xr-x 15 573 573 4096 Dec 22 13:40 linux-2.4.23
-rw------- 1 root dip 29832609 Dec 22 10:57 linux-2.4.23.tar.bz2
drwxr-xr-x 7 root root 4096 May 11 2003 rpm
-rw------- 1 root dip 19118 Oct 6 17:16 usbdnet-2.4.18-patch.gz


I think that's all the directories and files that got changed in the upgrade process, now can anyone tell me what I've done wrong, and how I rectify it.
 
Old 12-23-2003, 04:42 AM   #27
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Quote:
here's my lilo.conf


# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
initrd=/initrd.img
label=Linux
read-only
# restricted
# alias=1

image=/vmlinuz.old
label=LinuxOLD
read-only
optional
The one thing I notice is that config-2.4.23 is missing in /boot and I would suggest copying it there.
I suggest changing this to (lilo.conf is in /etc);

# Boot up Linux by default.
#
#default=Linux
prompt
linear
timeout=50
image=/boot/vmlinuz-2.4.23
label=Linux
root=/dev/hda2
initrd=/boot/initrd.img-2.4.23
read-only
# restricted
# alias=1

image=/boot/vmlinuz-2.4.18-686
label=LinuxOLD
root=/dev/hda2
read-only
optional

Last edited by TigerOC; 12-23-2003 at 04:50 AM.
 
Old 12-23-2003, 11:18 AM   #28
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
don't I have to run /sbin/lilo after editing /etc/lilo.conf

I have a vague understanding/memory of having to use chroot to do this as it's a mounted drive.
 
Old 12-23-2003, 11:31 AM   #29
irvken
Member
 
Registered: Dec 2003
Location: uk
Distribution: Ubuntu/Debian/Android
Posts: 218

Original Poster
Rep: Reputation: 30
where should config-2.4.23 be, I don't seem to be able to find it?
 
Old 12-23-2003, 12:08 PM   #30
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Yes you have to run lilo after editing lilo.conf or if you have kde -> startup -> System -> Debian -> Admin -> Lilo.
If you generated a new kernel then you had to save config-2.4.23 after doing menuconfig or xconfig in order for the compile process to create your new kernel.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't mkinitrd for Kernel 2.6.11.6 (when compiling) LordOfer Linux - Newbie 3 04-02-2005 12:20 PM
Newbie Fedora kernel upgrade help kevinb583 Linux - Newbie 2 10-12-2004 01:43 AM
kernel 2.6.6 mkinitrd problem ziox Linux - Software 0 07-13-2004 08:48 PM
mkinitrd doesnt exist in slackware? Newbie kernel compile question! nmoog Slackware 3 01-08-2004 07:22 PM
Newbie Kernel upgrade ? & up2date rpm hell lsgko Linux - Newbie 2 08-06-2003 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration