BootFromPCMCIA
Taken from [http://ubuntuforums.org/showthread.php?p=1231044 here] !
Edgy
replace /etc/mkinitramfs with /etc/initramfs-tools in the howto for Dapper
replace in the modules file ide_cs with pata_pcmcia
Dapper
- Open a Terminal/Shell
Get superuser sudo -i
Copy your initramfs cp /etc/mkinitramfs /etc/mkinitramfs-pcmcia (if it is not there install it!)
Create a script to build a new initrd.img nano /etc/mkinitramfs-pcmcia/buildme.sh
- Paste this to your script :
VERSION=`uname --kernel-release` NAME=pcmcia set -xv mkinitramfs -d /etc/mkinitramfs-$NAME -o /boot/initrd.img-$VERSION-$NAME
Edit the initramfs.conf file and make sure it says "MODULES=most" in there somewhere nano /etc/mkinitramfs-pcmcia/initramfs.conf
- Create or append to /etc/mkinitramfs-pcmcia/modules :
# This is to allow beeping early during boot pcspkr # This is to allow booting from PCMCIA-CF cards pcmcia pcmcia_core ide_cs yenta_socket rsrc_nonstatic
run the script /etc/mkinitramfs-pcmcia/buildme.sh
- The generated initrd.img file is placed in /boot and you can then use it. Configure your boot loader to run it, and then your PCMCIA-CF card should show up as /dev/hda or /dev/sda. It does work.
NOTE : On my system this works nicely if i do NOT set the BIOS to boot from the PCMCIA Adapter e.g. put the kernel and initrd.img on the hdd and just mount the PCMCIA Adapter as root!!! (Toshiba Portege M200)