PDA

View Full Version : creare initrd con mkinitrd su slackware...


_YTS_
07-07-2005, 12:28
ciao ragazzi,
ho un prob nel creare un immagine initrd... sotto slackware.

do un:

mkinitrd -o /boot/initrd.img `uname -r`

e mi restituisce varie cose:

/usr/src/# mkinitrd -o /boot/initrd.img `uname -r`
Usage: mktemp [-q] [-u] template
Usage: mktemp [-q] [-u] template
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount .
cp: copying multiple files, but last argument `rootfs' is not a directory
Try `cp --help' for more information.
Usage: umount [-hV]
umount -a [-f] [-r] [-n] [-v] [-t vfstypes] [-O opts]
umount [-f] [-r] [-n] [-v] special | node...
rmdir: too few arguments
Try `rmdir --help' for more information.
gzip: compressed data not written to a terminal. Use -f to force compression.
For help, type: gzip -h
mv: cannot stat `.gz': No such file or directory

che cosa vuole dire?
cmq ho provato a dare il -f e il processo parte, ma l'ho stoppato perche dopo due ore era sempre li che frullava.
come devo fare? sbaglio qualcosa?

tnx all

NetEagle83
07-07-2005, 12:59
Ciao! Riporto la sintassi dalla Slackware for dummies, presente su http://www.slacky.it/tutorial/slackware_for_dummies/slackware_for_dummies.txt

Se si tratta di ext3, si lancerà il comando: mkinitrd -c -k 2.6.7 -m jbd:ext3 -f ext3 -r /dev/hdan (ipotizzando che la partizione di root risieda in hda e dove n è il numero della partizione stessa). Se invece il filesystem è reiserfs, allora il comando risulta essere: mkinitrd -c -k 2.6.7 -m reiserfs. Senza questo passaggio, i driver del filesystem non verrebbero caricati, producendo un blocco del sistema per "kernel panic".

Magari però non ho capito un cappero io di cosa volevi fare...io cmq ci provo. ;)

Edit: ovviamente quel 2.6.7 va cambiato a seconda della versione del kernel, e mi sembra anche che sia necessario avere i sorgenti... io cmq questa operazione l'ho fatta per avviare il 2.6.10 come secondo kernel (aggiungendo anche le righe in lilo.conf). :)

_YTS_
07-07-2005, 13:16
ho provato anche con i -c -k e niente mi riporta l'errore sopra.

in ogni caso se il comando funzionasse quanto ci metterebbe a creare l'immagine?

bha, ma non mi arrendo, anche perche mi serve per forza, altrimenti non installo la slack su un controller promise fastrack tx2200

byez