TEXT 28
System Admin Class 2 Guest on 15th October 2022 11:32:11 AM
  1. linux booting, 6 steps, which include bios, mbr, grub, kernel, init, runlevel
  2. bios determines the OS to boot
  3. BIOS executes the MBR
  4. MBR - finds the bootable partition and allows the selection of kernel
  5. MBR is less than 512 bytes, and it stores every OS information.
  6. MBR is the first sector of the bootable device
  7. MBR executes the GRUB Boot loader
  8. init executes run level programs
  9.  
  10. init and runlevel are performed by systemd in latest Linux operating system such as RockyLinux
  11.  
  12. GRUB contains the kernel information
  13.  
  14. /fstab - consists of the information which drive or device to be mounted
  15. fstab = file system tab
  16.  
  17. GRUB boots from /boot
  18. the first partition, sda1
  19. The first thing it mounts is the / partition
  20. init is the first program which is executed by the kernel
  21.  
  22. systemctl is used for starting, restarting the services
  23. service can also be used
  24.  
  25. initrd or initramfs is a temporary file system for root until the kernel is booted. To mount the /
  26. Linux consists of the run levels
  27. 0. halt
  28. 1. single user mode
  29. 2. multi user without Network file share
  30. 3. full multiuser mode (normal mode)
  31. 4. unused
  32. 5. X11 (graphical user interface)
  33. 6. reboot
  34.  
  35. systemctl enable and disable - means enabling and disabling it from boot
  36.  
  37. systemctl list-units
  38. to see all the list of services
  39.  
  40. file system of linux
  41. XFS - supports large amount of drives, but it is slow
  42. EXT2, EXT3, EXT4 - less capacity supported as compared to XFS but faster - widely used
  43. btrfs = butter fs, suse operating system
  44. tmpfs = temporary file system
  45. zfs = zeta file system, supports storage up to zeta bytes
  46.  
  47. ext2 does not support journaling
  48. but ext3 supports journaling, prevents chances of corruption when system crashes
  49.  
  50. journaling - stores the information of changes performed in the drive
  51.  
  52. superblock - information of inodes is stored by the superblock
  53.  
  54. when superblock is lost, it is almost impossible to recover it
  55. however when block is lost, it is possible to recover it through superblock and inodes.
  56.  
  57. inode is an individual file or a folder, no meta info is stored in inode
  58.  
  59. to create file system:
  60. mkfs and tab can be pressed for finding all the file system
  61.  
  62. lsblk = to list all the storage drives

Coding Base is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.