Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ How to use GRUB2 files directly from the hard disk to run ISO     - DataGuard the MRP can not start to analyze and solve problems (Database)

- How to use the command line ftp upload and download files (Linux)

- Linux Security trust with users (Linux)

- CentOS 6 adds disk quota limit (Linux)

- 20+ Best Practices article MySQL Performance Optimization (Database)

- JavaScript prototype and prototype chain and project combat (Programming)

- Linux file compression and file system packaged with instructions (Linux)

- Linux System Getting Started Tutorial: Five image processing software (Linux)

- C language keywords Comments (Programming)

- PSUADE installation under Linux (Linux)

- Improve WordPress performance (Server)

- Based Docker build stand-alone high-availability cluster Hadoop2.7.1 Spark1.7 (Server)

- To delete the directory and all specified files under the Mac (Linux)

- Python script running in the background (Programming)

- The minimum initial use of the Linux operating system RancherOS feelings (Linux)

- How screenshots from the Linux command line (Linux)

- Oracle archive log size than the size of the online journal of the much smaller (Database)

- OpenSSL: implementation creates a private CA, certificate signing request Explanation (Server)

- JavaScript is implemented without new keywords constructor (Programming)

- Linux dual physical network card set to a virtual NIC (Linux)

 
         
  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

/etc/grub.d40-custom

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.
     
         
         
         
  More:      
 
- Linux cd command Detailed (Linux)
- To read the Linux ext3 / ext4 format partitions under Windows system software (Linux)
- namespace mechanism Linux kernel analysis (Linux)
- Linux Getting Started tutorial: Experience KVM Virtual Machine chapter (Linux)
- Nginx request processing (Server)
- SSH service configuration to use a certificate login Linux server (Server)
- GitLab remote backup of Linux Shell Scripting (Linux)
- How to install Gnome 3.10 in Ubuntu 13.10 (Linux)
- To record command input under Linux (Linux)
- Linux itself disguised illusion strengthen security (Linux)
- Android HTTP request with Get Information (Programming)
- Java in the final qualifier (Programming)
- Linux novice common commands (Linux)
- Linux firewall anti-hacker disguise malicious attacks (Linux)
- Using Lua implement various operations list (Programming)
- Oracle 11g modify MEMORY_TARGET (Database)
- The multiplexed signal driving IO (Programming)
- Linux install Maven and SVN client (Linux)
- Xtrabackup creates a slave node without downtime (Database)
- Install Ubuntu open source drawing program MyPaint 1.2.0 (Linux)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.