Old:DLP: Installer

Versione del 30 set 2006 alle 15:54 di Tindal (discussione | contributi) (aggiornato link)

Installare Debian-Live su hard disk o chiavetta USB, usando il Debian Installer con pacchetti e procedimenti alternativi.

La procedura

Primo metodo

Sembra che il pacchetto mbr sia utile per il boot da usb:

device=$1

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"

Secondo metodo

Usato anche nel progetto http://xarnoppix.software-libre.org/ e ftp://ftp.caliu.cat/pub/distribucions/xarnoppix:

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