pilotennetz.de: Linpus Linux Lite auf Festplatte installieren

There is an English version below.

There are some comments I got by mail, which are (maybe partly) published at the bottom of this document.

Es gibt im Moment viele Menschen, die das voraussichtlich im Acer Aspire One werkelnde Linpus Linux Lite gern auch auf ihren alten Laptops installieren möchten. Leider ist diese Version von Linpus Linux nur als Live-CD und bislang auch nur von der Internet-Seite von Linpus zu erhalten. Eine Möglichkeit zur Festplatteninstallation ist nicht ersichtlich. Aber es ist möglich und das will ich hier beschreiben.

Obligatorisches

Diese Anleitung wird von mir nach bestem Wissen und Gewissen angefertigt. Es wird keine Gewähr dafür übernommen, daß sie der Wahrheit entspricht und es können insbesondere keine Schadensersatzansprüche daraus hergeleitet werden. Jede Anwendung dieser Anleitung erfolgt auf eigene Gefahr.

Voraussetzungen

Man benötigt weder spezielle Programme noch zusätzliche Hardware. Es versteht sich hoffentlich von selbst, dass der Rechner ein optisches Laufwerk haben sollte. Die aktuelle Version 9.4 (die intern an mancher Stelle als 9.5 bezeichnet wird) unterstützt offiziell allerdings nur IDE-Festplatten. Ich habe inzwischen Informationen erhalten, dass sowohl USB-Sticks als auch SATA-Festplatten geeignet sind.
Zusammenfassend braucht man:

Vorgehensweise

Den Rechner von der Live-CD starten.

Auf der Festplatte eine Partition anlegen und beispielsweise mit dem ext3-Dateisystem formatieren. Dazu bietet es sich an, das im Bereich "Settings" versteckte Terminal zu benutzen. Das folgende Vorgehen ist nur ein Beispiel für eine 8GB-IDE-Festplatte, die Zahlen werden bei anderen Systemen sicher anders aussehen.

Wer das Linpux Linux Lite auf einem USB-Stick oder einer SATA-Festplatte installieren will, ersetzt in den folgenden Kommandos "hda" durch "sda" bzw. "hda1" durch "sda1".

[linpus@LINPUS ~]$ sudo bash
[root@LINPUS ~]# /sbin/fdisk /dev/hda
Command (m for help): p

Disk /dev/hda: 8589 MB, 8589934592 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

   Device Boot       Start        End      Blocks    Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-17753, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-17753, default 17753):
Using default value 17753

Command (m for help): p

Disk /dev/hda: 8589 MB, 8589934592 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

   Device Boot       Start        End      Blocks    Id  System
/dev/hda1                1      17753     8388261    81  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@LINPUS ~]# 

Es erscheint eine Fehlermeldung, die vollkommen berechtigt ist, aber keinen Fehler darstellt. Sie kann einfach mit "Close" geschlossen werden. Wir werden die Ursache dieser Meldung jetzt beseitigen, in dem wir auf der gerade erstellten Partition ein Dateisystem erstellen.

[root@LINPUS ~]# /sbin/mkfs.ext3 /dev/hda1

Das Dateisystem wird mit den Standardwerten erstellt, das kann natürlich individuell angepasst werden.

[root@LINPUS ~]# cd /boot
[root@LINPUS boot]# tools/make_disk.sh /dev/hda1

Die Entwickler von Linpus liefern die notwendigen Skripte im Prinzip schon mit, man muss sie nur benutzen. Die Dokumentation zum Skript (README) ist allerdings nicht unbedingt zielführend.

Leider ist das von den Entwicklern gelieferte Skript leicht fehlerhaft. Die von diesem Skript erzeugte Bootloader-Konfiguration ist nicht startfähig. Das lässt sich aber problemlos beheben. Dazu muss die Festplatten-Partition in das laufende System wieder eingebunden werden.

[root@LINPUS boot]# mkdir /mnt/hda1
[root@LINPUS boot]# mount /dev/hda1 /mnt/hda1
[root@LINPUS boot]# vi /mnt/hda1/boot/grub/grub.conf

Nach dem Editieren sollte die Grub-Konfiguration in etwa so aussehen. Neben dem Ersetzen der beiden Vorkommen von "vmlinuz" durch "bzImage" habe ich auch noch die Wartezeit vor dem Boot auf 5 Sekunden gesetzt (timeout) sowie das Menü nicht versteckt (hiddenmenu). Weiterhin muss der Wert für "ramdisk_size" erhöht werden. Ich habe statt 4444 den üppigen Wert von 32000 verwendet, möglicherweise funktioniert es auch mit einem geringeren Wert.

Nach erfolgreicher Bearbeitung muss die Datei natürlich gespeichert werden. Durch Drücken der Taste "ESC" gelangt man in den VI-Kommandomodus und kann dort mit dem Befehl ":wq" (mit Enter bestätigen) die Änderungen in die Datei schreiben.

Jetzt muss das Dateisystem noch ordentlich ausgehängt werden und dann kann der Rechner neu gestartet werden.

[root@LINPUS boot]# umount /mnt/hda1
[root@LINPUS boot]# /sbin/shutdown -r now

