LINUX.ORG.RU

systemd mount

 ,


0

1

Почему не монтируется?

# /etc/systemd/system/mnt-sdb1.mount
[Unit]
Description = mount sdb1
[Mount]
What=/dev/disk/by-uuid/1f247228-688a-4ff4-a9f9-fbb3c5dfd4ff
Where=/mnt/sdb1
Type=ext4
Options=default
[Install]
WantedBy=multi-user.target

root@vm01:/home/evgeniy# systemctl status mnt-sdb1.mount
● mnt-sdb1.mount - mount sdb1
     Loaded: loaded (/etc/systemd/system/mnt-sdb1.mount; enabled; vendor preset: enabled)
     Active: inactive (dead)
      Where: /mnt/sdb1
       What: /dev/disk/by-uuid/1f247228-688a-4ff4-a9f9-fbb3c5dfd4ff

Jun 07 13:10:15 vm01 systemd[1]: Dependency failed for mount sdb1.
Jun 07 13:10:15 vm01 systemd[1]: mnt-sdb1.mount: Job mnt-sdb1.mount/start failed with result 'dependency'.

root@vm01:/home/evgeniy# sudo fdisk -l


Disk /dev/sdb: 10 MiB, 10485760 bytes, 20480 sectors
Disk model: VBOX HARDDISK   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xd988677c

Device     Boot Start   End Sectors Size Id Type
/dev/sdb1        2048 20479   18432   9M 83 Linux


Disk /dev/sda: 8 GiB, 8589934592 bytes, 16777216 sectors
Disk model: VBOX HARDDISK   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x924c2571

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1  *        2048 14776319 14774272    7G 83 Linux
/dev/sda2       14778366 16775167  1996802  975M  5 Extended
/dev/sda5       14778368 16775167  1996800  975M 82 Linux swap / Solaris


Последнее исправление: tits (всего исправлений: 1)