NGLinuxInstall Tool: Install(Copy) any Linux Live OS CD/DVD to your hard drive.
26th June 2019
Note:- Created and Tested for Redhat/Centos 7 & 6 Linux and not for deb/ubuntu based system.
NGLinuxLive.sh Tool
I. Download Tool
[root@nglinux ]# wget --auth-no-challenge http://ngelinux.com/scripts/NGLinuxLive.sh ; \ chmod +x ./NGLinuxLive.sh;
OR,
For downloading all scripts and components to transfer to a offline system. [root@nglinux ]# wget --auth-no-challenge http://ngelinux.com/scripts/NGLinuxLive.sh ; \ wget --auth-no-challenge http://ngelinux.com/scripts/NGLinuxInstall; \ wget --auth-no-challenge http://ngelinux.com/scripts/NGLinuxInstall_x64; \ chmod +x NGLinux*;
After download, run the script like below:
[root@nglinux ]# ./NGLinuxLive.sh ;
II. Writing LiveCD to our Hard drive
a. Successful attempt
[root@nglinux ~]# wget --auth-no-challenge http://ngelinux.com/scripts/NGLinuxLive.sh --2019-06-21 04:52:01-- http://ngelinux.com/scripts/NGLinuxLive.sh Resolving ngelinux.com... 104.152.168.40 Connecting to ngelinux.com|104.152.168.40|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 18996 (19K) [application/octet-stream] Saving to: `NGLinuxLive.sh' 100%[============================================================================>] 18,996 53.8K/s in 0.3s 2019-06-21 04:52:03 (53.8 KB/s) - `NGLinuxLive.sh' saved [18996/18996] [root@nglinux ~]# chmod +x NGLinuxLive.sh [root@nglinux ~]# ./NGLinuxLive.sh --2019-06-26 07:53:02-- http://ngelinux.com/scripts/NGLinuxInstall Resolving ngelinux.com... 104.152.168.40 Connecting to ngelinux.com|104.152.168.40|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 18996 (19K) [application/octet-stream] Saving to: `NGLinuxInstall' 100%[==============================================================>] 18,996 56.9K/s in 0.3s 2019-06-26 07:53:04 (56.9 KB/s) - `NGLinuxInstall' saved [18996/18996] --2019-06-26 07:53:04-- http://ngelinux.com/scripts/NGLinuxInstall_x64 Resolving ngelinux.com... 104.152.168.40 Connecting to ngelinux.com|104.152.168.40|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 26496 (26K) [application/octet-stream] Saving to: `NGLinuxInstall_x64' 100%[==============================================================>] 26,496 77.7K/s in 0.3s 2019-06-26 07:53:06 (77.7 KB/s) - `NGLinuxInstall_x64' saved [26496/26496] Welcome to NGE Linux Hard Disk Install Utility This utility can be run only as root or by nglinux user Here we will install the NGE Linux Live OS to our system hard disk. The script supports by default creating partitions on complete disk and then install the system on it, or you can create partitions using gparted graphical utility and mention the partition for installation. FIRST SELECT THE DISK ON WHICH YOU WANT TO INSTALL NGE LINUX ? Select the disk for installation 1. Disk /dev/sda: 8589 MB, 8589934592 bytes 2. Disk /dev/sdb: 8589 MB, 8589934592 bytes 3. Other
b. Unsuccessful Attempt
In case device is used/mounted.
[root@nglinux ]# ./NGLinuxLive.sh Welcome to NGE Linux Hard Disk Install Utility This utility can be run only as root or by nglinux user Here we will install the NGE Linux Live OS to our system hard disk. The script supports by default creating partitions on complete disk and then install the system on it, or you can create partitions using gparted graphical utility and mention the partition for installation. FIRST SELECT THE DISK ON WHICH YOU WANT TO INSTALL NGE LINUX ? Select the disk for installation 1. Disk /dev/sda: 8589 MB, 8589934592 bytes 2. Disk /dev/sdb: 8589 MB, 8589934592 bytes 3. Other 2 Selected Disk /dev/sdb Checking partitioning on the disk.... The disk is labeled and have below partitions: Disk /dev/sdb: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xca3e1f38 Device Boot Start End Blocks Id System /dev/sdb1 * 1 1044 8385898+ 83 Linux Enter partition on which you want to install the NGE Linux or just press enter to create partition and use this complete hard disk ? WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): Building a new DOS disklabel with disk identifier 0x649e486a. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): Command action e extended p primary partition (1-4) Partition number (1-4): First cylinder (1-1044, default 1): Using default value 1 Last cylinder, +cylinders or +size{K,M,G} (1-1044, default 1044): Using default value 1044 Command (m for help): Partition number (1-4): Command (m for help): Disk /dev/sdb: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x649e486a Device Boot Start End Blocks Id System /dev/sdb1 * 1 1044 8385898+ 83 Linux Command (m for help): The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 16: Device or resource busy. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks. Now we will format the selected disk /dev/sdb1 in ext4 format mke2fs 1.41.12 (17-May-2010) /dev/sdb1 is mounted; will not make a filesystem here! Error encountered in formatting the disk Please review if filesystem is not used and if required report above error to NGELINUX.com for support [root@nglinux ]#
How to resolve ?
The most common issue we face is that the partition was already mounted on /mnt/nglinux.
This occurs when we run the install before and it was terminated abnormally.
To resolve this issue, we can umount the partition and run the script again.
#### Umount the partition # umount /mnt/nglinux #### Run the tool again. # ./NGLinuxLive.sh
Example of Installation of Fedora 30
1. System is booted with DVD and we have below stats.
2. Now script is executed below.
3. After script gets completed, remove DVD & reboot the system to see status below.
4. Verify the installed OS.