Professional Documents
Culture Documents
System and Network Administration Operating System Essentials
System and Network Administration Operating System Essentials
Operating System
Essentials
Getting Started
TinyNet
• Comes in two parts
Base.iso (base image)
Config.iso (configuration
and applications)
Device DriverSoftware
SNA:
“User Space”
OSCA:
“KernelSpace”
• OS allocates access to
the hardware (CPU,
memory, etc.) and
controls their use
• Like a government, the
OS performs no useful
function by itself – it
simply provides an
environment for other
programs to do useful
work.
• /home/vmail/mail-pwd
– Username:Password
– not a system login
• maintained by sysadmin
• verified by dovecot
Physical:
• Track
• Sector
• Cylinder
Logical:
• Partition
• Cluster
• The master boot record (MBR) is the first sector of a hard disk
It includes The
a table that diagram
contains shows a
information disk with
about each two primary
partition partitions
The MBR also includes a program that reads the boot sector
record of the partition containing the operating system into RAM.
System & Network Administration
Multiple Operating Systems –
Boot Managers
• Usually unique to OS
windows: FAT, FAT32, NTFS
linux: ext2, ext4,
linux is one huge computer science project!
• Physical sectors grouped into allocation units
called blocks in Unix and clusters in Windows
• Building File System - mkfs or format
boot sector, data area, free list
Allowable
Maximum Maximum Maximum
File characters in Maximum
filename MBR pathname volume
system directory file size
length length size
entries
32,767 Unicode
Depends on
255 0x07 characters with
NTFS namespace 16 EB 16 EB
characters each path up to
used
255 characters
Any byte
except values
0-31, 127 and:
0x0B "*/:<>?\|+
FAT32 8.3 No limit defined 2 GB 2 TB
0x0C , . ; = []
(lowcase a-z
are stored as
A-Z).
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 /
• umount /mnt/hostshare
– cannot unmount a busy filesystem
– show open files on a filesystem: lsof
cd /etc
cd foo
cd ..
mv foo ofo rename
mv ofo /var/opt move
cd /var/opt/ofo
./myscript.sh execute a file stored here