Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Computer Science
ITC and RUPP in Cambodia
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Filesystem Labels
Mount points & /etc/fstab
Mount & Umount
Handing Swap files and Partitions
Hard Disk type IDE (hda, hdb), SCSI or Sata (sda, sdb)
Partition id Linux swap, Linux, Linux LVM, RAID, DOS
Partition type Primary, Extended and Logical
Partition has each size sectors, blocks or cylinders
Starting cylinder for partition - 1 cylinder is about 8 MB
Number of cylinders for partition
# partprobe
# kpartx a /dev/sda ; kpartx l /dev/sda
2. Unmounting filesystems
umount [options] device | mount_point
# umount /data
a. cannot unmount a filesystem that is in use
b. Use the remount option to change a mounted filesystem's options
atomically
# mount -o remount,ro /data
Summary
Five steps to control linux filesystems
1. Bios recognition
2. Creating partitions fdisk, gparted, sfdisk
3. Making filesystem for new partition - mkfs
4. Labeling new partitions e2label
5. Mounting and using new filesystem mount,
/etc/fstab