The every day things from Thalamus' life.

Thalamus' Blog

23 January, 2012

Quicker boot after diskchange

Filed under: ComputerStuff_en — Thalamus @ 14:16

Got myself a SSD drive some weeks ago and reinstalled Fedora 16 on my work computer. I choose to keep the old data of the Fedora 15 on the striped SAS disks, since I knew that there where some data I wanted to keep/move over to the newer installation. All went fine and dandy. The only nag was maybe the fact that I once again had to disable nouveau driver since it cannot handle a dual screen and I noticed that the boot time was not up what I would expect from a SSD. Poked a bit around and I soon found out that most of the delay was waiting for 30 seconds for the mptsas module initialize.

So, the solution was to take out both the nouveau and the mtpsas of the kernel, and compile my own nvidia drivers. This is what I did. Nvidia installer gives you an alternative to create a blacklisted entry by its own. Looking at the file it contains the following.

# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0

I made more of less the same for /etc/blacklist.d/mptsas-disable.conf

blacklist mptsas
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-mptsas.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)
stat /boot/initramfs-$(uname -r).img

On the next boot – I added a ‘3’ as a option to the boot from grub, so that we didn’t try to go for the default GUI boot. From there I compiled the nvidia drivers. I edited /etc/fstab and made myself a notice that I would need to run insmod mtpsas if I needed to mount the old data and also made sure that it didn’t automount.

UUID=0c477e81-c3dd-433c-8225-1ab651110344 /old_data ext4 defaults,noauto 1 2

the UUID, you get from running ‘blkid’ as root.

Once I’ve done these changes, the computer booted as fast I would expect it to. The only annoying delay is the initial BIOS delay of about 30 sec. that the SAS controller takes pre OS. Some sunny day, after I’m sure that I don’t need any data from the old disk … I’ll take that card out of the computer making it really snappy.

• • •