
거래는 다음과 같습니다.
나는 꽤 오랫동안 하드 디스크를 사용해 왔으며 최근에는 fstab을 사용하여 /media/kevin/toshiba
.
이제 마운트될 때마다 권한이 가 됩니다 drwxrwxrwx
. 다른 컴퓨터에 하드 디스크를 연결하면 위와는 다른 기본 권한이 표시됩니다.
기본 권한을 유지한 상태로 h를 어떻게 마운트합니까?
편집 1:
이것은 내 /etc/fstab
항목입니다.
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=8C3669123668FE98 /media/kevin/kevin-toshiba ntfs defaults 0 0
나도 이것을 시도했다 :
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=8C3669123668FE98 /media/kevin/kevin-toshiba ntfs nls=iso8859-1,permissions,users,auto 0 0
답변1
드라이브를 자동 마운트하는 훨씬 쉬운 방법은 마운트 명령을 /etc/rc.local 에 넣는 것입니다. 나는 fstab을 사용하면서 온갖 종류의 두통을 겪었고 그것이 지금 내가 하는 일입니다. /etc/rc.local은 시작 시 루트에 의해 실행되는 bash 스크립트입니다. 드라이브를 마운트할 폴더를 생성한 다음 /etc/rc.local의 "exit" 줄 위 아무 곳에나 마운트 명령을 추가하고 재부팅하면 됩니다.
내 모습은 다음과 같습니다.
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#Mounts Storage
mount /dev/sdb1 /mnt/Storage
exit 0