LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-04-2010, 02:23 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Deleted /boot: Restore from CD or net possible without re-install?


I installed openSuSE 11.3 from the 32 bit live KDE disk aside the existing openSuSE 11.3_64 I had already running. I did not want /boot formatted and hoped that the new (kernel) files would just be added. That install crashed ignominiously and left my without a functioning /boot (exchanging GRUB's hd(0) for hd(1) in the same stroke, but that i can live with).

I then had a second go at it, formatting /boot but thereby of course loosing my previous /boot of the openSuSE 11.3_64. The entire rest of that installation is still sitting unharmed on my disk. Now to the question:

What files (and where from) should I add to the new /boot with the 32-bit files to get my 64-bit installation back, or is it well and truly lost? Or can't that be done at all? I'm aware that I would have to edit "menu.lst" but that is not really a problem...

Last edited by JZL240I-U; 11-04-2010 at 02:42 AM.
 
Old 11-04-2010, 08:17 AM   #2
jhladysz
LQ Newbie
 
Registered: Oct 2006
Distribution: RHEL and clones
Posts: 6

Rep: Reputation: 0
i'm afraid you need to reinstall

The files in /boot were placed there in the course of installation.
You can work around the whole installation taking your distro cd #1:
mimmicking the whole installation process, but choosing no packages to install and choosing 'do not format' filesystem (preserving old content). This is one of the possiblities, of course.
Good Luck, Jerzy
 
Old 11-04-2010, 08:30 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
I'm aware of the way the system puts the files there, thank you. Let me phrase my question differently:

Could I copy kernel-2.36.y.x.z-nml and the corresponding initrd from somewhere into my /boot and then just add a stanza in menu.lst and everything is good and proper? Or is the kernel locked to its system via some arcane procedures during the install, which can't be reproduced with acceptable effort by hand (and what would these be)?

I found only .rpm files at the SuSE site, anybody know of an extracted(?) kernel and initrd?
 
Old 11-04-2010, 08:32 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If your 32-bit OS installed grub I think that only the kernel and the initrd (if there is one, don't know much about Suse) are needed to boot your 64-bit OS. And of course some editing of the menu.lst, as you already stated.

Edit: For extractin RPMs you may ha a look here.

Last edited by TobiSGD; 11-04-2010 at 08:36 AM.
 
Old 11-04-2010, 08:37 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You should be able to boot a 64-bit install CD and chroot into your 64-bit system (need to be same arch I believe). Then simply (re-)install the rpms for grub and the kernel. Won't find other systems and add them to the config file - that's actually done by the (distro) installer, not the grub installer. You'll have to do that by hand.
 
Old 11-04-2010, 08:38 AM   #6
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Rep: Reputation: 39
There's more to /boot than just a kernel and initrd. During the install process, or kernel upgrade process, the System-map and config files are also generated. I'm not sure that it'll boot without them. Below is the contents of my Suse 11.3, 64B /boot dir. Also the kernel install is converted to vmlinuz-xxxxx. If you do manange to boot it, you should do a kernel upgrade and those files will be created.

Don't use a common /boot directory, let each distro make it's own. I'd be happy to email you the proper files. Send a PM.

Code:
> ls /boot
backup_mbr                   initrd                               symtypes-2.6.34.7-0.5-desktop.gz  vmlinux-2.6.34.7-0.5-desktop.gz
boot                         initrd-2.6.34.7-0.4-desktop          symvers-2.6.34.7-0.4-desktop.gz   vmlinuz
boot.readme                  initrd-2.6.34.7-0.5-desktop          symvers-2.6.34.7-0.5-desktop.gz   vmlinuz-2.6.34.7-0.4-desktop
config-2.6.34.7-0.4-desktop  memtest.bin                          System.map-2.6.34.7-0.4-desktop   vmlinuz-2.6.34.7-0.5-desktop
config-2.6.34.7-0.5-desktop  message                              System.map-2.6.34.7-0.5-desktop
grub                         symsets-2.6.34.7-0.5-desktop.tar.gz  vmlinux-2.6.34.7-0.4-desktop.gz

Last edited by udaman; 11-04-2010 at 08:39 AM.
 
Old 11-04-2010, 09:07 AM   #7
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
...Edit: For extractin RPMs you may ha a look here.
Great. Thanks for that link, TobiSGD .

I just hope the kernel rpm contains the initrd as well...
 
Old 11-04-2010, 09:10 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
You should be able to boot a 64-bit install CD and chroot into your 64-bit system (need to be same arch I believe). Then simply (re-)install the rpms for grub and the kernel. ... You'll have to do that by hand.
Hmm. I used the 64-bit live KDE CD, hope I can find those there. Grub is there, I did a 32-bit install, I just need the kernel and initrd (I think). I'm not really anymore afraid of menu.lst .
 
Old 11-04-2010, 09:16 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by udaman View Post
...the System-map and config files are also generated. I'm not sure that it'll boot without them.
That's what Im afraid of...

Quote:
Originally Posted by udaman View Post
Below is the contents of my Suse 11.3, 64B /boot dir. Also the kernel install is converted to vmlinuz-xxxxx. If you do manange to boot it, you should do a kernel upgrade and those files will be created.
vmlinuz is just a symbolic link AFAIR, I can create one myself. The others -- well I'll find out.

Quote:
Originally Posted by udaman View Post
Don't use a common /boot directory, let each distro make it's own. I'd be happy to email you the proper files. Send a PM.
I used a /boot partition in the erroneous assumption that it would make it easier to have different kernels and distros at hand in one place booted by just one instance of GRUB. I'll send a PM next, thanks for your kind offer .

<edit> Your PM is disabled, I'll send a mail instead. </edit>

Last edited by JZL240I-U; 11-04-2010 at 09:24 AM.
 
Old 11-04-2010, 09:31 AM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,125

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
System.map and the config are irrelevant for boot - the rpm should re-install them anyway.
 
Old 11-04-2010, 10:38 AM   #11
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Rep: Reputation: 39
Quote:
Originally Posted by syg00 View Post
System.map and the config are irrelevant for boot - the rpm should re-install them anyway.

Thanks for that info, I'll file it in my memory.

@JZL240I-U

I've mailed you the vmlinuz. With instructions on how to make an initrd, you will need the kernel-source from suse. But syg00 recommendation of booting from the CD and installing from there, should work.

Good luck.
 
Old 11-05-2010, 02:29 AM   #12
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Good morning everybody .

I had only a little time to experiment yesterday in the evening. Here is what I did:

I booted the 11.3_64 SuSE from its live CD and found a kernel in /boot. initrd was in /boot/grub/x86_64/loader with a size of 18 MB which is about double the size of its 32-bit counterpart (9.3 MB). I then created a stanza in menu.lst and booted.

GRUB showed its new menu as expected. Upon selecting the new entry boot commenced with some messages that are usually created during boot from CD (including something about "KIWI" now trying to boot from removable medium) while there was no CD in the drive. Boot then stopped.

Not truly and really a surprise. Ah, well.

I found your files in my mail, thanks again udaman. If it is not asking too much, could you please send your initrd as well? I'll try the other suggestions over the weekend too, but I think that is the smoothest way to proceed.

@syg00 I'll have a look at the rpm of course. I'll also look at the possibility to re-install from the CD but I have my misgivings there: this is the live CD, not SuSE's 4.7 GB DVD install medium, but we'll see. Creating a new initrd ... well, I'm not too keen to do that. I live in the country and have only mobile internet, downloading the source can be a long process and in the meantime I wait unproductively. It would probably be faster to re-install (but I'd learn less ). On the other hand the weather forecast advised rain and wind for saturday ... hmm, I'll let you know .

Last edited by JZL240I-U; 11-05-2010 at 02:31 AM.
 
Old 11-05-2010, 07:42 AM   #13
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Rep: Reputation: 39
Quote:
Originally Posted by JZL240I-U View Post
Good morning everybody .
If it is not asking too much, could you please send your initrd as well? I'll try the other suggestions over the weekend too, but I think that is the smoothest way to proceed.
I'll mail it right away, but it's built for my machine, with my module needs, so I'm not sure it'll work. Let us know if you have success.
 
Old 11-05-2010, 08:10 AM   #14
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Thank you for a speedy delivery udaman . I think it is reasonable to assume that it will at least work with your kernel (which I already copied over to my system). From then on no more than an active line to the SuSE repositories is required, I'll install the newest desktop kernel from there and that would be it.

I'll report on Monday latest. Thanks again and have a nice weekend.
 
Old 11-05-2010, 08:55 AM   #15
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 189

Rep: Reputation: 39
This world of ours has gotten a great deal smaller. I read your good morning message while sipping my morning coffee, and you're near the end of your work day, and about to begin your weekend. Truly amazing times we live in.

Cheers!
 
  


Reply



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
I've deleted GRUB and can't reinstall it ceruleance Linux - Software 14 02-12-2009 07:39 AM
deleted /boot partition Need to reinstall kernel zoidburg016 Debian 11 04-22-2007 01:50 AM
Restore boot loader after Windows reinstall Taca SUSE / openSUSE 1 07-04-2006 09:48 PM
restore or reinstall? blizunt7 Fedora 3 09-27-2005 09:10 AM
reinstalling windows deleted my grub master boot file; how do I restore it? sohmc Linux - General 3 01-12-2005 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:28 PM.

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
Open Source Consulting | Domain Registration