Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ How to use GRUB2 files directly from the hard disk to run ISO     - LMMS 1.03 install on Ubuntu 14.04 (Linux)

- Linux Network Programming - libnet Guide (Programming)

- Use smem visual display Linux memory usage (Linux)

- Java data structures - order linear form of table ArrayList (Programming)

- KVM virtualization of nested virtualization (Linux)

- CentOS 6.5 can not connect to the network under VMware (Linux)

- Use HugePages optimize memory performance (Database)

- The Linux firewall is configured to use proxy (Linux)

- Linux dd command applies amplification SWAP partition (Linux)

- Limit the use of the request being Nginx Flood attack (Linux)

- BCP importing and exporting large amounts of data Practice (Database)

- Java look and feel mode (Facade mode) (Programming)

- Implement Oracle dynamic registration of non-standard port 1521 (Database)

- HA-Federation-HDFS + Yarn cluster deployment (Server)

- Dell R710 server disk recovery database one case (record) (Server)

- A well-known but rarely used skills: object pool (Programming)

- How to install CentOS CentOS web page (Server)

- Xshell configure SSH free password (Server)

- VMware clone Linux find eth0 (Linux)

- Simple to use multi-threaded programming under Linux mutex and condition variable (Programming)

  How to use GRUB2 files directly from the hard disk to run ISO
  Add Date : 2017-01-08      
  Most Linux distributions will be able to boot from a USB live environment, so that users can test the system without having to install. We can use it to review the release or simply as a one-time system, and it is easy to copy these files to a U disk, in some cases, we may need to frequently run the same or different ISO images. GRUB 2 can be configured to run directly from the Start menu, a live environment without the need to burn the ISO to a hard drive or USB device.

Obtain and inspect bootable ISO image

In order to get the ISO image, we usually should visit our download architecture-compatible image files required for this release of the site. If the image can boot from the U disk, then it should be able to boot from the GRUB menu.

When the image download is complete, we should check it with MD5 checksum integrity. This will output the sequence of a long list of numbers and letters synthetic.

This sequence will be provided with the download page MD5 checksum comparison, the two should be identical.

Configuring GRUB 2

ISO image file contains the entire system. We need to do is just tell GRUB 2 where to find the kernel and initramdisk or initram file system (depending on the release we use).

In the following example, a KUbuntu 15.04 live environment will be configured to Ubuntu 14.04 machine Grub boot menu item. This should run on most new to Ubuntu-based systems. If you want to implement other systems and some other things, you can learn more details from these files, but it will require you to have a little experience with GRUB.

This example file kubuntu-15.04-desktop-amd64.iso located on / dev / sda1 is / home / maketecheasier / TempISOs / on.

In order to GRUB 2 you can find it right that we should edit


menuentry "Kubuntu 15.04 ISO" {
set isofile = "/ home / maketecheasier / TempISOs / kubuntu-15.04-desktop-amd64.iso"
loopback loop (hd0,1) $ isofile
echo "Starting $ isofile ..."
linux (loop) /casper/vmlinuz.efi boot = casper iso-scan / filename = $ {isofile} quiet splash
initrd (loop) /casper/initrd.lz

Analysis of the above code

First, we set up a variable name $ menuentry, which is the location of the ISO file. If you want to change a ISO, you should modify isofile = "/ path / to / file / name-of-iso-file-.iso".

The next line is designated loopback device, and must be given the correct partition numbers.

loopback loop (hd0,1) $ isofile
Note hd0,1 very important here, it means the first hard disk, first partition (/ dev / sda1).

GRUB naming a little confused here, for the hard disk, it from "0" to start counting, the first piece of hard disk # 0, the second block is # 1, # 2, the third block, and so on. But for the partition, it from "1" starts counting, the first partition is # 1, # 2 for the second partition, and so on. Maybe there is a good reason, but certainly not wise (obviously user experience is very bad) ..

First hard drive in Linux, the first partition is / dev / sda1, but in the GRUB2 is hd0,1. Second hard drive, third partition is hd1,3, and so on.

The next important line is:

linux (loop) /casper/vmlinuz.efi boot = casper iso-scan / filename = $ {isofile} quiet splash
This will load the kernel image, the new Ubuntu Live CD, the kernel is stored in the / casper directory, and named vmlinuz.efi. If you are using other systems, there may be no .efi or kernel extension is stored elsewhere (you can use the Archive Manager to open the ISO file to find confirmation in / casper in). The last option, quiet splash, is a conventional GRUB options to change or not change the matter.

At last

initrd (loop) /casper/initrd.lz
This loads the initrd, which is responsible for starting to load into memory RAMDisk.

Start live system

Done all the steps above, you need to update GRUB2:

sudo update-grub

After rebooting the system, you should be able to see a new, and allows us to start GRUB entry just configured ISO image

Select the new entry allows us to start like a live environment from the same DVD or U disk.
- ORA-38856: Unable instance UNNAMED_INSTANCE_2 (redo thread 2) marked enabled (Database)
- Python exception summary (Programming)
- Linux Log (Linux)
- Oracle ordinary users show parameter method (Database)
- Some security configuration of Linux systems (Linux)
- Use web2py + uWSGI + Nginx Web server built on Linux (Server)
- Ubuntu system safe and caution sudo su command (Linux)
- How to compare PDF files on Ubuntu (Linux)
- Hadoop new and old version of the difference in the size of the InputSplit (Server)
- Linux common network tools: Scan routing of mtr (Linux)
- The SVN installation, configuration and start - up under Linux (CentOS 6.5) (Server)
- Firewall Configuration Red Hat Enterprise Linux 4 (Linux)
- Ubuntu Gitolite management Git Server code base permissions (Server)
- Linux filtration empty file command summary (Linux)
- Oracle 11g RAC root.sh execution error second node failure example (Database)
- Java garbage collection and heap memory layout (Programming)
- Ubuntu clean up unnecessary disk space usage (Linux)
- Talk about jsonp (Programming)
- Samhain: Powerful intrusion detection system under Linux (Linux)
- Sublime Text Add instructions to insert the current time zone (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.