Can’t boot 2.6.32-3 after running 2.6.32-5 for a while

OK, I’m sure it must be something simple, but I can’t figure out what.

I am running the “testing” release (Squeeze). I have two stock Debian kernels installed on my system: linux-image-2.6.32-3-686 and linux-image-2.6.32-5-686. My computer has a single hard disk, a traditional ATA IDE drive, also known as “PATA”. One important difference between these two kernels is that the -3 kernel uses the old IDE drivers, which results in my hard disk device name being /dev/hda. The -5 kernel uses the newer libata driver, which results in my hard disk device name being /dev/sda. In other words, the newer kernel uses a SCSI device naming convention instead of the traditional IDE device naming convention.

When I first installed the 2.6.32-5 kernel, it was from unstable, but this kernel has since migrated to testing. I didn’t like all the UUID changes that the dependencies of this kernel package wanted to make and instead changed all my system files (/etc/fstab, /etc/initramfs-tools/conf.d/resume, and /etc/lilo.conf) to use the new SCSI device naming conventions. After some initial issues with the nouveau driver, I have been running the -5 kernel successfully for some time.

Recently, however, for the purpose of testing some software, I decided I wanted to boot my old kernel (the -3 kernel). I knew that I would have to make some changes to the system files first, however. I decided to make use of udev aliases in these system files. For example, in /etc/fstab, instead of something like

/dev/sda1

I used something like

/dev/disk/by-uuid/04db5929-51e6-424a-ac5b-a592b96b9d04

After making changes of this nature to /etc/lilo.conf, /etc/fstab, and /etc/initramfs-tools/conf.d/resume, I rebuilt the initial RAM file systems for both kernels with “update-initramfs -uk all” while running the -5 kernel. Everything appeared to work fine. I then shutdown and rebooted my current kernel (the -5 kernel). It booted just fine. I then tried to boot my old kernel (the -3 kernel). It failed. The kernel and initial RAM file system were loaded just fine by the boot loader, but the -3 kernel couldn’t make the switch between the initial RAM file system and the permanent root file system. I got a few “device not found” error messages and it left me in an ash shell with “(initramfs)” as the boot prompt.

What did I do wrong? Is there a system file that I missed? Is this a missed dependency in the dependency-based boot system? I can still boot the -5 kernel just fine, but I can’t get the -3 kernel to boot. I tried searching the internet with the search words

Debian 2.6.32-3 2.6.32-5 “(initramfs)” “won’t boot”

but none of the hits looked promising to me.

Any ideas? My hunch is that the udev aliases might not yet exist at the time they are being referenced. But that’s just a wild guess at this point. The thing is though, it works fine for the -5 kernel.

Simple dual boot – grub issue

Hello list,

I have had a laptop wearing Linux solely over the last few years and today I decided I’d install a Windows partition on it, with aim to dual boot. After preparing an NTFS partition by using the gparted live CD, I installed Windows 7 on the newly created partition. Thus, so far I have the primary partitions /dev/sda1, an ext3 partition holding my Squeeze installation, and /dev/sda2, holding my Windows installation. There’s also the /dev/sda3 “extended” partition and the /dev/sda5 “swap” partition. Here’s a gparted screenshot taken from within my debian installation to prove my claims: http://img199.imageshack.us/img199/1819/mypartitions.jpg

When the installation was finished, I would only boot into Windows 7. Somewhat accustomed to this loss of the Grub boot loader, I booted from my Squeeze installation CD, entered Rescue Mode and reinstalled GRUB in the MBR of my only hard drive (that corresponds to the /dev/sda1 partition). However, even though I reclaimed Grub, Grub would not detect my Windows partition on bootup, and give me the options of boot into debian. I tried reinstalling GRUB on other partitions, but Windows was (and still is) unbootable on startup.

I had a look at my grub.cfg and didn’t see a “menuentry” corresponding to the windows partition, even after running update-grub. What are the steps that I need to follow in order to dual boot my system? The only OS I have currently access to through Grub is Debian (with the option of two kernels, but that’s not really relevant).

Thanks.

grb2 can’t boot my ext4 partition

i’ve squeeze and lenny installed and squeeze as a production system now. Recently installed grub2 (1.98) on squeeze on the MBR of hd0. Evereting goes well but i can’t boot lenny. The lenny file system partitions are for /boot ext3 and all others ext4. When i try to boot lenny i have this error message: exit_fill_super:extents feature note enabled this filesystem, use tunefs So can’t mount /dev on /root/dev, etc…..

