Mkfs mkfs [ -V ] [ -t fstype ] [ fs-options ] filesys [ blocks ] mkfs is used to build a Linux file system on a device, usually a hard disk partition mount




Дата канвертавання27.04.2016
Памер16.61 Kb.

Linux



mkfs

mkfs [ -V ] [ -t fstype ] [ fs-options ] filesys [ blocks ]


mkfs is used to build a Linux file system on a device, usually a hard disk partition.
mount

mount [-hV]

mount -a [-fFnrsvw] [-t vfstype]

mount [-fnrsvw] [-o options [,...]] device dir

mount [-fnrsvw] [-t vfstype] [-o options] device dir
The mount command serves to attach the file system found on some device to the big file tree.
umount

umount [-hV]

umount -a [-nrv] [-t vfstype]

umount [-nrv] device | dir [...]


The umount command detaches the file system(s) mentioned from the file hierarchy.
/etc/fstab

proc /proc proc defaults 0 0

/dev/sdc1 swap swap defaults,pri=1 0 0

/dev/sdb1 swap swap defaults,pri=1 0 0

/dev/sda1 swap swap defaults,pri=1 0 0

/dev/sda2 / ext2 defaults 1 1

/dev/sda3 /var ext2 defaults,nosuid,nodev 1 1

/dev/sda4 /tmp ext2 defaults,nosuid,nodev 1 1

/dev/sdb2 /big ext2 defaults,nosuid 1 1

/dev/sdc2 /home ext2 defaults,nosuid,nodev,usrquota 1 1

/dev/cdrom /mnt/cdrom iso9660 defaults,ro,noauto 0 0

/dev/fd0 /mnt/floppy auto defaults,noauto 0 0



AIX
mkfs

mkfs [ -b Boot ] [ -l Label ] [ -i i-Nodes ] [ -o Options ]

[ -p Prototype ] [ -s Size ] [ -v VolumeLabel ] [ -V VfsName]

Device
The mkfs command makes a new file system on a specified device. The mkfs command initializes the volume label, file system label, and startup block.


mount

mount [ -f ] [ -n Node ] [ -o Options ] [ -p ] [ -r ]

[ -v VfsName ] [ -t Type | [ Device | Node:Directory ] Directory

| all | -a ]


The mount command instructs the operating system to make a file system available for use at a specified location (the mount point).
node mounted vfs date options over

---- ------- --------- --- ------------ ------- ---------

/dev/hd0 / jfs Dec 17 08:04 rw, log =/dev/hd8

/dev/hd3 /tmp jfs Dec 17 08:04 rw, log =/dev/hd8

/dev/hd1 /home jfs Dec 17 08:06 rw, log =/dev/hd8

/dev/hd2 /usr jfs Dec 17 08:06 rw, log =/dev/hd8


AIX



umount or unmount

{ unmount | umount } [ -f ] [ -a ] | [ all | allr | Device |

Directory | File | FileSystem | -n Node | -t Type ]
The umount command unmounts a previously mounted device, directory, file, or file system.
lsfs

lsfs [ -q ] [ -c | -l ] [ -a | -v VfsType | -u MountGroup |

[ FileSystem ... ] ]
The lsfs command displays characteristics of file systems, such as mount points, automatic mounts, permissions, and file system size.
rmfs

rmfs [ -r ] FileSystem


The rmfs command removes a file system. If the file system is a journaled file system (JFS), the rmfs command removes both the logical volume on which the file system resides and the associated stanza in the /etc/filesystems file.
/etc/filesystems

/:

dev = /dev/hd4



vfs = jfs

log = /dev/hd8

mount = automatic

check = false

type = bootfs

vol = root

free = true
/usr:

dev = /dev/hd2

vfs = jfs

log = /dev/hd8

mount = automatic

check = false

type = bootfs

vol = /usr

free = false
/var/spool/mail:

dev = "/var/spool/mail"

vfs = nfs

nodename = mailhost

mount = true

options = bg,hard,intr,nosuid,nodev

account = false
/UniTree/home:

dev = "/UNITREE_backup/home"

vfs = nfs

nodename = luke

mount = true

type = nfs



options = port=2049,bg,hard,intr,nosuid,nodev

account = false


База данных защищена авторским правом ©shkola.of.by 2016
звярнуцца да адміністрацыі

    Галоўная старонка