Site Tools


notes:lpic-1_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:lpic-1_notes [2026/06/04 23:15]
47.79.10.25 old revision restored (2026/05/30 08:10)
notes:lpic-1_notes [2026/06/07 20:33] (current)
114.119.135.37 old revision restored (2014/02/13 01:31)
Line 92: Line 92:
   * Knowledge of basic features of LVM   * Knowledge of basic features of LVM
   * Terms: / (root) filesystem, /var filesystem, /home filesystem, swap space, mount points, partitions   * Terms: / (root) filesystem, /var filesystem, /home filesystem, swap space, mount points, partitions
- 
-==Notes== 
- 
-  * choosing a disk layout for linux depends on amount of disk space, purpose of the system, size of the system and backup strategy. Some general guidelines are 
-    * If diskspace is limited, just /boot, / and /swap 
-    * /boot is a separate 50MB partition because older kernels/BIOS require kernels under a 1024 cylinder limit. 
-    * For larger systems keep / smaller/simpler to reduce risk of corruption. 
-    * Can use separate partitions for /var (to isolate system logs), /tmp (to isolate tempfiles), /home (for backup and RAIDing of user's data) 
-    * Using a separate partition for /usr allows it to be shared via read-only NFS which allows for saving space and easier maintenance of apps/updates. 
-  * Superblock on filesystem contains critical metadata so multiple redundant copies are kept. 
-  * Filesystems must be mounted (listed in filesystem table) before being accessible. /etc/fstab is a list of filesystems to mount on boot up. 
-  * Master Boot Record on first 512 bytes of first sector of disk contains info on partitions and bootup. Can be backed up and restored with <code> 
-dd if=/dev/hda of=~/mbr.txt count=1 bs=512 
-dd if=~/mbr.txt of=/dev/hda count=1 bs=512 
-</code> 
-  * To backup/restore just the partition layout, use sfdisk <code> 
-sfdisk -d /dev/hda > partition_backup.txt 
-sfdisk /dev/hda < partition_backup.txt 
-</code> 
-  * Linux may also be booted from Live USB which allows for persistent modifications. If the BIOS does nto support this, a bootable CD can be used first. 
-  * Swap space allows main memory to be temporarily copied to disk. As a starting point set swap to twice the memory size (at least the same size). 
  
 === 102.2 Install a boot manager (LCN-5 CTL-5) === === 102.2 Install a boot manager (LCN-5 CTL-5) ===
Line 120: Line 99:
   * Interact with the boot loader   * Interact with the boot loader
   * Terms: /boot/grub/menu.lst, grub.cfg and other variations, grub-install, MBR, superblock   * Terms: /boot/grub/menu.lst, grub.cfg and other variations, grub-install, MBR, superblock
- 
-==Notes== 
- 
-  * BIOS looks for and runs boot loader from first specified boot device. 
-  * Boot loader find and loads specified kernel (with specified kernel options) which loads required modules and starts system processes. 
-  * LILO is a 2-stage program 
-    * First stage is in 512-byte MBR or in the boot sector of a partition (if it is a secondary boot loader). 
-    * Second stage is in /boot/boot.b . 
-    * Map file locating kernel is in /boot/map 
-    * //lilo// command reads /etc/lilo.conf which contains kernel image locations, kernel options, the default boot disk etc. It encodes this information along with physical disk information and writes it into the boot files (MBR/boot-sector, boot.b and map). 
-  * GRUB is a multi-stage boot loader, more flexible than LILO. 
-    * Changes take effect immediately. 
-    * (hd0,1) -> 2nd partition on the 1st hard disk. Refers only to the order of the disks as seen by the BIOS so order may change if BIOS boot order is changed. 
-    * //grub-install// writes to MBR/boot sector. Uses/boot/grub/device.map to map BIOS drives to Linux devices e.g. "(hd0)   /dev/sda". 
-    * Grub command-line expects a specific order of commands to boot kernel <code>grub> root (hd0,0) 
-grub> kernel /vmlinuz-2.4.18-14 ro root=/dev/hda2 
-grub> initrd /initrd-2.4.18-14.img  [optional] 
-grub> boot</code> 
  
 === 102.3 Manage shared libraries (LCN-5 CTL-2) === === 102.3 Manage shared libraries (LCN-5 CTL-2) ===
Line 156: Line 117:
   * Determine what files a package provides, as well as find which package a specific file comes from   * Determine what files a package provides, as well as find which package a specific file comes from
   * Terms: rpm, rpm2cpio, /etc/yum.conf, /etc/yum.repos.d/, yum, yumdownloader   * Terms: rpm, rpm2cpio, /etc/yum.conf, /etc/yum.repos.d/, yum, yumdownloader
 +
 ==== 103 GNU / Unix Commands 43%   ==== ==== 103 GNU / Unix Commands 43%   ====
  
notes/lpic-1_notes.1780640141.txt.gz ยท Last modified: 2026/06/04 23:15 by 47.79.10.25