ComputersOS

How does Debian install from a USB flash drive

In this article, you will learn how to create a flash drive that contains a fully automated installation of the operating system Debian. This installation uses the Wallix system, in addition to the traditional settings. Downloading Linux from a flash drive is the most convenient and fastest way to download to date. This installation media will be based on the Debian installation program 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 the flash drive in this case will be based on standard ISO images.

Creating a bootable USB flash drive

The first step is to prepare sections for a USB flash drive, create a file system and install grub2. If you do not want to completely clean your flash drive, you can use one of its existing partition, while Grub2 supports the file system on it (if there is enough space).

You can use fdisk, Cfdisk or another favorite tool for your partition. So, create a main partition, at least 2G in size, and install the boot (for example, enter the command / dev / sdb relative to the flash drive) # cfisk / dev / sdb).

Create the file system in the first partition - # mkfs.ext2 / dev / sdb1

Then install Grub2 # mkdir / mnt / usb

# Mount / dev / sdb1 / mnt / usb

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

Grub2 must be written via MBR (Master Boot Record) to the first 512 bytes of the flash drive, as it is necessary to copy the boot.img image. In addition, this will create a directory that contains a set of GRUB modules. Later in this directory, you should create the file grub.cfg.

Now you need to install Debian from the flash drive via HD media. This method will look for an ISO image from the Debian installation media. So, enter the command # mkdir / mnt / usb / hdmedia-squeeze

After that you should use the following:

# 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 /

To complete the preparation, you must provide a configuration file for GRUB:

#set color_normal = 'green / black'

#set color_highlight = 'light-green / black'

# Determine the required route

# / Specify the root directory of the installation disk (/ dev / sdb1)

Set isosdir = '/ ISO image'

Set hdmediasqueeze = '/ hdmedia-' squeeze '

# Then, when installing Debian from the USB flash drive, the program will automatically find the file with the specified parameters.

# The Debian installer , using the HD image, will copy the file system

In / HD-media.

Configure response parameters = '/ hd-media / preseed'

# The manual input of Debian lxde is configured as follows:

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

# Automatic input can be entered as:

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

By means of manual input, the standard installation of Debian from the USB flash drive will be loaded, by means of automatic installation with the installation answers.

The Iso-scan / filename option tells the system where to find the full Debian installation.

To load a guest OS from a USB flash drive, you need to build the real device / dev / sdb device into a special VMDK file and set / TMP / usb.vmdk as the first SATA disk in the guest panel configuration # VBoxManage internalcommands createrawvmdk -filename / tmp / usb .vmdk -rawdisk / dev / sdb

Shutdown

If you managed to load the Debian installer manually with manual input, you should now create the Debconf database . This database is used during the installation of Debian, in particular for installing parts. Using a parameter file, you load predefined conditions for installing programs.

Create a directory in the root of the USB flash drive and copy the parameter file by running the following command: # mkdir / mnt / usb / preseed

Then, at the command prompt, type:

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

Di debian-installer / locale string en_US

Di console-tools / archs select skip-config

Di time / zone string US / Eastern

You will not need to connect to the network when there will be a download from the USB flash drive.

The above instruction assumes that the target computer has only one hard drive. In addition, in most cases the USB flash drive works automatically. If you still find the hard disk first, you can manually run the following command: partman-auto / disk and grub-installer / bootdev, or use the early_command option to automatically install the device for use.

How to install the Debian OS

Now you can start directly downloading the operating system to your computer. However, if you do not want to create a bootable USB flash drive, you can install Debian by using a boot disk.

First, back up important files on your computer. Installing Debian on your machine will require you to clean the entire hard drive and re-overwrites it by erasing all the data in the process. Store important information on a removable disk before installing.

If you did not create a flash drive, download the Debian installation image from the official website, which is appropriate for your processor architecture. If you do not know what type of processor is installed in your computer, select the image for 32-bit PCs, as it is compatible with the standard 32-bit Intel or AMD.

Write the installation image to a CD or DVD. After you have downloaded the file (it will have the extension .ISO), write it to disk using specialized software. Today, there are several free applications that can perform this task if your computer has a CD-R or DVD-R drive.

Boot the computer from the disc you just recorded. After you install the .ISO file on the disk, put the media in the optical drive and restart the computer. The machine will boot from the disk and take you directly to the Debian installation wizard.

You can try Debian Live from the disc if you want. The Debian OS includes an option that allows you to run the operating system completely from a CD or DVD, without overwriting the information on your hard disk (this option is called Debian Live). Select this option in the installation wizard if you want to test the shell before the full installation. Note that performance will be quite low when this option is run.

Install Debian according to the instructions of the installation wizard. When you are ready to start full boot, follow the instructions of the installation wizard and make the operating system settings as desired. You will be given the option to manage hard disk partitions if you want to run Debian together with another operating system, for example, with Microsoft Windows.

If for some reason you can not download and install the installation images, you can purchase a boot disk on the site. Installing Debian may take some time, so it's best to do other things while you wait for the download.

Similar articles

 

 

 

 

Trending Now

 

 

 

 

Newest

Copyright © 2018 en.atomiyme.com. Theme powered by WordPress.