How is the installation of Debian from a flash drive

In this article, you will learn how to create a USB flash drive that contains a fully automated installation of the Debian operating system . This installation uses the Wallix system, in addition to the traditional settings. Downloading Linux from a USB flash drive is the most convenient and efficient way to boot today. This installation media will be based on the Debian installer image.

The method described in this article is easy to repeat. In addition, it allows you to use the Debian operating system on removable media. Installing Debian from a flash drive in this case will be based on standard ISO images.

installing Debian from a flash drive




Creating a bootable flash drive

USB -, grub2. , , Grub2 ( ).

fdisk, Cfdisk . , , , , 2G, (, /dev/sdb)# cfisk /dev/sdb).





- # mkfs.ext2 / dev/sdb1 

linux from flash drive




Grub2 # mkdir /mnt/usb

# mount /dev/sdb1 /mnt/usb

# grub-install --root-directory=/mnt/usb /dev/sdb

Grub2 MBR (Master Boot Record) 512 -, boot.img. , , GRUB. grub.cfg.

Debian HD-. ISO- Debian. , # mkdir /mnt/usb/hdmedia-squeeze

:

# wget http://ftp.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/hd-media/vmlinuz -O /mnt/usb/hdmedia-squeeze/vmlinuz

# wget http://ftp.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/hd-media/initrd.gz -O /mnt/usb/hdmedia-squeeze/initrd.gz

# mkdir /mnt/usb/isos

# cp debian-6.0.3-amd64-CD-1.iso /mnt/usb/isos/

GRUB:

debian lxde




#set color_normal='green/black'





#set color_highlight='light-green/black'

#

# / (/ dev/sdb1)

isosdir = '/ ISO- "

hdmediasqueeze = '/ hdmedia-' squeeze'

# , Debian , .

# Debian, HD-,

/ HD-.

= '/ hd-media/preseed'

# Debian lxde :

menuentry 'Debian 6.0 amd64 manual install' {

linux $hdmediasqueeze/vmlinuz iso-scan/filename=$isodir/debian-6.0.3-amd64-CD-1.iso priority=critical

initrd $hdmediasqueeze/initrd.gz

# :

menuentry 'Debian 6.0 amd64 automatic install' {

linux $hdmediasqueeze/vmlinuz iso-scan/filename=$isodir/debian-6.0.3-amd64-CD-1.iso preseed/file=$preseed/standard-squeeze.preseed auto=true priority=critical

initrd $hdmediasqueeze/initrd.gz

Debian , - .

Iso-scan/filename , Debian.

- USB real device /dev/sdb VMDK / TMP / usb.vmdk SATA # VBoxManage internalcommands createrawvmdk -filename /tmp/usb.vmdk -rawdisk /dev/sdb

Debian , Debconf. Debian, , . , .

USB - , : # mkdir /mnt/usb/preseed

:

# cat << EOF > /mnt/usb/preseed/standard-squeeze.preseed

d-i debian-installer/locale string en_US

d-i console-tools/archs select skip-config

d-i time/zone string US/Eastern

, .

, . , . , : partman-auto/disk grub-installer/bootdev early_command, .

Debian

. , , Debian .

. Debian , . .

-, Debian -, . , , 32- , 32- Intel AMD.

- DVD. , ( .ISO), . , ,   CD-R DVD-R.

. .ISO , . Debian.

Debian Live . Debian , - DVD, ( Debian Live). , . , .

Debian . , . ​​ , Debian , , Microsoft Windows.

- , . Debian , , .




All Articles