#AUTOFS install
sudo apt install autofs
sudo nano /etc/auto.master
#아래 문장을 #/misc /etc/auto.misc 밑에 삽입
/media /etc/auto.ext --timeout 20
#저장크기 및 위치 확인
fdisk -l
#uuid 확인
ls -al /dev/disk/by-uuid
# 마운트되는 드라이브의 폴더명을 지정(=nas) 및 uuid 입력
# /folderlocation1/folderlocation2 위치에 저장
# folderlocation2는 보이지 않다가 cd foloderlocation2 입력해서 들어가면 활성화됨
sudo nano /etc/auto.ext
nas -fstype=ext4,rw,noatime,data=journal,commit=1 :/dev/disk/by-uuid/your-hdd-uuid-here
#설정 저장 후 재시작
sudo service autofs restart
#MOUNT
#디스크 확인
$ fdisk -l
#포맷
$ mkfs.ext4 /dev/sda1
# mount options1 # by using mount #매번 mount 실행
#마운트할 폴더 생성
$ mkdir /ssd
# 생성한 폴더를 디스크로 연결
$ mount /dev/sda1 /ssd
# mount option2 #by using autofus #해당폴더에 접속할때 자동으로 마운트 reboot해도 적용됨
#https://wiki.odroid.com/odroid-xu4/software/ubuntu_nas/02_mount_hdds
'Computer > Linux' 카테고리의 다른 글
rclone (0) | 2020.05.13 |
---|---|
Diable sleep/hibernation mode in Ubuntu (0) | 2020.03.31 |
github (0) | 2019.05.22 |
fdisk (0) | 2019.05.19 |
User account control (0) | 2019.05.15 |
Samba (0) | 2019.05.12 |
Ubuntu instaillation (0) | 2019.05.12 |
PiVPN installation (0) | 2019.05.10 |