Clean install of DoudouLinux on hard disk
By JM on Saturday 9 April 2011, 11:46 - Developers - Permalink
Currently the DoudouLinux installer just copies onto disk the Live media as is. While this is very practical for us and brings interesting features to users (rock-solid read-only system), this also has drawbacks:
- the system is still compressed and slows down startup on old computers
- you can not remove software
- upgrading software creates a duplicate version of each software
- many boot parameters cannot be changed (they're not persistent)
One of our most active contributors, Richard, suggested to use Remastersys. This is a tool whose goal is to perform full system backup onto a Live CD for Debian-based distributions. One of its features is to let users re-install a clean system onto hard disk from the Live CD: just what we need!
Thanks to it, on a laptop from 2003-2004, DoudouLinux is now booting in 40s instead of 120s from CD. I installed the system in 3 separate partitions: root, home and swap. The root system needs 1.9 GB so you have to setup at least a 2.5 GB root partition. Of course if you want to add software or don't want a separated home partition (bad idea), make it larger! Now let's look at the recipe :).
Remastersys is offered as a Debian package. The package provides a shell script to install the running Live system on disk: “remastersys-installer”. Reading the script showed that it is doing what we need. We have then successfully performed a clean install of DoudouLinux with the following operations:
- add Remastersys repository to a running DoudouLinux
- install Remastersys
- run the Remastersys script called “remastersys-installer”
- reboot!
Note that there are some issues to be corrected after the first boot (see after the source code below). We also have to customize the Remastersys script for use in an official future DoudouLinux release. In the meanwhile, if you want to test it by yourself, you need to type several code lines as root then as the main user to be able to use the graphical Gtk interface:
# log as root su - # define parameters SOURCESLIST=/etc/apt/sources.list DANSREGEXPEXCEPT=/etc/dansguardian/lists/exceptionregexpurllist DANSSERVICE=/etc/init.d/dansguardian # register remastersys repository echo 'deb http://www.geekconnection.org/remastersys/repository debian/' >> $SOURCESLIST # fix bug DansGuardian blocking some deb's files # see: https://gna.org/bugs/index.php?18003 echo '\\.deb$' >> $DANSREGEXPEXCEPT $DANSSERVICE restart # install remastersys apt-get update apt-get install --assume-yes --force-yes remastersys # call installer as normal user exit sudo remastersys-installer gui
Once completed, if you see messages complaining about the impossibility to unmount /TARGET and /TARGET/home, just unmount them manually in the console:
sudo umount /TARGET/home/ sudo umount /TARGET/
Finally please note that there are few details to be corrected:
- at boot GRUB is complaining about a missing splash image
- network may not work because the file
/etc/network/interfacesis appended with another network configuration at each boot (which causes inconsistencies) - boot is hanging tens of seconds when network is not plugged because it is waiting for a DHCP lease
The first point can be solved by editing /boot/grub/menu.lst and adding “boot” between the double slash (//) in the line speaking of splash. Note that the Remastersys splash image is not childish at all. Prefer installing the package grub-splashimages-doudoulinux instead! (and replace the file /boot/grub/splash.xpm.gz)
The second one can be solved by removing the for loop of the 3rd block of code in /etc/rc.local.
The last one cannot be simply solved. We have to achieve additional experiments to find a solution. They'll be reported in the ticket related to this topic: Provide a way to do a real DDL installation.
Have nice DoudouLinux installs! 
Comments
I have used the Remastersys method (http://blog.doudoulinux.org/post/20...) to do a HDD install on pretty ancient hardware (266MHz i586 CPU, 96MB RAM). Running the LiveCD was painfully slow (19 minutes to boot), but this installation is reasonably snappy (4 minutes to boot). I had tried the Debian install method (http://blog.doudoulinux.org/post/20...), but could not get the system to boot after installation.
I do have a few tips for this Remastersys method:
1) See the “Installing DoudouLinux definitively” page for general information, including accessing console (http://www.doudoulinux.org/web/engl...).
2) The Lenny repositories have been archived, so the following lines need to be added after registering the remastersys repository:
a. echo ‘deb http://archive.debian.org/debian/ lenny main non-free contrib’ >> $SOURCESLIST
b. echo ‘deb http://archive.debian.org/debian-se... lenny/updates main non-free contrib’ >> $SOURCESLIST
3) The standard i686 release would not support my CPU, but the i486 release worked fine (http://download.doudoulinux.org/dai...).
4) The computer that is currently running DoudouLinux did not have enough RAM to download all the updates to memory to perform the installation. I had to stick the HDD in a system with ample RAM to perform the installation and then replace it in the old system.
5) After the HDD install, my monitor was detected at a very low resolution. Removing resolution limits solved the problem (http://www.doudoulinux.org/spip/eng...).
6) The hardware detection at boot only appears to look for PCI sound cards. My ISA sound card was not automatically detected, but could be found by executing “alsaconf” as root. Executing “modprobe sb io=0x220 irq=5 dma16=5 mpu_io=0x330” as root enables sound in some contexts but not others. Anybody have any other ideas?
Thanks for these tips that will surely help people interested into installing DoudouLinux, especially on old hardware.
Concerning the detection of ISA audio cards, we must confess we haven't any hardware to perform tests. We don't know the ALSA detection process either. Therefore we cannot give any advice.
well i tried installing doudoulinux using remastersys and it did not work on eee pc 701n it could not find grub (which look normal) but the most important pb is cfdisk which doesn't see the hd dued to first boot sector