How to Install NGEL on Hard Disk ?

The NGEL installation script is completed. The system can be installed by invoking the application “Install NGELinux on your hard disk” from your desktop.

Or from command line you can run below script to install the OS to your laptop hard disk.

NGELinux Logo

Stay Tuned Here !!!

The almost complete output of the script can be seen as below:

[root@nglinux ~]# NGELINUX_HARDDISK_INSTALL 
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: 21.5 GB, 21474836480 bytes
2. Other
1
Selected Disk /dev/sda
Checking partitioning on the disk....
The disk is labeled and have below partitions:

Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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: 0x00000000

Enter partition on which you want to install the NGE Linux or just press enter to create partition and use this complete hard disk ?

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xb2e4a31e.
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): Building a new DOS disklabel with disk identifier 0xacc486c9.
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-2610, default 1): Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-2610, default 2610): Using default value 2610

Command (m for help): Partition number (1-4): 
Command (m for help): 
Disk /dev/sda: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 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: 0xacc486c9

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2610    20964793+  83  Linux

Command (m for help): The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
Now we will format the selected disk /dev/sda1 in ext4 format
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1310720 inodes, 5241198 blocks
262059 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
160 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks: 
	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
	4096000

Writing inode tables: done                            
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
Creating Directory /mnt/nglinux
mkdir: created directory `/mnt/nglinux'
Successfully created directory /mnt/nglinux
Now mounting the filesystem ....
/dev/sda1 on /mnt/nglinux type ext4 (rw)
mount: /mnt/nglinux does not contain SELinux labels.
       You just mounted an file system that supports labels which does not
       contain labels, onto an SELinux box. It is likely that confined
       applications will generate AVC messages and not be allowed access to
       this file system.  For more details see restorecon(8) and mount(8).
Successfully mounted the new filesystem /dev/sda1 on /mnt/nglinux
`/home' -> `/mnt/nglinux/home'
`/home/nglinux' -> `/mnt/nglinux/home/nglinux'
`/home/nglinux/.viminfo' -> `/mnt/nglinux/home/nglinux/.viminfo'
`/home/nglinux/.dbus' -> `/mnt/nglinux/home/nglinux/.dbus'
`/home/nglinux/.dbus/session-bus' -> `/mnt/nglinux/home/nglinux/.dbus/session-bus'
`/home/nglinux/.dbus/session-bus/1b43af72556a34bd3024e1cf00000021-0' -> `/mnt/nglinux/home/nglinux/.dbus/session-bus/1b43af72556a34bd3024e1cf00000021-0'
`/home/nglinux/.mozilla' -> `/mnt/nglinux/home/nglinux/.mozilla'


`/selinux/booleans/allow_user_exec_content' -> `/mnt/nglinux/selinux/booleans/allow_user_exec_content'
`/selinux/booleans/allow_sysadm_exec_content' -> `/mnt/nglinux/selinux/booleans/allow_sysadm_exec_content'
`/selinux/booleans/allow_ftpd_full_access' -> `/mnt/nglinux/selinux/booleans/allow_ftpd_full_access'
`/selinux/booleans/allow_domain_fd_use' -> `/mnt/nglinux/selinux/booleans/allow_domain_fd_use'
`/selinux/policy' -> `/mnt/nglinux/selinux/policy'
`/selinux/status' -> `/mnt/nglinux/selinux/status'
`/selinux/deny_unknown' -> `/mnt/nglinux/selinux/deny_unknown'
`/selinux/reject_unknown' -> `/mnt/nglinux/selinux/reject_unknown'
`/selinux/checkreqprot' -> `/mnt/nglinux/selinux/checkreqprot'
`/selinux/member' -> `/mnt/nglinux/selinux/member'
`/selinux/disable' -> `/mnt/nglinux/selinux/disable'
cp: reading `/selinux/disable': Invalid argument
`/selinux/mls' -> `/mnt/nglinux/selinux/mls'
`/selinux/commit_pending_bools' -> `/mnt/nglinux/selinux/commit_pending_bools'
cp: reading `/selinux/commit_pending_bools': Invalid argument
`/selinux/policyvers' -> `/mnt/nglinux/selinux/policyvers'
`/selinux/user' -> `/mnt/nglinux/selinux/user'
`/selinux/relabel' -> `/mnt/nglinux/selinux/relabel'
`/selinux/create' -> `/mnt/nglinux/selinux/create'
`/selinux/access' -> `/mnt/nglinux/selinux/access'
`/selinux/context' -> `/mnt/nglinux/selinux/context'
`/selinux/enforce' -> `/mnt/nglinux/selinux/enforce'
`/selinux/load' -> `/mnt/nglinux/selinux/load'
cp: reading `/selinux/load': Invalid argument
All files copied, now syncing filesystems....
Selinux files copied...
Now removing old device map
Turning on the boot flag on partition....
Error: Expecting a partition number.                                      
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy).  As a result, it may not reflect all of your changes until after reboot.
Warning: Unable to open /dev/sr0 read-write (Read-only file system).  /dev/sr0 has been opened read-only.
Boot Flag Set.
Now creating fstab file
FSTAB file updated...
Now installing GRUB on hard disk to boot the system
Probing devices to guess BIOS drives. This may take a long time.
Installation finished. No error reported.
This is the contents of the device map /mnt/nglinux/boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0)	/dev/fd0
(hd0)	/dev/sda
Now re-creating GRUB File
Now creating the grub file....
GRUB File created successfully....
FSTAB File also created...
Done everything, checking filesystem if properly setup...
Congratulations !! Your System is now installed on disk /dev/sda on partition /dev/sda1 and everything setup. :)
Press any key to exit

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments