Fstab Linux: Debian, Mandrake, Mandriva Suse . fstab , . NFS , , , , NFS , .
FSTAB
, , , . SATA sda, sdb . sda1 sda2. IDE hda, hdb, hda1, hda2. /dev. , , fdisk . , , sda :
fdisk / dev / sda.
fdisk, . p . .
fstab. . : , .
/dev/sda3, , , , , /media/DATOS. - ntfs fstab- . . 0.
man pages
Auto, , noauto. Exec , , . , - noexec.
Rw, , , ro. Uid- fstab , . , , /etc/passwd.
, Gid . gid- /etc/groups. Fmask - umask , . , , . , , home , , uid , git .
Dmask - fstab , . , , , .
mount
, , mount, a , fstab . :
$ sudo umount –a.
, , , , fuse :
$ sudo fuse -m / dev / sda3.
PID , . , :
$ sudo kill -9 7418$ sudo umount -a$ sudo mount -a.
a ls. , Home , .
fstab
/ etc / fstab cifs fstab , , . systemd .
mount, , , , . , fstab.
, .
, Linux , fstab . , / dev, hd, sd, fd .
- , , .
, , :
- EXT4 - Linux .
- EXT3 - Linux, .
- EXT2 - Linux, .
- NTFS - Windows, NT 7.
- VFAT - Windows, 95, FAT32, USB , .
- NFS - , SUN Solaris.
- ISO9660 - , CD DVD.
- JFS - IBM, .
- SWAP - Exchange, Linux.
- XFS - , Silicon Graphics.
- UFS - , BSD.
- , .
:
- Async - .
- Sync - .
- Auto - .
- Exec - .
- Gid - .
- Noauto - , .
- Nouser - root.
- Ro - .
- Rw - .
- Suid - setuid, .
- Uid - .
- Umask - , .
- Dump - , , 0 1, , , - dump.
- Revision - , , fsck; , 0 - , 1 - .
UUID - , . , BIOS . :
, BIOS .
, , :
$ lsblk –f.
, Run lsblk –f, . lsblk –f .
, , UUID =. UUID , :
$ lsblk -no UUID / dev / sda2.
Systemd
RedHat / etc / fstab. 7 systemd . , , . , - systemd, , .
/ etc / fstab; .
:
- What = () - , .
- Where= () - , . . , . , .
- Type=() - , , .
, , .
, unit files, find . systemd , , . , /run/systemd/generator , systemd.
, , :
man systemd-fstab-generatorman systemd.generator
nfs
, NFS, /usr/local/pub/pub nfs rsize = 8190, wsize = 83000, timeo = 16, intr
fstab:
- Resize = n, , , NFS. , , , 1024 . , rsize = 8192.
- Wsize = n, , . , , , 1024 , , wsize = 8192.
- Acregmin = n, , . , 3 .
- Acregmax = n, , . , , - 60 .
- Acdirmin = n, , . 30 .
- Retry = n, , NFS, 10000 .
- Nam n = n, , NFS 2.
- RPC. , , . POSIX pathconf, , , 255 .
- Port = n, , NFS, 0 . , portmapper , NFS- portmapper.
- Mount port = n, mountd.
- Mount host = name, , mountd.
- Mountprog = n, RPC.
, fstab, . :
cd/etc/sudo rm fstabsudo cp/etc/backup/fstab/etc /.
fstab . .
, . Nano fstab.
Ubuntu :
gksu gedit / etc / fstab.
Kubuntu :
kdesu kate / etc / fstab.
:
sudo nano -W / etc / fstab.
/ etc / fstab, :
sudo -e /etc/fstab.
UUID, :
sudo blkidls -l /dev/disk/by-uuid.
, , :
sudo fdisk -l.
/ etc / fstab, :
sudo mount -a.
, , . , root , :
sudo mkdir /path/to/mountpointsudo mkdir /media/disk2.
GNU / Linux fstab cifs, . /etc/fstab.
, Ubuntu, . Fstab - Linux, .