80 likes | 136 Views
File Systems. Superblock. First item to be read Disk's geometry Avaliable space Location of the first i-node Mutiple copies of superblock Placed at the end of every group of blocks Group = 8192 blocks Redendant superblocks @ 8193, 16385. File Systems .
E N D
Superblock First item to be read Disk's geometry Avaliable space Location of the first i-node Mutiple copies of superblock Placed at the end of every group of blocks Group = 8192 blocks Redendant superblocks @ 8193, 16385
File Systems Once established - not much maintenance Geo-political problems Ownership of disk Users who do not perform housekeeping Administrative policies
Mounting & Unmounting Local Disks Disk layout of dual boot system /dev/hda1(2) - Win9x filesystem /dev/hda3 - Linux partition To mount/unmount floppy drive Mount -t vfat /dev/fd0 /mnt/floppy Umount /mnt/floppy - before ejecting floppy In dual boot - to mount/unmount Win9x partition Mount /dev/hda1 /mnt/win98 Umount /mnt/win98
Partitioning a Disk Divides the disk up Each partition acts like a disk Once partition is full - cannot "overflow" Reasons to partition Dual boot system Keep usage of space on one partition from impacting another partition Operating system Home directories
Paritioning a Disk IDE disks /dev/hdX, where X=a -z, the actual disk /dev/hda1 - first partition on the first IDE disk /dev/hda2 - second partition on the first IDE disk /dev/hdb1 - first partition of the second IDE disk SCSI disks /dev/sdX, where X=a-z, the actual disk /dev/sda1 - first partition on the first SCSI disk /dev/sdc2 - second partition on the third SCSI disk
Disk Partitions / - root partition, core system files /usr - system software such as user tools /var - files that change a lot - message logs /tmp - similar to /var /home - user home directories Swap - to hold virtual memory - usually the same size as system RAM
Automounter (NIS/NFS) Used in large installations A method by which the filesystem mounts can be centrally controled Automounter map is distributed by NIS Daemon - /etc/rc.d/init.d/autofs Primary configuration file /etc/auto.master