1. linux下简单制作iso,img镜像文件 2. 查看iso文件信息: 3. mount 3.1 mount 3.1.1 挂载iso 3.1.2 As root 使用以下命令将设备作为根目录挂载: 3.1.3 允许普通用户写 3.1.4 列出挂载的文件系统 3.1.5 man page (mount & umount) 3.2 Udisks 3.2.1 手动安装可移动驱动器,例如/dev/sdc: 3.2.2 挂载ISO映像,请使用以下命令: 3.2.3 隐藏所选分区 3.2.4 隐藏的设备(udisks2) 3.2.5 udisksctl 3.3 gvfs 3.4 udevil 3.5 udiskie 3.6 更多
1. linux下简单制作iso,img镜像文件
https://www.cnblogs.com/sztom/p/10184766.html1. 直接从cd压制iso文件:
dd if=/dev/cdrom of=file.iso bs=1M
2. 要把某个文件或者目录压到iso文件中:
mkisofs -r -o file.iso your_folder_name/
3. 加载iso
mount -t iso9660 -o loop xxx.iso /path
4. 移除光盘
umount /mnt/cdrom
2. 查看iso文件信息:
可以看到以下都是可以启动的iso镜像文件, 倒数第二个字段是卷标lable.$ file admincd-amd64-20200520T135827Z.iso
admincd-amd64-20200520T135827Z.iso: ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'Gentoo amd64 AdminCD 20200520T13' (bootable)
$ file linuxmint-20-xfce-64bit.iso
linuxmint-20-xfce-64bit.iso: ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'Linux Mint 20 Xfce 64-bit' (bootable)
$ file manjaro-xfce-20.0.3-200606-linux56.iso
manjaro-xfce-20.0.3-200606-linux56.iso: ISO 9660 CD-ROM filesystem data (DOS/MBR boot sector) 'MANJARO_XFCE_2003' (bootable)
3. mount
3.1 mount
https://wiki.archlinux.org/index.php/File_systems#Mount_a_file_system3.1.1 挂载iso
$ sudo mount admincd-amd64-20200520T135827Z.iso /mnt/sc1/mount: /mnt/sc1: WARNING: device write-protected, mounted read-only.
$ sudo mount admincd-amd64-20200520T135827Z.iso /mnt/sc1 -o loop
mount: /mnt/sc1: WARNING: device write-protected, mounted read-only.
$ sudo umount /mnt/sc1
https://wiki.archlinux.org/index.php/USB_storage_devices#Mounting_USB_memory
3.1.2 As root 使用以下命令将设备作为根目录挂载:
$ sudo mount device_node /mnt/usbstickor
$ sudo mount -U UUID /mnt/usbstick
3.1.3 允许普通用户写
$ sudo mount -o gid=users,fmask=113,dmask=002 /dev/sda1 /mnt/usbstick作为具有fstab的普通用户
https://wiki.archlinux.org/index.php/QEMU#Mounting_a_partition_from_a_raw_image
...
mount包含几个选项,其中许多取决于指定的文件系统。可以通过以下方式更改选项:
- 在命令行上使用mount标志
- 编辑fstab https://wiki.archlinux.org/index.php/Fstab
- 创建udev规则 https://wiki.archlinux.org/index.php/Udev
- 自己编译内核 https://wiki.archlinux.org/index.php/Arch_Build_System
- 或使用特定于文件系统的安装脚本(位于/usr/bin/mount.*)。
https://jlk.fjfi.cvut.cz/arch/manpages/man/systemd-mount.1
3.1.4 列出挂载的文件系统
$ findmnt3.1.5 man page (mount & umount)
Options: (mount & umount)$ mount --help | mount [-lhV] | $ umount --help | umount [-hV] | |
Mount a filesystem. | mount -a [options] | Unmount filesystems. | umount -a [options] | |
Usage: | mount [options] [--source] <source> | [--target] <directory> | Usage: | umount [options] <source> | <directory> | |
mount [options] <source> <directory> | ||||
mount <operation> <mountpoint> [<target>] | ||||
$ mount --help | Options: | $ umount --help | 选项: | |
-c, --no-canonicalize | don't canonicalize paths | 相同 的 选项 | -c, --no-canonicalize | 不要规范化路径 |
-n, --no-mtab | don't write to /etc/mtab | -n, --no-mtab | 不要写到/ etc/mtab | |
-O, --test-opts <list> | limit the set of filesystems (use with -a) | -O, --test-opts <list> | 限制文件系统集(与-a一起使用) | |
-t, --types <list> | limit the set of filesystem types | -t, --types <list> | 限制文件系统类型集 | |
-v, --verbose | say what is being done | -v, --verbose | 说出正在做什么 | |
-h, --help | display this help | -h, --help | 显示此帮助 | |
-V, --version | display version | -V, --version | 显示版本 | |
-a, --all | mount all filesystems mentioned in fstab 挂载fstab中提到的所有文件系统 | 相反 或 相近 选项 | -a, --all | unmount all filesystems 卸载所有文件系统 |
-i, --internal-only | don't call the mount.<type> helpers 不要调用安装。<type>助手 | -i, --internal-only | don't call the umount.<type> helpers 不要调用umount。<type>助手 | |
-N, --namespace <ns> | perform mount in another namespace 在另一个名称空间中执行挂载 | -N, --namespace <ns> | perform umount in another namespace 在另一个名称空间中执行umount | |
-r, --read-only | mount the filesystem read-only (same as -o ro) 挂载文件系统为只读(与-o ro相同) | -r, --read-only | in case unmounting fails, try to remount read-only 万一卸载失败,请尝试以只读方式重新安装 | |
-f, --fake | dry run; skip the mount(2) syscall 空转跳过mount(2)syscall | --fake | dry run; skip the umount(2) syscall 空转跳过umount(2)syscall | |
-F, --fork || fork off for each device (use with -a) || 为每个设备分叉(与-a一起使用) -T, --fstab <path> || alternative file to /etc/fstab || /etc/fstab的替代文件 -l, --show-labels || show also filesystem labels || 同时显示文件系统标签 --options-mode <mode> || what to do with options loaded from fstab || 从fstab加载的选项怎么办 --options-source <source> || mount options source || 挂载选项源 --options-source-force || force use of options from fstab/mtab || 强制使用fstab/mtab中的选项 -o, --options <list> || comma-separated list of mount options || 逗号分隔的安装选项列表 --source <src> || explicitly specifies source (path, label, uuid) || 明确指定来源 (path, label, uuid) --target <target> || explicitly specifies mountpoint || 明确指定安装点 --target-prefix <path> || specifies path use for all mountpoints || 指定所有安装点的路径使用 -w, --rw, --read-write || mount the filesystem read-write (default) || 以读写方式挂载文件系统(默认) | 不同 的 选项 | -A, --all-targets || unmount all mountpoints for the given device in the current namespace || 卸载当前名称空间中给定设备的所有安装点 -d, --detach-loop || if mounted loop device, also free this loop device || 如果安装了回路设备,请同时释放此回路设备 -f, --force || force unmount (in case of an unreachable NFS system) || 强制卸载(如果无法访问NFS系统) -l, --lazy || detach the filesystem now, clean up things later || 立即分离文件系统,稍后再清理 -R, --recursive || recursively unmount a target with all its children || 以其所有子代递归卸载目标 -q, --quiet || suppress 'not mounted' error messages || 禁止显示“未安装”错误消息 |
$ mount --help | Source: | 资源: |
-L, --label <label> | synonym for LABEL=<label> | LABEL = <label>的同义词 |
-U, --uuid <uuid> | synonym for UUID=<uuid> | UUID = <uuid>的同义词 |
LABEL=<label> | specifies device by filesystem label | 通过文件系统标签指定设备 |
UUID=<uuid> | specifies device by filesystem UUID | 通过文件系统UUID指定设备 |
PARTLABEL=<label> | specifies device by partition label | 通过分区标签指定设备 |
PARTUUID=<uuid> | specifies device by partition UUID | 通过分区UUID指定设备 |
<device> | specifies device by path | 按路径指定设备 |
<directory> | mountpoint for bind mounts (see --bind/rbind) | 绑定安装的安装点(请参阅--bind/rbind) |
<file> | regular file for loopdev setup | 用于loopdev设置的常规文件 |
Operations: | 操作方式: | |
-B, --bind | mount a subtree somewhere else (same as -o bind) | 在其他地方安装子树(与-o bind相同) |
-M, --move | move a subtree to some other place | 将子树移到其他地方 |
-R, --rbind | mount a subtree and all submounts somewhere else | 安装一个子树,所有子安装在别处 |
--make-shared | mark a subtree as shared | 将子树标记为共享 |
--make-slave | mark a subtree as slave | 将子树标记为从属 |
--make-private | mark a subtree as private | 将子树标记为私有 |
--make-unbindable | mark a subtree as unbindable | 将子树标记为不可绑定 |
--make-rshared | recursively mark a whole subtree as shared | 递归地将整个子树标记为共享 |
--make-rslave | recursively mark a whole subtree as slave | 递归地将整个子树标记为slave |
--make-rprivate | recursively mark a whole subtree as private | 递归地将整个子树标记为私有 |
--make-runbindable | recursively mark a whole subtree as unbindable | 递归地将整个子树标记为不可绑定 |
/etc/fstab | filesystem table | 文件系统表 |
/etc/mtab | table of mounted filesystems (deprecated and usually replaced by symlink to /proc/mounts) | 已挂载文件系统表(已弃用,通常由/proc/mounts的符号链接代替) |
mount FILES | ||
/run/mount | libmount private runtime directory | libmount私有运行时目录 |
/etc/mtab | table of mounted filesystems or symlink to /proc/mounts | 挂载文件系统表或/ proc/mounts的符号链接 |
/etc/mtab~ | lock file (unused on systems with mtab symlink) | 锁定文件(在具有mtab symlink的系统上未使用) |
/etc/mtab.tmp | temporary file (unused on systems with mtab symlink) | 临时文件(在具有mtab symlink的系统上未使用) |
/etc/filesystems | a list of filesystem types to try | 尝试的文件系统类型列表 |
umount FILES | ||
/proc/self/mountinfo | table of mounted filesystems generated by kernel. | 内核生成的已挂载文件系统表。 |
3.2 Udisks
udisks2: Disk Management Service, version 2https://wiki.gentoo.org/wiki/Udisks
过时的文章... https://wiki.gentoo.org/wiki/Category:Outdated_articles
udisks是提供存储相关服务的D-Bus守护程序。提供的服务包括:枚举存储设备,类似于udev,但有更多详细信息; 挂载文件系统; 存储设备分区; 监视存储设备; 存储设备的配置。
https://wiki.archlinux.org/index.php/Udisks
udisks提供了一个守护程序udisksd,该守护程序实现了用于查询和操作存储设备的D-Bus接口,还提供了一个命令行工具udisksctl,用于查询和使用该守护程序。
udisksd(8)由 D-Bus按需启动,因此不应显式启用。可以使用 udisksctl(1)通过命令行进行控制。
Polkit限制了用户可以使用udisk执行的操作。如果未激活或不存在用户会话(例如,当从systemd / User服务控制udisk时),请相应地调整Polkit规则。
- 有关组的通用udisk权限,请参见: https://github.com/coldfix/udiskie/wiki/Permissions
- 有关限制性更强的示例storage,请参见: https://gist.github.com/grawity/3886114#file-udisks2-allow-mount-internal-js
- 如果您正在使用Dolphin,则可能会看到: https://gist.github.com/Scrumplex/8f528c1f63b5f4bfabe14b0804adaba7
- https://wiki.archlinux.org/index.php/Dolphin Dolphin是KDE的默认文件管理器。有关视频游戏机模拟器,请参阅Dolphin emulator 。
3.2.1 手动安装可移动驱动器,例如/dev/sdc:
$ udisksctl mount -b /dev/sdc1$ udisksctl unmount -b /dev/sdc1
3.2.2 挂载ISO映像,请使用以下命令:
$ udisksctl loop-setup -r -f image.iso这将创建一个循环设备,并显示准备安装的ISO映像。卸载后,循环设备将由udev终止。
挂载到/run/media/用户/目录下, 以卷标为文件夹名称:
/run/media/toma/Gentoo amd64 20200520T135827Z/
/run/media/toma/MANJARO_XFCE_2003/
3.2.3 隐藏所选分区
如果希望防止某些分区或驱动器出现在桌面上,则可以创建udev规则,例如/etc/udev/rules.d/10-local.rules:KERNEL=="sda1", ENV{UDISKS_IGNORE}="1"
KERNEL=="sda2", ENV{UDISKS_IGNORE}="1"
因为块设备名称可以在重新引导之间更改,所以也可以使用UUID(从执行blkid /dev/sdX命令收集到的)来隐藏分区或整个设备:
# blkid /dev/sdX
/dev/sdX: LABEL="Filesystem Label" UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX" UUID_SUB="YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY" TYPE="btrfs"
然后可以使用以下行:
SUBSYSTEM=="block", ENV{ID_FS_UUID}=="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX", ENV{UDISKS_IGNORE}="1"
3.2.4 隐藏的设备(udisks2)
默认情况下,Udisks2对用户隐藏某些设备。如果这是不想要的或其他问题,复制/usr/lib/udev/rules.d/80-udisks2.rules到/etc/udev/rules.d/80-udisks2.rules并删除复制以下部分:# Devices which should not be display in the user interface
[...]
3.2.5 udisksctl
$ sudo pacman -Fl udisks2 |grep binudisks2 usr/bin/udisksctl
udisks2 usr/bin/umount.udisks2
$ udisksctl help
$ udisksctl help | Usage: udisksctl COMMAND | |
Use "udisksctl COMMAND --help" to get help on each command. | ||
Commands: | ||
help | Shows this information | 显示此信息 |
dump | Shows information about all objects | 显示有关所有对象的信息 |
status | Shows high-level status(disk and block devices) | 显示高级状态 (disk and block devices) |
monitor | Monitor changes to objects | 监视对象的更改 |
info | Shows information (object, device, drive) | 显示信息 (object, device, drive) |
mount | Mount a filesystem | 挂载文件系统 |
unmount | Unmount a filesystem | 卸载文件系统 |
unlock | Unlock an encrypted device | 解锁加密设备 |
lock | Lock an encrypted device | 锁定加密的设备 |
loop-setup | Set-up a loop device | 设置回路设备 |
loop-delete | Delete a loop device | 删除循环设备 |
power-off | Safely power off a drive | 安全关闭驱动器电源 |
smart-simulate | Set SMART data for a drive | 设置驱动器的SMART数据 |
$ udisksctl COMMAND --help
-p, 对象,路径 –object-path | -b, 块设备 –block-device | --no-user-interaction | 主项目 | 各自选项 | ||
Y object | Y block | Y | mount | -o, --options | Mount options | 挂载选项 |
-t, --filesystem-type | Filesystem type to use | 要使用的文件系统类型 | ||||
Y object | Y block | Y | unmount | -f, --force | Force/lazy unmount | 强制/延迟卸载 |
Y object | Y block | Y | unlock | --key-file | Keyfile for unlocking | 解锁密钥文件 |
--read-only | Unlock the device as read-only | 将设备解锁为只读 | ||||
Y object | Y block | Y | lock | |||
Y | loop-setup | -o, --offset | Start at <num> bytes into file | 从<num>个字节开始到文件 | ||
-f, --file | File to set-up a loop device for | 用于设置回路设备的文件 | ||||
-r, --read-only | Setup read-only device | 设置只读设备 | ||||
-s, --size | Limit size to <num> bytes | 将大小限制为<num>个字节 | ||||
Y object | Y Device | Y | loop-delete | |||
Y object | Y block | info | -d, --drive | Drive to get information about | 获取驱动有关的信息 | |
Y Pash | Y Device | Y | power-off | |||
Y Pash | Y Device | Y | smart-simulate | -f, --file | File with libatasmart blob | 用libatasmart blob归档 |
$ devmon --help
$ devmon --help | devmon version 1.1.9 (distributed with udevil) | devmon版本1.1.9(随udevil一起分发) |
Automounts and unmounts optical and removable drives | 自动挂载和卸下光盘驱动器和可移动驱动器 | |
Requires: | udevil bash>=4 | udevil bash> = 4 |
Also Recommended: | eject spacefm|zenity | 弹出空间 |
Optional: | udisks v1 may be substituted for udevil | udisks v1可以代替udevil |
If udevil is not set suid, udisks v1/v2 or pmount is required | 如果未将udevil设置为suid,则需要udisk v1 / v2或pmount | |
Usage: devmon [AUTOMOUNT-OPTIONS] | # Run as daemon to automount | #作为守护程序运行以自动挂载 |
devmon [MOUNT-OPTIONS] | # Or run as client to manually un/mount | #或以客户端身份运行以手动卸载/挂载 |
AUTOMOUNT-OPTIONS: (these can be used only in daemon mode) | AUTOMOUNT-OPTIONS :(只能在守护程序模式下使用) | |
--exec-on-device DEVICE "COMMAND" | Execute COMMAND after mounting DEVICE | 挂载DEVICE后执行COMMAND |
--exec-on-label "LABEL" "COMMAND" | Execute COMMAND after mounting LABEL | 安装标签后执行命令 |
--exec-on-video "COMMAND" | Execute COMMAND after video DVD mount | 装入视频DVD后执行命令 |
--exec-on-audio "COMMAND" | Execute COMMAND after audio CD insertion | 插入音频CD后执行命令 |
--exec-on-disc "COMMAND" | Execute COMMAND after data CD/DVD mount | 装入数据CD / DVD后执行COMMAND |
--exec-on-drive "COMMAND" | Execute COMMAND after drive mount | 安装驱动器后执行命令 |
--exec-on-unmount "COMMAND" | Execute COMMAND after unmount | 卸载后执行命令 |
--exec-on-remove "COMMAND" | Execute COMMAND after drive removal | 卸下驱动器后执行命令 |
Where the following in COMMAND will be replaced with: | COMMAND中的以下内容将替换为: | |
%d | mount point directory (eg /media/cd) | 挂载点目录(例如/ media / cd) |
%f | device name (eg /dev/sdd1) | 设备名称(例如/ dev / sdd1) |
%l | label of mounted volume | 安装卷标 |
Multiple --exec-on-XXX options may be used to execute multiple commands. | 多个--exec-on-XXX选项可用于执行多个命令。 | |
Other exec-on-XXX commands are ignored if exec-on-device or -label executed. | 如果执行exec-on-device或-label,则将忽略其他exec-on-XXX命令。 | |
--mount-options "OPTIONS" | Default: noexec,nosuid,nodev,noatime | 默认值:noexec,nosuid,nodev,noatime |
--info-on-mount | Show mounted drive info in a popup dialog | 在弹出对话框中显示已安装的驱动器信息 |
--no-mount | Don't mount anything, just exec (disables --exec-on-video) | 不要挂载任何东西,只是执行(禁用--exec-on-video) |
--no-unmount | Don't unmount all removable drives on exit | 不要在退出时卸载所有可移动驱动器 |
MOUNT-OPTIONS: (these can be used only in client mode) | 安装选项:(这些选项只能在客户端模式下使用) | |
--unmount-removable | -r | Sync and unmount all removable drives and show pop-up dialog (spacefm or zenity required) | 同步和卸载所有可移动驱动器并显示弹出对话框(需要spacefm或zenity) |
--unmount-recent | -c | Unmount most recently mounted removable drive | 卸载最近安装的可移动驱动器 |
--unmount-optical | -o | Unmount all optical drives (error pop-up only) | 卸下所有光盘驱动器(仅错误弹出窗口) |
--unmount-all | -u | Same as --unmount-removable --unmount-optical | 与--unmount-removable --unmount-optical相同 |
--unmount DIR|DEVICE | Unmount DEVICE or mount point DIR | 卸载DEVICE或挂载点DIR |
--eject DIR|DEVICE | Unmount and eject DEVICE or mount point DIR | 卸载并弹出DEVICE或挂载点DIR |
--mount-all | -a | Mount all removable and optical drives | 安装所有可移动和光盘驱动器 |
--mount DEVICE | Mount DEVICE | 挂载DEVICE |
--mount-options|--mount-fstype|--eject-options "OPTIONS" | These options will be passed to mount or eject | 这些选项将被传递以挂载或弹出 |
--enumerate-device-files | List known devices | 列出已知设备 |
UNIVERSAL OPTIONS: (these can be used in both daemon and client modes) | 通用选项:(可以在守护程序和客户端模式下使用) | |
--ignore-device DEVICE | Ignore DEVICE (eg /dev/sdd1) | 忽略设备(例如/ dev / sdd1) |
--ignore-label "LABEL" | Ignore volume with LABEL | 用LABEL忽略音量 |
--sync | -s | Add sync mount option for ext2-4 ntfs ufs, or flush for fat & vfat (slower writing but safer) | 为ext2-4 ntfs ufs添加同步安装选项,或为fat&vfat刷新(写入速度较慢但更安全) |
--internal | Also attempt to un/mount internal system drives (this is mostly a fix for esata issues) | 还尝试卸载/挂载内部系统驱动器(这主要是针对esata问题的修复) |
--always-exec | Also run --exec-on-XXX commands during startup or with --mount-all | 在启动过程中或与--mount-all一起运行--exec-on-XXX命令 |
--no-gui | -g | Do not show spacefm/zenity pop-up dialogs | 不显示spacefm / zenity弹出对话框 |
$ udisksctl status
MODEL REVISION SERIAL DEVICE
-------------------------------------------------------------
OCZ-TRION100 SAFM11.2 X5RB54XWKMCX sda
WDC WD10JPVT-60A1YT0 01.01A01 WD-WX21AB225546 sdb
$ udisksctl info -b /dev/sda3
/org/freedesktop/UDisks2/block_devices/sda3:
...
3.3 gvfs
https://wiki.archlinux.org/index.php/File_manager_functionality#MountingGnome虚拟文件系统(gvfs)提供了挂载和垃圾回收功能。 GVFS使用udisks2来实现挂载功能,并且是大多数文件管理器的推荐解决方案。
$ sudo pacman -Ss gvfs
extra/gvfs 1.44.1-4 (gnome) [installed] Virtual filesystem implementation for GIO
extra/gvfs-afc 1.44.1-4 (gnome) (AFC backend; Apple mobile devices)
extra/gvfs-google 1.44.1-4 (gnome) (Google Drive backend)
extra/gvfs-gphoto2 1.44.1-4 (gnome) (gphoto2 backend; PTP camera, MTP media player)
extra/gvfs-mtp 1.44.1-4 (gnome) (MTP backend; Android, media player)
extra/gvfs-goa 1.44.1-4 (gnome) (Gnome Online Accounts backend; cloud storage)
extra/gvfs-nfs 1.44.1-4 (gnome) (NFS backend)
extra/gvfs-smb 1.44.1-4 (gnome) (SMB/CIFS backend; Windows client)
实现自动挂载U盘, 挂载U盘的右键菜单包含“Umount 和 Eject”(卸载,弹出)两个选项。
3.4 udevil
https://wiki.archlinux.org/index.php/List_of_applications#Mount_toolsudevil — Mounts removable devices as a regular user, show device info, and monitor device changes. Only depends on udev and glib. 以普通用户身份安装可移动设备,显示设备信息并监视设备更改。仅取决于udev和glib。包括devmon,它与udisks和udisks2兼容。
https://ignorantguru.github.io/udevil
https://github.com/IgnorantGuru/udevil
$ sudo pacman -Fl udevil |grep bin
udevil usr/bin/devmon
udevil usr/bin/udevil
$ udevil mount linuxmint-20-xfce-64bit.iso
Mounted /mnt/sda8bk/LinuxISO/mint20/linuxmint-20-xfce-64bit.iso at /media/toma/linuxmint-20-xfce-64bit.iso
/media/toma/linuxmint-20-xfce-64bit.iso/
$ udevil mount manjaro-xfce-20.0.3-200606-linux56.iso
Mounted /mnt/sda8bk/LinuxISO/manjaro20/manjaro-xfce-20.0.3-200606-linux56.iso at /media/manjaro-xfce-20.0.3-200606-linux56.iso
/media/manjaro-xfce-20.0.3-200606-linux56.iso/
??--------------??
$ udevil umount -l /media/manjaro-xfce-20.0.3-200606-linux56.iso/
$ udevil umount -l /media/toma/linuxmint-20-xfce-64bit.iso/
$ udevil --help
Usage: udevil [OPTIONS] COMMAND [COMMAND-OPTIONS] [COMMAND-ARGUMENTS]
MOUNT-使用MOUNT-OPTIONS将DEVICE挂载到挂载点DIR:
udevil mount|--mount [MOUNT-OPTIONS] [[-b|--block-device] DEVICE] [DIR]
UNMOUNT-使用UNMOUNTOPTIONS卸载设备或DIR:
udevil umount|unmount|--unmount|--umount [UNMOUNT-OPTIONS] {[-b|--block-device] DEVICE}|DIR
OPTIONS:
--verbose || print details 打印细节
--quiet || minimal output 最小输出
MOUNT-OPTIONS:
-t|--types|--filesystem-type|--mount-fstype || 文件类型
-o|--options|--mount-options OPT,... || 挂载选项
--no-user-interaction || 不需要用户验证
UNMOUNT-OPTIONS:
-l || lazy unmount (see man umount) 懒惰卸载
-f || force unmount (see man umount) 强制卸载
--no-user-interaction || ignored (for compatibility) 不需要用户验证
EXAMPLES: mount
udevil mount /dev/sdd1 | ||
udevil mount -o ro,noatime /dev/sdd1 | ||
udevil mount -o ro,noatime /dev/sdd1 /media/custom | ||
udevil mount /tmp/example.iso | # ISO file | #ISO文件 |
udevil mount ftp://sys.domain | # ftp site - requires curlftpfs or ftpfs | #ftp站点-需要curlftpfs或ftpfs |
udevil mount ftp://user:pass@sys.domain/share | # ftp share with user and password | #ftp与用户和密码共享 |
udevil mount ftp://user:pass@sys.domain:21/share | # ftp share with port, user and password | #ftp与端口,用户和密码共享 |
udevil mount -t ftpfs sys.domain | # ftp site with ftpfs | #使用ftpfs的ftp站点 |
udevil mount -t curlftpfs sys.domain | # ftp site with curl | #带有curl的ftp站点 |
udevil mount -t curlftpfs user:pass@sys.domain | # ftp site with curl u/p | #带有curl u / p的ftp站点 |
udevil mount nfs://sys.domain:/share | # nfs share | #nfs分享 |
udevil mount sys.domain:/share | # nfs share | #nfs分享 |
udevil mount smb://sys.domain/share | # samba share w/ cifs | #samba与w / cif分享 |
udevil mount smb://user:pass@10.0.0.1:50/share | # samba share w/ u/p/port | #samba共享w / u / p / port |
udevil mount smb://WORKGROUP/user@sys.domain | # samba share w/ workgroup | #samba与工作组共享 |
udevil mount //sys.domain/share | # samba share w/ cifs | #samba与w / cif分享 |
udevil mount //sys.domain/share -t smbfs | # samba share w/ smbfs | #桑巴分享w / smbfs |
udevil mount ssh://user@sys.domain | # sshfs with user - requires sshfs | #与用户一起使用sshfs-需要sshfs |
udevil mount -t sshfs user@sys.domain | # sshfs with user | 与用户#sshfs |
udevil mount http://sys.domain/dav/ | # WebDAV - requires davfs2 | #WebDAV-需要davfs2 |
udevil mount tmpfs | # make a ram drive | #制作一个ram驱动器 |
EXAMPLES: umount
udevil umount /dev/sdd1
udevil umount /media/disk
udevil umount -l /media/disk
udevil umount /tmp/example.iso
MONITOR - Display device events emulating udisks v1 output: 监视器-模拟udisk v1输出的显示设备事件:
udevil monitor|--monitor
EXAMPLE: udevil monitor
CLEAN - Remove unmounted udevil-created mount dirs in media dirs 删除介质目录中未安装的由udevil创建的安装目录
udevil clean
3.5 udiskie
https://wiki.archlinux.org/index.php/Udisks#Mount_helpersudiskie — udisks2自动挂载程序,带有可选的通知,任务栏图标以及对受密码保护的LUKS设备的支持。有关详细信息,请参见udiskie Wiki。
https://github.com/coldfix/udiskie
3.6 更多
FuseISO是一个FUSE模块,用于让没有特权的用户挂载ISO文件系统映像(.iso,.nrg,.bin,.mdf和.img)。Nemo作为文件浏览器,在右键单击以安装iso时具有打包功能。单击已安装的iso的相应图标即可完成卸载,就像对USB驱动器一样。
KDiskFree — Displays information about hard disks and other storage devices. It also allows to mount and unmount drives and view them in a file manager. 显示有关硬盘和其他存储设备的信息。它还允许安装和卸载驱动器,并在文件管理器中查看它们。
https://www.kde.org/applications/system/kdiskfree/ [dead link 2020-02-25] || kdf
没有评论:
发表评论