grub.cfg: …/… menuentry “Lenny, kernel 2.6.28_mm01 (on /dev/sdc6)” { insmod ext2 set root=’(hd2,4)’ search –no-floppy –fs-uuid –set f26b56c1-4550-4815-b7bf-e5f114c6f9e4 linux /vmlinuz-2.6.28 root=/dev/sdc6 rootfstype=ext4 ro quiet vga=788 initrd /initrd.img-2.6.28 …./…

this kernel is a self-compiled with of course ext4 enabled on it and had never problems to boot before i installed grub2.

Seems ext4 not supported by grub2 ?

any help would be very appreciated. mess-mate

Symlinks (was Re: Triple boot with MS XP)

On 06/16/2010 10:03 PM, ABSDoug wrote:

(That’s the way for a newbie to engender cooperation.)

(Symbolic links are just about the single coolest feature of Unix-style file systems, and are just about everywhere in /etc, /usr, /var, …)

http://en.wikipedia.org/wiki/Symbolic_link

The name just about says it all: a *symbolic* link from one file to another. For example:

$ df /mnt/windows Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda2 36138212 19393344 16744868 54% /mnt/windows

$ ls -1 /mnt/windows/”Documents and Settings” All Users anabelle Compaq_Owner Default User Heather ian LocalService NetworkService Ron Ron Sr

$ ln -sf /mnt/windows/”Documents and Settings”/Ron/”My Documents” Windows_Docs

$ ls -aFl Windows_Docs lrwxrwxrwx 1 ron ron 52 Jun 16 22:47 Windows_Docs -> /mnt/windows/Documents and Settings/Ron/My Documents/

$ ls -aFl Windows_Docs/ total 13 drwxrwxrwx 1 root root 4096 Nov 29 2007 ./ drwxrwxrwx 1 root root 4096 May 17 2006 ../ -rwxrwxrwx 1 root root 74 Nov 29 2007 desktop.ini* drwxrwxrwx 1 root root 0 Nov 29 2007 My Music/ drwxrwxrwx 1 root root 4096 Nov 29 2007 My Pictures/ drwxrwxrwx 1 root root 0 Dec 13 2005 My Videos/

Triple boot with MS XP

If this isn’t on topic, sorry ahead of time & perhaps you can point me in the right place?

I’ve been reading up on having a separate partition for your /home files. For quite some time, I’ve been using a ntfs partition named “storage” as it makes re-install or fresh install of OS much easier. While it’s WAAAAAY neat that two different distros of Linux can share the /home partition, I still need MS at times. I figure I can’t be the only one, but after looking on the net, I couldn’t decide the best way. I could use Linux to pull files off of the MS XP ntfs partition easy enough, but it seems cheesy. All the options to allow XP to see the Linux partition have permission issues as well as hidden extensions that can’t be hidden. Dangerous trumps cheesy. It would seem grabbing what I need in XP partition from within Linux is the answer… is there something I’ve overlooked? I’m gunna get into virtualization at some point, but I’m just not ready to nuke XP, there are times it’s the only thing I can get to work (like my Netbook internal 3G)

solved: how to start and run a command during boot

Thank Greg Madden, Neal Hogan, H.S. and Liam O’Toole!

IMO editting /etc/network/interfaces is neater than editting /etc/rc.local

how to start and run a command during boot

I have etch and a ppp connection I want to make ppp connection every time Debian boot That is, run “pon” during boot What is the proper way to do that? Thanks!

Boot order / Grub / USB installer

Hi there,

I am trying to install a stable debian 504 using an USB key. Here is what I did:

$ wget http://ftp.nl.debian.org/debian/dists/lenny/main/installer-amd64/current/images/hd-media/boot.img.gz $ wget http://cdimage.debian.org/debian-cd/5.0.4/amd64/iso-cd/debian-504-amd64-netinst.iso $ zcat boot.img.gz > /dev/sdd [remount cycle] $ cp debian-504-amd64-netinst.iso /media/Debian Inst

However after installation it looks like grub switch its internal hd0 / hd1 (device map file) in between /dev/sda1 /dev/sdb1. I had to manually invert them, re-run grub-install.

This happen on a DELL Precision WorkStation T7500.

Does this ring a bell to anyone ?

Thanks

dependency based boot + update-rc.d

Jordan Metzmeier wrote:

I will but I read that ‘sysv-rc-conf provides a terminal GUI for managing “/etc/rc{runlevel}.d/” symlinks.’ and I invoke update-rd.d from a script so I’d rather not have another GUI.

Hugo

Grub2 RAID1 LVM2 boot failure

On Mon, May 31, 2010 at 5:42 PM, wrote:

I agree. It’s an initrd problem. You could start by deleting and re-creating it with update-initramfs -d -k… update-initramfs -c -k…