Ubuntu - Day 18 (G40 to brick and back again)
February 07, 2007 @04:52
Today I needed to upgrade to Python 2.5 so I could work on work stuff. Earlier in the day I had upgraded my Gentoo box at work to use Python 2.5 - piece of cake. It seems that in Ubuntu land you currently don't get Python 2.5 unless you're tracking the "Feisty" sources. So I went on to update my sources and use Synaptic to update everything. It finished up by throwing some errors about being unable to finish due to "unresolvable errors". Per my usual cli bias I decided to apt-get update && apt-get upgrade which seemed to do a much better job. It successfully upgraded the entire friggin world... after which I rebooted to a shiny kernel panic.
Let's take a step backwards. My wife purchased this G40 as a surprise gift. It shipped with Windows XP which I managed to replace with Gentoo in about an hour. During the install I noticed the first partition was small and for some reason I was nervous to touch it. I proceeded to install Gentoo on /dev/hda[2-4]. So eighteen days ago I decided to see what Ubuntu felt like. I installed it, taking all of the defaults not thinking much about it. That was a mistake. You see when Ubuntu asked me if I wanted to resize the existing partitions or just use the whole disk, I obviously chose to just use the whole thing. I wasn't thinking about that "innocent" little first partition.
It seems the G40's bootup process works something like this:
So I call a Jaisen and start brainstorming options. The best option we come up with is to:
This laptop has a floppy drive. Oh the horror. Soon the memories come back. The slowness. The corruption. The clicking - the crappyness.
I'll cut to the chase on how I got things rolling again:
Let's take a step backwards. My wife purchased this G40 as a surprise gift. It shipped with Windows XP which I managed to replace with Gentoo in about an hour. During the install I noticed the first partition was small and for some reason I was nervous to touch it. I proceeded to install Gentoo on /dev/hda[2-4]. So eighteen days ago I decided to see what Ubuntu felt like. I installed it, taking all of the defaults not thinking much about it. That was a mistake. You see when Ubuntu asked me if I wanted to resize the existing partitions or just use the whole disk, I obviously chose to just use the whole thing. I wasn't thinking about that "innocent" little first partition.
It seems the G40's bootup process works something like this:
- Turn on computer
- Wait for the hard drive to boot or press the blue "IBM" button
- If you push the blue button, can do other things - booting to cdrom being one
So I call a Jaisen and start brainstorming options. The best option we come up with is to:
- Remove the hard drive
- Place it in a usb enclosure of sorts
- Mount said hard drive
- Chroot into the little monster and fix the glitch
- Figure out a creative way to update the mbr (think grub.conf /dev/foobar mismatch)
- Put the disk back in and cross fingers
This laptop has a floppy drive. Oh the horror. Soon the memories come back. The slowness. The corruption. The clicking - the crappyness.
I'll cut to the chase on how I got things rolling again:
- Use the Smart BootManager to create a bootable floppy
- Use the floppy to boot the cdrom (Gentoo livecd of course)
- Chroot into Ubuntu
- apt-get update && apg-get upgrade
- update-initramfs -u
- Reboot and feel the love
Gentoo stage4 and kernel install wierdness
February 02, 2007 @05:00
At my new job I'm itching to start rolling on a Gentoo box... my days on win32 are almost over! I've been working on a shiny new image for the past few days. Tonight I rolled it into a stage4 tarball and installed it on a new 100g Seagate disk. Tomorrow morning I'll finally have a nice Linux box to work with.
Earlier today I was talking to Jaisen who's adding ethernet throttling support to his gear. After installing his new kernel, grub kept failing because it didn't find any data in /etc/mtab. So he did the usual trick of copying /proc/mounts though oddly it resulted in an empty file? We decided to just use cat instead which worked fine. I honestly blew it off until just a bit ago when I chrooted to my shiny new stage4 install only to have the exact same thing happen. What in the world? Since when can't you do:
root# cp /proc/mounts /etc/mtab
Most likely I will upgrade my kernel howto to recommend using: root# cat /proc/mounts > /etc/mtab
I should also note that my new image is running Xfce 4.4.0. Why you ask? Because it's sweet.
Earlier today I was talking to Jaisen who's adding ethernet throttling support to his gear. After installing his new kernel, grub kept failing because it didn't find any data in /etc/mtab. So he did the usual trick of copying /proc/mounts though oddly it resulted in an empty file? We decided to just use cat instead which worked fine. I honestly blew it off until just a bit ago when I chrooted to my shiny new stage4 install only to have the exact same thing happen. What in the world? Since when can't you do:
root# cp /proc/mounts /etc/mtab
Most likely I will upgrade my kernel howto to recommend using: root# cat /proc/mounts > /etc/mtab
I should also note that my new image is running Xfce 4.4.0. Why you ask? Because it's sweet.