03 Bootdisk Virtual Box and Partition
03 Bootdisk Virtual Box and Partition
Chapter 03
Introduction to Linux and Systems Administration
• Precompiled code
– Software is provided as ready-to-run binaries, eliminating the need for manual compilation.
• Complete application and supporting files
– Packages include all necessary components for the software to function properly.
• Includes documentation
– Manuals and guides are provided to help users install and use the software
• Assembled for specific package managers
– Software is packaged for compatibility with either Red Hat (RPM) or Debian-based (DEB) systems
• Stored in repositories
– Packages are kept in online storage locations, allowing secure and easy installation via package
managers
• cd wget-1.21.1
3. Run ./configure to create the makefile
• ./configure
4. Run make to execute the instructions in the makefile
• make
5. Run make install to install the software
• sudo make install
Data In MBR, no backup formed to retrieve data. In this, it is automatically repaired through
Redundancy Any data redundancy cannot be altered. CRC (Cyclic Redundancy Check).
Versions All the operating system versions support All versions of operating systems support GPT,
support MBR. but their 64 -bit versions should allow booting
from GPT disk when UEFI mode is enabled.
Allowable
Maximum Maximum
File characters in Maximum Maximum
filename MBR pathname
system directory file size volume size
length length
entries
Any byte
No limit
ext3 255 bytes 0x83 except NUL 2 TB 32 TB
defined
and /
Any byte
No limit
ext4 255 bytes 0x83 except NUL 16 TB 1 EB
defined
and /
• Old PC uses MBR partitioning to boot up windows. • Now modern Operating system use GPT partition which is lot
• This sector contains a boot loader for the installed operating more faster than traditional MBR partition.
system and information about the drive’s logical partitions. • GPT uses UEFI (UNIFIED EXTENDED FIRMWARE INTERFACE)
• The boot loader is a small bit of code that generally loads the to boot up windows. On an MBR disk, the partitioning and
larger boot loader from another partition on a drive. If you boot data is stored in one place. If this data is overwritten or
have Windows installed, the initial bits of the Windows boot corrupted, you’re in trouble. In contrast, GPT stores multiple
loader reside here—that’s why you may have to repair your copies of this data across the disk, so it’s much more robust
MBR if it’s overwritten and Windows won’t start. If you have and can recover if the data is corrupted.
Linux installed, the GRUB boot loader will typically be located
in the MBR. GPT also stores cyclic redundancy check (CRC) values to
check that its data is intact. If the data is corrupted, GPT can
Limitation: notice the problem and attempt to recover the damaged data
MBR only works with disks up to 2 TB in size. MBR also only from another location on the disk. MBR had no way of
supports up to four primary partitions—if you want more, you knowing if its data was corrupted—you’d only see there was
have to make one of your primary partitions an “extended a problem when the boot process failed or your drive’s
partition” and create logical partitions inside it. partitions vanished
• A Linux Kernel module is a code segment that can be loaded and unloaded into
the Linux kernel to extend its functionality. Modules are used to add support for
new filesystems, hardware, and system calls.
• Extends kernel functionality
• Dynamically or manually loaded and unloaded
• Reduce the burden on the kernel because otherwise all of the modules’
functionality would have to be added directly to the kernel.
• Dynamic loading of kernel modules facilitates lower memory consumption.
• Avoid having to rebuild and reboot the system when new functionality is
required.
• GRUB (GRand Unified Bootloader) is a boot loader package developed to support multiple operating
systems and allow the user to select among them during boot-up.
• GRUB versions
• GRUB was created by Erich Stefan Boleyn and has been further developed under the GNU project as GNU
GRUB. The original package is still available for download but no longer being developed.
• GRUB2 has replaced what was formerly known as GRUB (i.e. version 0.9x), which has, in turn, become GRUB
Legacy. Enhancements to GRUB2 are still being made, but the current released versions are quite usable for
normal operation.
• How does GRUB work?
• When a computer boots, the BIOS transfers control to the first boot device, which can be a hard disk, a
floppy disk, a CD-ROM, or any other BIOS-recognized device.