Es sollte jetzt das System auch ohne eingelegte Linpus Linux Lite Live-CD starten.

Korrekturen, Ergänzungen, Kritik und Lob bitte hier

pilotennetz.de: Linpus Linux Lite installation on hard disc

English translation was provided by Martin Rek, thanks to him. (I could have done it myself, but the time ...)

There are many people nowadays who want to install Linpus Linux Lite on hard disc, which is working on the Acer Aspire One. Unfortunately, the version which is freely available from Linpus Linux is just a Live-CD. You can download the image from Linpus Linux There seem to be no possibility to install it on hard drive. But it is possible and in the following part of this page I will show you how.

mandatory disclaimer

I wrote this tutorial in all conscience. There is no warranty, that everything is allright. Moreover there is no claim for any damages. You do everything on your own risk.

requirements

You need neither special programs nor additional hardware. All you need is an optical drive. The newest version 9.4 (internally sometimes referred to as 9.5) supports only IDE-Drives. I got success reports from people which have installed linpus linux lite on USB-Pendrive or on SATA disc. So it is possible on some systems. You need:

tutorial

Boot PC with Live-CD

Create a partition on hard disc and format it with the ext3 filesystem. To do that easily, use the terminal in the "settings"-section. The following example uses a 8 GB disc, the numbers will be different to other systems.

Who wants to install linpux linux lite on a USB-Pendrive or on a SATA harddisk, has to replace "hda" with "sda" and "hda1" with "sda1".

[linpus@LINPUS ~]$ sudo bash
[root@LINPUS ~]# /sbin/fdisk /dev/hda
Command (m for help): p

Disk /dev/hda: 8589 MB, 8589934592 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

   Device Boot       Start        End      Blocks    Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-17753, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-17753, default 17753):
Using default value 17753

Command (m for help): p

Disk /dev/hda: 8589 MB, 8589934592 bytes
15 heads, 63 sectors/track, 17753 cylinders
Units = cylinders of 945 * 512 = 483840 bytes

   Device Boot       Start        End      Blocks    Id  System
/dev/hda1                1      17753     8388261    81  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@LINPUS ~]# 

An error message occurs, but thats no real error, don't worry. Just "close" it. We will fix the cause of that error-message by creating a filesystem on our new partition right now.

[root@LINPUS ~]# /sbin/mkfs.ext3 /dev/hda1

The filesystem is created with default values, you can also set them up individually, if you want to and know what you are doing.

[root@LINPUS ~]# cd /boot
[root@LINPUS boot]# tools/make_disk.sh /dev/hda1

The Linpus developers are already delivering the needed scripts, you just have to use them. The documentation (README) is not very useful ...

Unfortunately, the delivered script is faulty and incorrect. The created bootloader configuration is not runnable. We can fix that easily. We just have to insert the hard-disc partition into the running system.

[root@LINPUS boot]# mkdir /mnt/hda1
[root@LINPUS boot]# mount /dev/hda1 /mnt/hda1
[root@LINPUS boot]# vi /mnt/hda1/boot/grub/grub.conf

After editing, the grub-config should look like that. Replace "vmlinuz" with "bzImage" two times (watch out), then set the waiting time before boot to 5 sec (timeout) and the menu not to hide (hiddenmenu). Nevertheless you have to increase the value for "ramdisk_size" to 32000, maybe it will also work with a lower value (I haven't checked it), the default value is in fact too small.

Once your done editing and are ready to write the changes to the page hit your ESC key to enter the VI command mode. Then type :wq and hit Enter to write the changes to grub.conf

To reboot the system, unmount the filesystem correctly.

[root@LINPUS boot]# umount /mnt/hda1
[root@LINPUS boot]# /sbin/shutdown -r now

The system should now boot without the Live-CD.

Errors, additions, critics, and commendation please here

User comments

Comment from: Curtis
Hi,

Thank you SO much!  I've got it running on my Dell Inspiron 6400 as a
quick boot OS instead of the Dell MediaDirect.  So amazing.  By the
way your tutorial mentions that Linpus only supports IDE-drives but
that isn't true.  I've got it running on my Inspiron laptop with a
SATA drive.

In order to use a SATA drive, all you need to do is follow your
tutorial but instead of using /dev/hda you simply use /dev/sda1 and it
works perfectly.  I pre-formatted my drive with Acronis drive image so
I haven't tested your tutorial with creating a partition on the drive.

you might want to add a couple lines to explain using VI for editing
the Grub boot loader (some people don't understand all the commands).
All you need to add the how-to part after editing.

For example - " once your done editing and are ready to write the
changes to the page hit your ESC key to enter the VI command mode.
Then type :w and hit Enter to write the changes to grub.conf "

That might help some newbies!  Just a thought.

Curtis =)
Comment from: Louis
Thank you it worked great.A little difficult for a computer beginner like 
me.
It worked on a sata drive.
An option for dual boot would be appreciated.
Comment from: Doug
Very nice work, and thank you.

Once I followed your directions I had no problem installing Linpus Lite, 
but I DID have an issue that may interest you and you might wish to include.

The ATI video driver included did not work with my laptops integrated 
Mobility Radeon 200 chipset, and xorg would not run.

So far I have hacked it to use the vesa driver and I am trying to find 
an ATI driver that will work.

What I did:
1) keep changing consoles (ctrl-alt-, repeat until 
login prompt shows up) and login as root.
2) move to the X11 directory (cd /etc/X11)
3) rename xorg.conf.ati to xorg.conf.ati.broken (just in case): mv 
xorg.conf.ati xorg.conf.ati.broken
4) copy xorg.conf.vesa to xorg.conf:  cp xorg.conf.vesa xorg.conf
5) copy xorg.conf.vesa to xorg.conf.ati:  cp xorg.conf.vesa 
xorg.conf.ati (Linpus Lite seems to overwrite xorg.conf while booting)
6) reboot into a working, albeit vesa video, Linpus Lite installation. :)

