[gelöst] von Festplatte installieren - hd-media/initrd.gz

Du kommst mit der Installation nicht voran oder willst noch was nachfragen? Schau auch in den "Tipps und Tricks"-Bereich.
Antworten
MonDa
Beiträge: 71
Registriert: 08.04.2012 19:17:42
Wohnort: München

[gelöst] von Festplatte installieren - hd-media/initrd.gz

Beitrag von MonDa » 18.08.2012 19:08:10

Hallo,

nachdem ich immer noch nicht die Zeit zur Installtion gefunden habe, nun noch ein Anlauf.

Habe in der Anleitung http://www.debian.org/releases/stable/i ... -hard-disk

folgendes gefunden:
A.2. Booting the installer
http://www.debian.org/releases/stable/i ... -hard-disk

A.2.4. Booting from hard disk
It's possible to boot the installer using no removable media, but just an existing hard disk, which can have a different OS on it.
Download
hd-media/initrd.gz,
hd-media/vmlinuz, and
a Debian CD image
to the top-level directory of the hard disk.
Make sure that the CD image has a filename ending in .iso.
Now it's just a matter of booting linux with the initrd.
Section 5.1.4, “Booting from Linux Using LILO or GRUB” explains one way to do it.
Nur leider wüsste ich nicht wo ich hd-media/initrd.gz,
hd-media/vmlinuz downloaden soll. Habe mir auch schon debian-6.0.5-i3786-DVD-1.iso angeschaut, ob dort ein Pfad hd-media enthalten ist.

Man findet die Dateien gleich zweimal im DVD-image - jedoch auf anderen Pfaden


/install.386/gtk/vmlinuz
/install.386/vmlinuz
Die obigen Dateien sind beide 2,2 MB groß.

/install.386/gtk/initrd.gz 16,0 MB
/install.386/initrd.gz 4,2 MB
Also ein deutlicher Unterschied - der mich daran zweifeln lässt, ob die obigen Dateien wirklich gleich sind (warum sollte man diese sonst 2x einpacken?). Habe die Dateien auch noch gar nicht verglichen, weil ich mich Frage, ob die Dateien die man von hd-media herunterladen soll überhaupt die gleichen sind.

Habe in der Zwischenzeit herausgefunden dss gtk für die grafische Version steht.
Nachdem ich gerne den Mechanismus nutzen würde - mich jedoch frage, ob das auf diese Weise, bei der ein System im RAM läuft - überhaupt funktionieren kann. (wegen größerem Platzbedarf)

Weiter geht es in der Anleitung so
http://www.debian.org/releases/stable/i ... 04.html.en
5.4.1. Hard disk installer booting using LILO or GRUB

This section explains how to add to or even replace an existing linux installation using either LILO or GRUB.
At boot time, both bootloaders support loading in memory not only the kernel, but also a disk image. This RAM disk can be used as the root file-system by the kernel.
Copy the following files from the Debian archives to a convenient location on your hard drive (note that LILO can not boot from files on an NTFS file system), for instance to /boot/newinstall/.
vmlinuz (kernel binary)
initrd.gz (ramdisk image)

Finally, to configure the bootloader proceed to Section 5.1.4, “Booting from Linux Using LILO or GRUB”.
und dann hier

http://www.debian.org/releases/stable/i ... oot-initrd
5.1.4. Booting from Linux Using LILO or GRUB

To boot the installer from hard disk, you must first download and place the needed files as described in Section 4.4, “Preparing Files for Hard Disk Booting”.

If you intend to use the hard drive only for booting and then download everything over the network, you should download the netboot/debian-installer/i386/initrd.gz file and its corresponding kernel netboot/debian-installer/i386/linux. This will allow you to repartition the hard disk from which you boot the installer, although you should do so with care.

Alternatively, if you intend to keep an existing partition on the hard drive unchanged during the install, you can download the hd-media/initrd.gz file and its kernel, as well as copy a CD (or DVD) iso to the drive (make sure the file is named ending in .iso). The installer can then boot from the drive and install from the CD/DVD image, without needing the network.

For LILO, you will need to configure two essential things in /etc/lilo.conf:

to load the initrd.gz installer at boot time;

have the vmlinuz kernel use a RAM disk as its root partition.

Here is a /etc/lilo.conf example:

image=/boot/newinstall/vmlinuz
label=newinstall
initrd=/boot/newinstall/initrd.gz

For more details, refer to the initrd(4) and lilo.conf(5) man pages. Now run lilo and reboot.

The procedure for GRUB is quite similar. Locate your menu.lst in the /boot/grub/ directory (or sometimes /boot/boot/grub/) and add an entry for the installer, for example (assuming /boot is on the first partition of the first disk in the system):

title New Install
root (hd0,0)
kernel /boot/newinstall/vmlinuz
initrd /boot/newinstall/initrd.gz

From here on, there should be no difference between GRUB or LILO.
Vielleicht kann mir jemand sagen wo ich die korrekten Versionen der Dateien herbekomme.

PS: Vielleicht hat damit jemand Erfahrung - positiv oder negativ? - wäre schön vorher davon zu wissen ;)

Danke.

Mon
Zuletzt geändert von MonDa am 18.08.2012 20:22:10, insgesamt 1-mal geändert.
Gruß

Mon

Benutzeravatar
KBDCALLS
Moderator
Beiträge: 22455
Registriert: 24.12.2003 21:26:55
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Dortmund
Kontaktdaten:

Re: von Festplatte installieren - finde hd-media/initrd.gz n

Beitrag von KBDCALLS » 18.08.2012 19:59:34

Was haben Windows und ein Uboot gemeinsam?
Kaum macht man ein Fenster auf, gehen die Probleme los.

EDV ist die Abkürzung für: Ende der Vernunft

Bevor du einen Beitrag postest:
  • Kennst du unsere Verhaltensregeln
  • Lange Codezeilen/Logs gehören nach NoPaste, in Deinen Beitrag dann der passende Link dazu.

MonDa
Beiträge: 71
Registriert: 08.04.2012 19:17:42
Wohnort: München

[Gelöst] vonFestplatte installieren - hd-media/initrd.gz

Beitrag von MonDa » 18.08.2012 20:18:57

@KBDCALLS

Danke für den Tip, das hilft mir sehr.

Ich bin halt noch ein blutiger Debian-Anfänger und ertrinke fast in den vielen Informationen.

Ist das der Platz, wo sich auch ganz normale Debian-Update-Pakete befinden - ist das ein normaler apt mirror?

Sieht für mich fast so aus, wenn man im Verzeichnis ein paar Ebenen nach oben geht.

Danke.
Gruß

Mon

Benutzeravatar
KBDCALLS
Moderator
Beiträge: 22455
Registriert: 24.12.2003 21:26:55
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Dortmund
Kontaktdaten:

Re: [gelöst] von Festplatte installieren - hd-media/initrd.g

Beitrag von KBDCALLS » 19.08.2012 11:20:05

Das ist einer von den Primary Mirrorn.

Hier eine komplette Liste der Spiegel/Mirrors
Was haben Windows und ein Uboot gemeinsam?
Kaum macht man ein Fenster auf, gehen die Probleme los.

EDV ist die Abkürzung für: Ende der Vernunft

Bevor du einen Beitrag postest:
  • Kennst du unsere Verhaltensregeln
  • Lange Codezeilen/Logs gehören nach NoPaste, in Deinen Beitrag dann der passende Link dazu.

Antworten