Kernel boot options removed by fault, no boot options


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu Kernel boot options removed by fault, no boot options
# 1  
Old 06-12-2011
[SOLVED] Kernel boot options removed by fault, no boot options

Hello Everyone,

First of all, I highly appreciate all Linux forum members and whole Linux community. Image. I wish you the best for all of you !

I will try to be short and concise: I am using Linux Mint 10 for 2 months on 2 ws, and all went good so far (Vbox, developing, Unix scripting, etc); I am not a very beginner in UNIX, having some skills in PHP/MYSQL/APACHE/BASH/LINUX - WIN/BATCH as well (several years, let's say).

But what is happening now, Image is putting me into a trouble: yesterday I have performed some wifi kernel modules installation with Synaptic and some new kernel were added to boot menu, some of them with --recovery option, some of them new ones. Uninstalling these last wifi modules (and probably another ones), all kernel modules (including the current (and good) one were uninstalled, of course, they disappeared from the boot menu as well).

I agree that was totally my fault because I have installed wifi modules which have required kernel recompiling, but I dd not know then the full image of this disaster.

In the last open session (just before reboot), I have seen that all kernel images/module disapperared from /root folder, /vmlinuz file disappeared too; of course using GUI boot loader, I have observed only 2 Memory test options and the M$Win OS (the second OS installed).

My issue now is: I would like to repair the previous Mint 10 installation, no to reinstall because it is taking some time to reparameter all settings .. if it is possible.

CURRENT STATUS:
> I have a Linux Mint 10 burned disk (this one where I typing these lines);
> wired/wireless network on;
> all partitions are not changed
> Linux Mint boot menu has only 2 Mem test option + 1 M$Win OS boot option
> Old Linux kernel definitions is missing from boot menu as well as from:
/root folder
in the / [root] there is no any vmlinuz binaries (I don't remember the correct name for the vmlinuz ..)
> I am able to burn any CD/DVD's, download any binaries/apps from the internet and so on.
> I am online now, ready to give you all details you need about my steps performed yesterday (as much as I remember ;(( -- poor of me ...)

QUESTIONS FOR YOU:
> I would like to avoid the full reinstallation in order to keep the old and full Linux Mint 10 destop;
> I would like to repair the linux kernel, putting it in the right place (/root, /) and create again the records in boot menu, in order to boot again LM10 as it was until yesterday evening.
> Hoping that this problem could have a solution, would you be kind to advise me a good procedure to peform (to install) as this kernel changes to do not happen again in the future.


Hoping that someone of you has encountered this before, I am here to follow your instructions. If the name of this topic could be redefined (in order to reflect this issue better), please do so or suggest me to do, I have not used so much the discussion forums until now, but I will do from now on Image ...

All the best for you.

Cristian

Last edited by cdt; 09-09-2011 at 01:33 AM..
# 2  
Old 06-12-2011
Interestingly, creating a VM to test the recovery took longer than the recovery itself Smilie

Here's the steps:
  1. Boot from a Mint Live-CD or DVD
  2. Open a terminal, and become root (saves the hassle of always sudo'ing) by entering sudo su -
  3. Mount the root partition of your Mint install, eg mount /dev/sda1 /mnt
  4. Mount some important special filesystems: for fs in proc sys dev dev/pts; do mount --bind /$fs /mnt/$fs; done
  5. Switch into the original system: chroot /mnt /bin/bash
  6. Install the generic kernel: apt-get install linux-generic linux-image-generic
  7. Exit the chroot environment, unmount /mnt and anything below, and restart
  8. After you're back in your system, best reinstall the kernel, just in case.

Best of luck Smilie
This User Gave Thanks to pludi For This Post:
# 3  
Old 06-19-2011
Hello Pludi,

Thanks for you answer. After many tries, I got the messages that states that the kernel is already installed, as well as the kernel image.

So far, I saw that /boot/vmlinuz and /boot/initrd are ok.

After another searches I found that the real problem is that GRUB (2) is vanished the config files, at least the LM10 records.
It has only the /memtest options and /windows boot record.

Trying again to many forums, I did not managed even with Super Grub Disk to deal, because, it seems that on the LM10 installin, I choosen (poorly) to have a ext2 fs, than ext4.
Trying another steps, I found on the SourceForge the bootscript for debugging such situations, and here are the output.

I hope to be clear for the experts to see what is my issue and the solution: in fact, I have no records in Grub/2 menu to point to /dev/sda7 LM10 installation.

Please pay some attention and give me some advice for this.

Thanks all for help.

Boot script attached. Inserting inline, on this reply, is loosing the formatting.
# 4  
Old 09-09-2011
final issue description and thread closure

Hello all,

so, after more time spent to solve, I got (I suppose) the issue:
- during the installation/uninstallation of some Wifi components, a new kernel was installed; after the uninstallation, I was not able to update Grub2 to repoint to the old one.
- at the first boot the access was not possible.

All solution got from community indicated to use /usb or /cd boot, then to mount --bind the important dev's then try to update or fix Grub2. Using Software installer or apt-get I was not able to install the good kernel so I given up.

Anyway, thank a lot for attention.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Linux

Unload kernel module at boot time (Debian Wheezy 7.2, 3.2.0-4-686-pae kernel)

Hi everyone, I am trying to prevent the ehci_hcd kernel module to load at boot time. Here's what I've tried so far: 1) Add the following line to /etc/modprobe.d/blacklist.conf (as suggested here): 2) Blacklisted the module by adding the following string to 3) Tried to blacklist the module... (0 Replies)
Discussion started by: gacanepa
0 Replies

2. Slackware

/boot: how do I change the current kernel?

Slackware 14.0 Hi: I once changed the smp kernel running in my system by another one in /boot. What I did was to relink /boot/System.map, /boot/vmlinuz and /boot/config. But I don't remember if I did something else. Would that alone be OK. (4 Replies)
Discussion started by: stf92
4 Replies

3. UNIX for Dummies Questions & Answers

New kernel won't boot

I compiled new kernel in linux 10.04 called linux-2.6.26.8-xenomai, it runs alongside the other kernel, but when I want to boot it I get an error message saying: Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/sda5 does not exist. After making the modules and headers I made the... (4 Replies)
Discussion started by: mdop
4 Replies

4. Boot Loaders

Reboot and Select Proper Boot device or insert Boot media in select Boot device and press a key

Hello, I have kubuntu on my laptop and now I decided to switch to Windows 7. I made the bios settings properly (first choice is boot from cd\vd) but I see the error " reboot and select proper Boot device or insert Boot media in select Boot device and press a key " I have tried CD and... (0 Replies)
Discussion started by: rpf
0 Replies

5. Solaris

Loading Kernel module at boot

Is there any link/tutorial on loading Solaris kernel modules at boot time?? (0 Replies)
Discussion started by: unisolin
0 Replies

6. Solaris

Boot options - DVD drive read error

I was wondering if there was a way to boot from openboot from the dvd drive. I was thinking about imaging the dvd to a blank drive and going about it that way. I just need to do a flash install. (5 Replies)
Discussion started by: adelsin
5 Replies

7. HP-UX

Boot Options on HP PA-RISC and Itanium Servers

I've never really explored the options available in the boot firmware on our servers. Outside of needing to change boot device paths a few times for various reasons, I'm wondering what the implications are of turning off FASTBOOT. According to the man page for 'setboot', it seems that when... (1 Reply)
Discussion started by: deckard
1 Replies

8. Shell Programming and Scripting

menu.lst, boot options?

Hi all, I would like to have some details on menu.lst!! the reason is ,if i am trying to add my own boot option where do i need to add it? is it in menu.lst only or elsewere(am referring to unix os) because i tried adding a unique boot option and it was not reflected when the system booted?... (8 Replies)
Discussion started by: wrapster
8 Replies
Login or Register to Ask a Question