1. Find disk UUID
$ ls -l /dev/disk/by-uuid
합계 0
lrwxrwxrwx 1 root root 10 9월 25 10:20 EB00-E6B3 -> ../../sda1
lrwxrwxrwx 1 root root 10 9월 25 10:20 eb357993-b501-4616-be0f-cd57335c36cd -> ../../sdb1
2. Find device info
$ sudo fdisk -l
Disk /dev/sda: 37.28 GiB, 40020664320 bytes, 78165360 sectors
Disk model: INTEL SSDSA2M040
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: 0x0930bbc5
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1050623 1048576 512M b W95 FAT32
/dev/sda2 1052670 78163967 77111298 36.8G 5 Extended
/dev/sda5 1052672 78163967 77111296 36.8G 83 Linux
Disk /dev/sdb: 119.25 GiB, 128035676160 bytes, 250069680 sectors
Disk model: SAMSUNG MMCRE28G
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: 0x74f289df
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 250068991 250066944 119.2G 83 Linux
3. Add mount file(Below Bold)
$ sudo vi /etc/fstab
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=a142db3b-b4d6-43da-8a11-9f3a3cae8bf6 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=EB00-E6B3 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
# # / was on /dev/sda5 during installation
UUID=a142db3b-b4d6-43da-8a11-9f3a3cae8bf6 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=EB00-E6B3 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
# /media/user/SS128 was on /dev/sdb1 during installation
UUID=eb357993-b501-4616-be0f-cd57335c36cd /media/user/SS128 ext4 0 1
1. <file system> : 마운트 할 장치의 장치 파일 명 (1에서 찾은 UUID)
2. <mount point> : 마운트 할 디렉토리(기존 디렉토리 또는 신규 디렉토리 생성)
3. <type> : 마운트 할 파일시스템 종류 (ext4, ntfs, ...)
4. <options> : 마운트 옵션
5. <dump> : 해당 파티션을 백업할 지의 여부 (0 - 백업 안함, 1 - 백업)
6. <pass> : fsck에 의한 파일시스템 검사 여부 (0 - 검사하지 않음, 1 - 파일 시스템, 2 - 이외)
4. Reboot
'OS > Ubuntu' 카테고리의 다른 글
Raspberry Pi Ubuntu Server 20.04 LTS default login credentials (0) | 2020.10.04 |
---|---|
Ubuntu Music Player (0) | 2020.09.28 |
Sublime Text 3 Install (Ubuntu) (0) | 2020.09.24 |
IntelliJ 단축키(Shortcuts) (Ubuntu) (0) | 2020.09.23 |
Ubuntu 20.04 ifconfig install (0) | 2020.08.11 |