Install Debian and Ubuntu to USB hard drive in Windows

Source: Internet
Author: User
Linux system installation problems have always plagued many Linux enthusiasts, especially various hard disk installation and iso File Installation. Due to the flexibility, Doudou has recently tested how to install Linux using Vmware, after testing, you can use the ISO file to smoothly install Ubuntu, Jeos, debian, RedHat, and other systems to the USB hard disk, which is easy to operate and avoids various configuration processes. Environment: Laptop (USB boot supported) + Windows XP system + VvmwareWork

Linux system installation problems have always plagued many Linux enthusiasts, especially various hard disk installation and iso File Installation. Due to the flexibility, Doudou has recently tested how to install Linux using Vmware, after testing, you can use the ISO file to smoothly install Ubuntu, Jeos, debian, RedHat, and other systems to the USB hard disk, which is easy to operate and avoids various configuration processes.

Environment: Laptop (USB boot supported) + Windows XP system + Vvmware Workstation

20 gb usb hard disk

Ubuntu: ubuntu-8.04.1-desktop-i386.iso
Http://mirror.lupaworld.com/ubuntu/releases/hardy/ubuntu-8.04.1-desktop-i386.iso
Jeos: jeos-8.04.1-jeos-i386.iso
Http://cdimage.ubuntu.com/jeos/releases/8.04/release/jeos-8.04.1-jeos-i386.iso
Debian: debian-40r4a-i386-CD-1.iso
Http://debian.osuosl.org/debian-cdimage/4.0_r4a/i386/iso-cd/debian-40r4a-i386-CD-1.iso
Redhat: rhel-5.2-server-i386-dvd.iso
Ftp://openware.byr.edu.cn/pub/os-images/Redhat/RHEL5.2/rhel-5.2-server-i386-dvd.iso

Planning:

All Linux systems are installed on a USB hard disk. The disk is divided into multiple partitions and a system is installed in one partition.

Installation:

Debian is used as an example:

1. create virtual machine debian

Configuration: Use debian-40r4a-i386-CD-1.iso as CDROM; use USB disk as virtual machine hard disk.

2. Start the Virtual Machine and install debian

Select a standard system for installation. A basic system is installed.

3. Configure grub

Now, start the newly installed debian system under the virtual machine, modify its grub STARTUP configuration, and modify the following parameters:

1./boot/grub/menu. lst

After installation:

Title Debian GNU/Linux, kernel BRL. 18-6-686
Root (hd0, 0)
Kernel/boot/vmlinuz-2.6.18-6-686 root =/dev/sda1 ro
Initrd/boot/initrd. img-2.6.18-6-686
Savedefault

Because the device numbers assigned by the USB hard drive during startup are not fixed, you need to use the uuid as the root user. UUID is the unique ID of a partition. It can ensure that the kernel can mount the root volume normally.

First find the root volume UUID Number:

# Cd/dev/disk/by-uuid

# Ls-l

Lrwxrwxrwx 1 root 10 Oct 14 73f787da-1b48-11d7-8349-d342775890ae->.../sda1

Then modify menu. lst, and

Kenerl/boot/vmlinuz-2.6.18-6-686 root =/dev/sda1

To:

Kenerl/boot/vmlinuz-2.6.18-6-686 root = UUID = 73f787da-1b48-11d7-8349-d342775890ae ro

The first partition of the USB hard disk is used as the debian system.

2./etc/fstab

Original content:

#/Etc/fstab: static file system information.

#

#

Proc/proc defaults 0 0

/Dev/sda1/ext3 defaults, errors = remount-ro 0 1

/Dev/hdc/media/cdrom0 udf, iso9660 user, noauto 0 0 0

/Dev/fd0/media/floppy0 auto rw, user, noauto 0 0

Modify the above red root volume Mounting Mode

UUID = 73f787da-1b48-11d7-8349-d342775890ae/ext3 defaults, errors = remount-ro 0 1

Use uuid to connect the root user.

4. Restart and select usb boot to enter the debian system.

After testing, the configuration methods of other versions are similar. If your PC supports USB boot, you can easily use this method to install the Linux system to a USB hard disk, it is convenient to use on different PCs.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.