Install ubuntu in a mobile hard drive

Source: Internet
Author: User
Start Ubuntu here and install the ubuntu System in the mobile hard drive: 1. in windows from the hard disk to install ubuntu into the mobile hard disk (Grub4dos with 0.4.3 version of effective) before installation, to the hard disk boot file and ubuntu-7.10-alternate-i386.iso put under a drive letter (put mobile hard disk can not, grub cannot be checked at the beginning). 7.10 can be under ntfs, but earlier versions must be under fat32. Same as hard disk installation,

Here we start Ubuntu and install the ubuntu system in a mobile hard disk:

1. Install ubuntu on a mobile hard disk in windows (Grub4dos is effective in version 0.4.3)

Before installation, you need to put the Hard Drive boot file and ubuntu-7.10-alternate-i386.iso under a drive letter (put under the mobile hard drive can not, grub of the Initial Detection), 7.10 can be in ntfs, however, earlier versions must be in fat32. It is installed on a mobile hard disk. When prompted to install Grub, it is best not to install Windows mbr, you can fill in/dev/sdb (because there is a SATA hard disk inside)

2. Write the GRUB4DOS boot code to the mobile hard disk MBR.

In ubuntu, enter the bootlace.com directory. Assume that the mobile hard disk is/dev/sdb.

Run commands

Sudo./bootlace.com -- floppy/dev/sdb

3. Configure GRUB4DOS

Find one or create a fat16/fat32/ext2/ext3 partition on the mobile hard disk, copy grldr to its root directory, and create a menu. lst file in the same directory. The content is as follows:

Timeout 6

Default 0

Title Ubuntu, kernel 2.6.20-16-lowlatency

Kernel/boot/vmlinuz-2.6.20-16-lowlatency root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro quiet splash

Initrd/boot/initrd. img-2.6.20-16-lowlatency

Quiet

Title Ubuntu, kernel 2.6.20-16-lowlatency (recovery mode)

Kernel/boot/vmlinuz-2.6.20-16-lowlatency root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro single

Initrd/boot/initrd. img-2.6.20-16-lowlatency

Title Ubuntu, kernel 2.6.20-16-generic

Kernel/boot/vmlinuz-2.6.20-16-generic root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro quiet splash

Initrd/boot/initrd. img-2.6.20-16-generic

Quiet

Title Ubuntu, kernel 2.6.20-16-generic (recovery mode)

Kernel/boot/vmlinuz-2.6.20-16-generic root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro single

Initrd/boot/initrd. img-2.6.20-16-generic

Title Ubuntu, kernel 2.6.20-15-lowlatency

Kernel/boot/vmlinuz-2.6.20-15-lowlatency root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro quiet splash

Initrd/boot/initrd. img-2.6.20-15-lowlatency

Quiet

Title Ubuntu, kernel 2.6.20-15-lowlatency (recovery mode)

Kernel/boot/vmlinuz-2.6.20-15-lowlatency root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro single

Initrd/boot/initrd. img-2.6.20-15-lowlatency

Title Ubuntu, kernel 2.6.20-15-generic

Kernel/boot/vmlinuz-2.6.20-15-generic root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro quiet splash

Initrd/boot/initrd. img-2.6.20-15-generic

Quiet

Title Ubuntu, kernel 2.6.20-15-generic (recovery mode)

Kernel/boot/vmlinuz-2.6.20-15-generic root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro single

Initrd/boot/initrd. img-2.6.20-15-generic

Title Ubuntu, memtest86 +

Kernel/boot/memtest86 +. bin

Quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

Replace "177430b6-2e85-4674-88c1-029d51aeca13" with the uuid of the root partition.

Command to view UUID of each partition: ls-l/dev/disk/by-uuid

You can also check the uuid written by the root partition/boot/grub/menu. list in the mobile hard drive through the installed ubuntu, and copy it.

4. Automatic hardware detection

Copy the S03xconfig. sh file in the ptptptptptpt attachment to/etc/rc2.d/, and modify its permissions to allow "execution as an executable file" -- this is used to configure X. Now, the mobile hard drive system can run on different hosts.

Sudo cp xxxxx/S03xconfig. sh/etc/rc2.d/S03xconfig. sh; xxxxx omitted, based on the actual path

Sudo chmod 755/etc/rc2.d/S03xconfig. sh

Install two more software to enhance the hardware detection capability: Start the mobile hard disk system, set the source, connect to the network, and run the command code:

Apt-get update

Apt-get install discover1 xresprobe

Done.

5. if you do not support USB-HDD boot, you can move the hard disk installed/boot directory, the above menu. put the list file under the machine C: \ and install Grub4dos and change the boot. start and select the modified items.

6. You need to reset the xserver when inserting the mobile hard disk to another machine.

Sudo dpkg-reconfigure xserver-xorg

When starting from HDD, you should add a disk after the kernel and initrd

For example, mine is:

Kernel (hd0, 7)/boot/vmlinuz-2.6.20-16-lowlatency root = UUID = 177430b6-2e85-4674-88c1-029d51aeca13 ro quiet splash

Initrd (hd0, 7)/boot/initrd. img-2.6.20-16-lowlatency book diary, mood.

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.