mount and sftp

Ответить
brahman
Site Admin
Сообщения: 68
Зарегистрирован: 30 май 2020, 13:42

mount and sftp

Сообщение brahman »

Ошибки при монтировании NTFS
The disk contains an unclean file system (0, 0). Metadata kept in Windows cache, refused to mount. Failed to mount '/dev/sdb1': Операция не позволена The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.

решение:
If you can't access the drive, execute the following command:

Код: Выделить всё

sudo ntfsfix /dev/sdXY
where XY is the partition e.g sda2 or sdb1

Then, mount with:

Код: Выделить всё

sudo mount -o rw /dev/sdXY

brahman
Site Admin
Сообщения: 68
Зарегистрирован: 30 май 2020, 13:42

Re: mount

Сообщение brahman »

монтирование папки по sftp с разрешением для других

Код: Выделить всё

sudo sshfs -o allow_other host@domain.name:/mnt/WD/FTP/host/prabhupada/ /home/prabhu/sites/prabhupada.live/web/sites/default/files/books/
sshfs -o allow_other host@domain.com:/srv/home/host/prabhupada/ /var/www/prabhupada/data/www/prabhupada.live/web/sites/default/files/books/

brahman
Site Admin
Сообщения: 68
Зарегистрирован: 30 май 2020, 13:42

Re: mount and sftp

Сообщение brahman »

Код: Выделить всё

sshfs jalale@192.168.1.38:/media/jalale/B/ /home/jalale/chia/

Ответить