(Note that step 4 could probably be omitted.)

I am now working to find an ATI driver that will work with Linpus Lite 
and my laptop.
Comment from: Tim
 I did get linpus lite installed on my laptop, but I have not been able 
 to get it to boot from the Media Direct button.  If I remember 
 correctly you were able to do that.

 I currently have Linpus and Vista dual boot option at startup.  I 
 would like to have the Vista boot when main power button is pushed 
 while Linpus boots when the Media Direct button is pushed.  My laptop 
 is a Dell XPS M1210.

 Did you successfully get this working? If so, could you help me get it 
 working as well?

 Tim
Comment from: Curtis (Answer to Tim above)
I have it working perfect with XP - I'm sure there isn't a difference 
with Vista.  Ok - this may not be the easiest solution but this is how I 
did it...  if you need me to write you a detailed walk through I won't 
be able until next week.  But this is the easiest that I could figure 
out that works.

*You'll need:*
Partition Software
Windows XP or Vista
Dell MediaDirect 2 or 3 reinstall CD (iso)
Super Grub disk (just in case you MBR changes and you can't access 
Windows or Linux)
Ubuntu Live CD
- get ready to use your F12 key - to boot from CD during this install

*Step 1: * Use partition software like Acronis to setup 3 partitions on 
your harddrive.  My Inspiron 6400 has a Sata drive so follow the install 
guide at http://pilotennetz.de but be sure to install to sda2 since sda1 
is reserved for Windows.

Partition 1  - set it Active (sda1 - hd0,0) - Windows (as large as you 
want it NTFS)
Partition 2 (sda2 - hd0,1) - LinpusLite
Partition 3 - Linux Swap

Make sure that you partition all of these *PRIMARY* partitions or it 
might not work - with Windows as primary partition #1

*Step 2: *Install Windows XP (or Vista) if not done already
*Step 3:* Boot LinpusLite CD for install follow guide at pilotennetz.de 
 but replace everywhere that has hda1 
with sda2 for linux on the second partition
*Step 4:* Boot into Windows - Linpus installer I find keeps messing up 
the MBR and won't let you install Grub to a partition automatically - so 
if your MBR is messed and grub loads - use the Super Grub disk, boot 
from it and choose Windows =(((((( and windows will load.
*Step 5:* In Windows - insert your "reinstalling Dell MediaDirect cd" 
and click start - run - cmd to enter command prompt.  As an 
Administrator browse your Dell MediaDirect CD and change directory to 
d:\dellkit\ for example. 
Then type at the c: rmbr.exe DELL 1 2
This resets the MBR and assigns the "Power Button" to sda1 - Windows and 
MediaDirect button to sda2 - Linux =)  - step 6 is REALLY important to 
do next
*Step 6:* Fix Grub - you need to setup Grub to boot from the mediadirect 
button, so this is an easy way to do that. Use an Ubuntu Live disk and 
run a live session (not install) then once it's loaded open "terminal" 
and type this to fix Grub and install it on sda2 without wrecking the MBR:
sudo grub (will load a grub> prompt)
find /boot/grub/grub.conf (should say (hd0,1) which is sda2 that you setup)
root (hd0,1)
setup (hd0,1)

make sure you say (hd0,1) or whatever your partition for linpuslite is - 
if not - it just overwrote your MBR and you need to repeat step 5 and 6 
before moving on.

*Step 7:* exit Ubuntu and shut down your computer.  If you did it right 
- cause it does work - try booting with your MediaDirect button and now 
LinpusLite loads - or push your power button and Windows loads.

That's All you need to do!!!  If you don't have the Dell MediaDirect 
install CD - I can rip the ISO and tell you where to download it - it's 
small.  For Super Grub - google it - it's a free download.

Hope this helps... it's pretty easy once I figured out why Linpus 
install script keep messing up the MBR.  The Super Grub and Ubuntu let 
me get back to Windows without messing up Linpus and install Grub to the 
partition from the live CD.

Hope this helps!
Jean-Curtis =)
© Ingo Schäfer - Zuletzt geändert Thursday, 19-Feb-2009 22:48:57 CET
Diese Seite ist Teil der Internet-Präsenz http://www.pilotennetz.de
optimiert für Netscape 6.2+ und/oder Mozilla 1.0+, ebenfalls (gelegentlich) getestet mit IE 5.5