Monday, September 1, 2014

A bootable USB stick with Debian-7.6.0

1 usb fat format and rename the label
------------------------------------

root@N55SL:/home/mapx/Desktop# umount /dev/sdb1
root@N55SL:/home/mapx/Desktop# mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.12 (29 Oct 2011)
root@N55SL:/home/mapx/Desktop# mlabel -i /dev/sdb1 -s ::"debian76"
Volume has no label
root@N55SL:/home/mapx/Desktop#





2 copy and sync the DVD image to the usb stick
---------------------------------------------

root@N55SL:/home/mapx/xfiles/debian# ll
total 3903628
drwxrwxr-x 2 mapx mapx 4096 Aug 22 14:11 ./
drwxrwxr-x 31 mapx mapx 4096 Aug 22 14:11 ../
-rw-r--r-- 1 mapx mapx 3997302784 Jul 24 19:21 debian-7.6.0-i386-DVD-1.iso
root@N55SL:/home/mapx/xfiles/debian# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 378137980 136815204 222394976 39% /
udev 1370408 8 1370400 1% /dev
tmpfs 275548 876 274672 1% /run
none 5120 8 5112 1% /run/lock
none 1377724 600 1377124 1% /run/shm
/dev/sdb1 7794860 4 7794856 1% /media/DEBIAN76
root@N55SL:/home/mapx/xfiles/debian# cp debian-7.6.0-i386-DVD-1.iso /dev/sdb1

root@N55SL:/home/mapx/xfiles/debian# sync



3 Boot Device Selection
--------------------------
I have chosen the USB Storage Stick on the gateway machine.
(I am going to save and reboot, let's see what happens, wish me good luck)

###############################
it does not work, now lets try


2nd trying
##########
dd if=debian-*-netinst.iso of=/dev/sdX
# dd if=debian-7.6.0-i386-DVD-1.iso of=/dev/sdb1

root@N55SL:/home/mapx/xfiles/debian# dd if=debian-7.6.0-i386-DVD-1.iso of=/dev/sdb1
7807232+0 records in
7807232+0 records out
3997302784 bytes (4.0 GB) copied, 382.07 s, 10.5 MB/s





3th trying
##########
$ wget http://d-i.debian.org/daily-images/i386/daily/hd-media/boot.img.gz



root@N55SL:/home/mapx/xfiles/debian# umount /dev/sdb1
root@N55SL:/home/mapx/xfiles/debian# mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.12 (29 Oct 2011)

root@N55SL:/home/mapx/xfiles/debian# zcat boot.img.gz > /dev/sdb1


disconect and connect USB stick so as to mount the stick again!



root@N55SL:/home/mapx/xfiles/debian# cp debian-7.6.0-i386-DVD-1.iso /dev/sdb1
root@N55SL:/home/mapx/xfiles/debian# sync



4th trying
##########

cat debian-7.6.0-i386-DVD-1.iso > /dev/sdb1
sync



5th trying
##########

Following the instructions with the app unetbootin [http://unetbootin.sourceforge.net/]
the bootable USB stick has worked.



No comments:

Post a Comment