Archivos para 10 octubre 2011

Working with Emdebian

Installing EmDebian on a USB drive:

  1. The first thing that we should do is formating the USB drive (ext2 in my case)
  2. now we are going to mount the USB in /media/grip folder.
  3. Obtaining lenny from the repositories..
  4. We are going to make a chroot
  5. Before installing a new kernel, I had to create a new file /etc/kernel-img.conf and pasting this text (In the guide this step wasn’t mandatory, but it was for me)
  6. Installing grub.
  7. Beware We must install grub on /dev/sdb not in /dev/sdbX
  8. Exiting from chroot
  9. In my case, I had to fix grub: I edited menu.lst file, and I change the script to start in hd0,0 insted hd1,0
  10. Change password for root user with passwd, and then add a user with adduser command.

mkdir /media/grip/
mount /dev/sdb1 /media/grip/
sudo debootstrap lenny /media/grip/
cd /media/grip/
mount -o bind /dev/ dev/
mount -o bind /proc proc/
chroot . /bin/bash
aptitude update
nano /etc/kernel-img.conf
do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes
link_in_boot = no
postinst_hook = update-grub
postrm_hook = update-grub

aptitude install linux-image-2.6.28-1-686 initramfs-tools
aptitude install what-you-want
aptitude install grub
grub-install /dev/sdb
umount dev/
umount proc/
cd ../
umount grip/

This information is based on


Deja un comentario