[med-svn] [Debian Wiki] Update of "DebianMed/LiveCD" by SteffenMoeller

Debian Wiki debian-www at lists.debian.org
Sat Sep 26 16:58:31 UTC 2009


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Debian Wiki" for change notification.

The "DebianMed/LiveCD" page has been changed by SteffenMoeller:
http://wiki.debian.org/DebianMed/LiveCD?action=diff&rev1=10&rev2=11

  
  The motivation behind this effort is to have the USB stick function like a regular hard drive and provide the basic functionality for some virtual or real machine to do exactly what it is supposed to do (and nothing much else). Again, a compressed file system would be lovely, but a plain journaled ext2 seems to allow a good start.
  
- The installation is performed via deboostrap. cdebootstrap should also work, but it has not for me. Then to be added is a bootloader. I tried with grub2, but it reads from hd0 instead of hd1 when tested on a Windows machine, and I failed to change that. If hd0 is correct for a diskless client I cannot tell. The next attempt will be with extlinux, a ext2-compatible syslinux. The following describes my current state of my attempts:
+ The installation is performed via deboostrap. cdebootstrap should also work, but it has not for me. Then to be added is a bootloader. I tried with grub2, but it reads from hd0 instead of hd1 when tested on a Windows machine, and I failed to change that. If hd0 is correct for a diskless client I cannot tell. I was then successful with extlinux, an ext2-compatible syslinux. The following worked for me:
  
  {{{
     sudo fdisk /dev/sdb1 # create a partition
@@ -79, +79 @@

     sudo mkdir /mnt/stick # prepare mount point
     mount -t ext2 /dev/sdb1 /mnt/stick
  
-    debootstrap --include=dropbear squeeze /mnt/stick http://ftp.de.debian.org/debian #  please adjust to your mirror
+    mirror="http://ftp.de.debian.org/debian" # please adjust
+    debootstrap --include=dropbear squeeze /mnt/stick $mirror
  }}}
  
- 
- A disadvantage of this setup is the limited space to cache the packages - the binaries eat up the disk space that is needed to unpack them. And apt-get does not care about removing packages from /var/cache/apt to free disk space during installation. After the debootstrap, one should install in fractions rather than all in one - also depending on the size of your medium. A 4GB USB stick was found far less comfy than originally anticipated. Go for at least 8GB.
+ A disadvantage of this setup is the limited space to cache the packages - the binaries eat up the disk space that is needed to unpack them. And apt-get does not care about removing packages from /var/cache/apt to free disk space during installation. After the debootstrap, one should install in fractions rather than all in one - also depending on the size of your medium. A 4GB USB stick was found to be sufficient, but far less comfy than originally anticipated. Go for at least 8GB.
  
  {{{
     chroot /mnt/stick
@@ -102, +102 @@

     passwd root
  }}}
  
+ And how to access the network should be specified - please adjust:
+ {{{
+    cat > /etc/network/interfaces <<EONET
+ # The loopback network interface
+ auto lo
+ iface lo inet loopback
+ 
+ # The primary network interface
+ auto eth0
+ iface eth0 inet dhcp
+ EONET
+ }}}
  
  For getting the beast to boot, I attempted the following. The kernel should be installed, first, and the installation inspects the /proc directory, so this is prepared for it, too.
  
@@ -120, +132 @@

  EOFSTAB
     mount /proc
     apt-get install linux-image
-    # answering 'Y' to the questions asked, except the initrd is fine - press "don't cancel"
+    # answering 'Y' to the questions asked, except for the
+    # preparation for the initrd, which is fine - press "don't cancel"
  }}}
  
- Now the system should be installed. It was not clear from the documentation ([[http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548424|#548424]]) about how the configuration file should be named - so some good soul please improve the description given here.
+ Now the boot loader should be installed. It was not clear from the documentation ([[http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548424|#548424]]) about how the configuration file should be named - so some good soul please improve the description given here.
  
  {{{
     # still in the chroot
@@ -141, +154 @@

     # http://syslinux.zytor.com/wiki/index.php/EXTLINUX
  
     sudo apt-get install syslinux
-    extlinux -i /mnt/stick
+    extlinux -i /mnt/stick/boot
  
     sync # does not help too much with journaled file systems, though
  



More information about the debian-med-commit mailing list