59
contributi
Nessun oggetto della modifica |
(→OS) |
||
Riga 1: | Riga 1: | ||
Installare Debian-Live su hard disk o chiavetta USB, usando il [http://wiki.debian.org/DebianInstaller Debian Installer] con pacchetti e procedimenti alternativi. | |||
== La procedura == | |||
=== Primo metodo === | |||
Sembra che il pacchetto [[DLP:_mbr|mbr]] sia utile per il boot da usb: | |||
<pre> | |||
device=$1 | |||
* install-mbr | drive="`sfdisk -s $device`" | ||
drive_size="`expr $drive \/ 1024`" | |||
#sizefat="`expr $drive_size \* 76 \/ 100`" | |||
["parted"] -s $device mklabel msdos | |||
parted -s $device mkpart primary fat16 0 $drive_size mkfs 1 fat16 | |||
#parted -s $device mkpart primary fat16 0 $sizefat mkfs 1 fat16 | |||
#parted -s $device mkpart primary ext2 $sizefat $drive_size mkfs 2 ext2 | |||
parted -s $device set 1 boot on | |||
parted -s $device set 1 lba on | |||
install-mbr -e1 $device | |||
["syslinux"] $device"1" | |||
</pre> | |||
=== Secondo metodo === | |||
Usato anche nel progetto http://xarnoppix.software-libre.org/ e ftp://ftp.caliu.cat/pub/distribucions/xarnoppix: | |||
<pre> | |||
xarbox:~# grub-floppy /dev/fd0 | |||
xarbox:~# fdformat /dev/fd0 | |||
xarbox:~# mke2fs /dev/fd0 | |||
xarbox:~# mount -t ext2 /dev/fd0 /media/floppy0 | |||
xarbox:~# mkdir -p /media/floppy0/boot/grub | |||
xarbox:~# touch /media/floppy0/boot/grub/{menu.lst,device.map} | |||
xarbox:~# nano /media/floppy0/boot/grub/menu.lst | |||
default 0 | |||
timeout 10 | |||
color cyan/blue white/blue | |||
title Xarnoppix USB BOOT FLOPPY | |||
kernel (hd0,0)/vmlinuz root=/dev/ram0 | |||
initrd (hd0,0)/initrd.img | |||
xarbox:~# nano /media/floppy0/boot/grub/device.map | |||
(fd0) /dev/fd0 | |||
(hd0) /dev/sdb | |||
# Con un disco SATA ( /dev/sda ) il device USB diventa /dev/sdb | |||
xarbox:~# grub-install --root-directory=/media/floppy0 '(fd0)' | |||
xarbox:~# umount /dev/fd0 | |||
xarbox:~# reboot</pre> |
contributi