To make a dual boot with Windows 10 and Oracle Linux 8.9
You can download Windows 10 iso image from the following site
You can download the Oracle Linus 8.9 iso image from the following site
Download Oracle Linux 8.9 ISO image
Download latest rufus software from the internet and make a bootable pendrive for both the windows and linux OS.
First install the Windows 10 OS with the Windows bootable pendrive.
Next install the Linux OS with the Linux bootable pendrive. Once Linux is installed, rebooting the system will directly boot into Linux. To get a dual boot option following need to be done.
As root user edit /etc/grub.d/40_custom file and append to the end the following lines. Make sure not to delete the existing line.
menuentry "Windows 10" {
set root=(hd0,1)
chainloader +1
}
After editing and saving /etc/grub.d/40_custom file run the following command as the root user.
grub2-mkconfig --output=/boot/grub2/grub.cfg
Output will show Generating grub configuration file ...
done
Now on rebooting the system you will get the option to boot into linux or Windows 10. Based on your preference you can boot into either OS.
To view Windows C drive and D drive from Linux
Prerequisites - an internet connection from linux OS.
As root user issue the fdisk -l command
[root@oraclelinux home]# fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xe24bfda0
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1126399 1124352 549M 7 HPFS/NTFS/exFAT
/dev/sda2 1126400 103526399 102400000 48.8G 7 HPFS/NTFS/exFAT
/dev/sda3 103526400 308326399 204800000 97.7G 7 HPFS/NTFS/exFAT
/dev/sda4 308326400 976773119 668446720 318.8G 5 Extended
/dev/sda5 308328448 310425599 2097152 1G 83 Linux
/dev/sda6 310427648 976773119 666345472 317.8G 8e Linux LVM
This shows 2 windows partitons /dev/sda2 and /dev/sda3 of NTFS file system.
Issue the mount command as follows
root@oraclelinux cdrive]# mkdir /home/cdrive
root@oraclelinux cdrive]# mkdir /home/ddrive
root@oraclelinux cdrive]# mount /dev/sda2 /home/cdrive
If you get error as below
mount: /home/cdrive: unknown filesystem type 'ntfs'. -- This indicates linux is unable to identify NTFS file system.
We need to install ntfs-3g package as follows
yum install epel-release
yum install ntfs-3g
After successful install we can map the windows drives as follows
mount /dev/sda2 -t ntfs-3g /home/cdrive
mount /dev/sda3 -t ntfs-3g /home/ddrive
References
https://linuxconfig.org/how-to-install-ntfs-3g-on-redhat-8
Accessing external hard drive from linux
Create a local yum repository from oracle linux 8.9 iso image
create a directory in which you want to mount the iso image of oel 8.9.mkdir /home/temp/oeliso
Mount the iso image of the Oracle Linux 8.9 installation file as follows
mount -o loop /home/softwares/OracleLinux-R8-U9-x86_64-dvd.iso /home/temp/oeliso
Create a local repo file (local.repo) under /etc/yum.repos.d directory
[InstallMedia-BaseOS]
name=Oracle Linux 8.9 - BaseOS
baseurl=file:///home/temp/oeliso/BaseOS
gpgcheck=0
enabled=1
[InstallMedia-AppStream]
name=Oracle Linux 8.9 - AppStream
baseurl=file:///home/temp/oeliso/AppStream
gpgcheck=0
enabled=1
[root@oraclelinux yum.repos.d]# yum clean all
45 files removed
[root@oraclelinux yum.repos.d]# yum repolist all
repo id repo name status
InstallMedia-AppStream Oracle Linux 8.9 - AppStream enabled
InstallMedia-BaseOS Oracle Linux 8.9 - BaseOS enabled
ol8_MODRHCK Latest RHCK with fixes from Oracle for Orac disabled
ol8_UEKR6 Latest Unbreakable Enterprise Kernel Releas disabled
ol8_UEKR6_RDMA Oracle Linux 8 UEK6 RDMA (x86_64) disabled
ol8_UEKR7 Latest Unbreakable Enterprise Kernel Releas enabled
ol8_UEKR7_RDMA Oracle Linux 8 UEK7 RDMA (x86_64) disabled
ol8_addons Oracle Linux 8 Addons (x86_64) disabled
ol8_appstream Oracle Linux 8 Application Stream (x86_64) enabled
ol8_baseos_latest Oracle Linux 8 BaseOS Latest (x86_64) enabled
ol8_codeready_builder Oracle Linux 8 CodeReady Builder (x86_64) - disabled
ol8_developer_EPEL Oracle Linux 8 EPEL Packages for Developmen enabled
ol8_developer_EPEL_modular Oracle Linux 8 EPEL Modular Packages for De enabled
ol8_distro_builder Oracle Linux 8 Distro Builder (x86_64) - Un disabled
ol8_kvm_appstream Oracle Linux 8 KVM Application Stream (x86_ disabled
ol8_u0_baseos_base Oracle Linux 8 BaseOS GA (x86_64) disabled
ol8_u1_baseos_base Oracle Linux 8.1 BaseOS (x86_64) disabled
ol8_u2_baseos_base Oracle Linux 8.2 BaseOS (x86_64) disabled
ol8_u3_baseos_base Oracle Linux 8.3 BaseOS (x86_64) disabled
ol8_u4_baseos_base Oracle Linux 8.4 BaseOS (x86_64) disabled
ol8_u4_security_validation Oracle Linux 8 Update 4 (x86_64) Security V disabled
ol8_u5_baseos_base Oracle Linux 8.5 BaseOS (x86_64) disabled
ol8_u6_baseos_base Oracle Linux 8.6 BaseOS (x86_64) disabled
ol8_u7_baseos_base Oracle Linux 8.7 BaseOS (x86_64) disabled
ol8_u8_baseos_base Oracle Linux 8.8 BaseOS (x86_64) disabled
ol8_u9_baseos_base Oracle Linux 8.9 BaseOS (x86_64) disabled
root@oraclelinux yum.repos.d]# yum install httpd
Oracle Linux 8.9 - BaseOS 20 MB/s | 3.5 MB 00:00
Oracle Linux 8.9 - AppStream 28 MB/s | 8.3 MB 00:00
Oracle Linux 8 EPEL Packages for Development (x86_64) 1.7 MB/s | 65 MB 00:37
Oracle Linux 8 EPEL Modular Packages for Development (x86_64) 894 kB/s | 322 kB 00:00
Oracle Linux 8 BaseOS Latest (x86_64) 2.0 MB/s | 75 MB 00:38
Oracle Linux 8 Application Stream (x86_64) 2.0 MB/s | 59 MB 00:29
Latest Unbreakable Enterprise Kernel Release 7 for Oracle Linux 8 (x86_64) 2.2 MB/s | 35 MB 00:15
Package httpd-2.4.37-62.0.1.module+el8.9.0+90011+2f9c6a23.x86_64 is already installed.
Dependencies resolved.
======================================================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================================================
Upgrading:
httpd x86_64 2.4.37-64.module+el8.10.0+90271+3bc76a16 ol8_appstream 1.4 M
httpd-filesystem noarch 2.4.37-64.module+el8.10.0+90271+3bc76a16 ol8_appstream 43 k
httpd-manual noarch 2.4.37-64.module+el8.10.0+90271+3bc76a16 ol8_appstream 2.4 M
httpd-tools x86_64 2.4.37-64.module+el8.10.0+90271+3bc76a16 ol8_appstream 110 k
mod_ssl x86_64 1:2.4.37-64.module+el8.10.0+90271+3bc76a16 ol8_appstream 140 k
Transaction Summary
======================================================================================================================================================
Upgrade 5 Packages
Total download size: 4.1 M
Is this ok [y/N]: y
[root@oraclelinux yum.repos.d]# dnf install ftp
Last metadata expiration check: 0:18:15 ago on Mon 03 Jun 2024 05:08:10 PM IST.
Dependencies resolved.
===============================================================================
Package Architecture Version Repository Size
===============================================================================
Installing:
ftp x86_64 0.17-78.el8 InstallMedia-AppStream 70 k
Transaction Summary
===============================================================================
Install 1 Package
Total size: 70 k
Installed size: 112 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : ftp-0.17-78.el8.x86_64 1/1
Running scriptlet: ftp-0.17-78.el8.x86_64 1/1
Verifying : ftp-0.17-78.el8.x86_64 1/1
Installed:
ftp-0.17-78.el8.x86_64
Complete!
To create your own rpm repository like
mkdir /temp/rpms
Add all your rpm files to this directory and run
createrepo /temp/rpms
--to test below
if you want to add new rpms to the repolist, copy them to /temp/rpms directory and run
createrepo --update /temp/rpms
or
https://docs.oracle.com/html/E50247_08/vmiug-server-upgrading-add-packages.html
list of useful yum commands
https://access.redhat.com/sites/default/files/attachments/rh_yum_cheatsheet_1214_jcs_print-1.pdf
https://www.tecmint.com/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement/
To install google chrome download the google chrome rpm package. Add the rpm the the local repositroy with the createrepo command. If you get dependencies error during installation run it as follows
[root@linux rpms]# yum localinstall google-chrome-stable_current_x86_64.rpm
Last metadata expiration check: 0:55:47 ago on Sat 06 Jul 2024 04:31:26 PM IST.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
google-chrome-stable x86_64 126.0.6478.126-1 @commandline 106 M
Installing dependencies:
liberation-fonts noarch 1:2.00.3-7.el8 InstallMedia-BaseOS 20 k
Transaction Summary
================================================================================
Install 2 Packages
Total size: 106 M
Installed size: 332 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : liberation-fonts-1:2.00.3-7.el8.noarch 1/2
Running scriptlet: google-chrome-stable-126.0.6478.126-1.x86_64 2/2
Installing : google-chrome-stable-126.0.6478.126-1.x86_64 2/2
Running scriptlet: google-chrome-stable-126.0.6478.126-1.x86_64 2/2
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Resource temporarily unavailable)
error: /tmp/google.sig.GsEeLt: key 1 import failed.
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Resource temporarily unavailable)
error: /tmp/google.sig.GsEeLt: key 2 import failed.
Verifying : liberation-fonts-1:2.00.3-7.el8.noarch 1/2
Verifying : google-chrome-stable-126.0.6478.126-1.x86_64 2/2
Installed:
google-chrome-stable-126.0.6478.126-1.x86_64
liberation-fonts-1:2.00.3-7.el8.noarch
Complete!
References
No comments:
Post a Comment