SSD하드디스크 추가하기
Tx2의 기본 디스크 용량이 작기 때문에 필수적으로 SSD하드 디스크의 추가가 필요하다.
하드디스크 추가하여 확인하기
sudo fdisk -l
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
파티션이 안되어 있을 경우
sudo fdisk -l # fdisk 확인 -->
(result) Disk /dev/sda: ~ GB, ~ bytes .... doesn't contain a valid partition table
sudo fdisk /dev/sda # 위에서 나온 partition되어있지 않은 disk가 새로 꽂은 디스크다! ----
(이하 fdisk 실행 후 창) Command (m for help): n
Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): Using default value 1 First sector (2048-1000215215, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-1000215215, default 1000215215): Using default value 1000215215 Command (m for help): p Disk /dev/sda: 512.1 GB, 512110190592 bytes 255 heads, 63 sectors/track, 62260 cylinders, total 1000215216 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0xe8bf195f Device Boot Start End Blocks Id System /dev/sda1 2048 1000215215 500106584 83 Linux Command (m for help): w The partition table has been altered!
마운트 안되었을 경우에 디스크 상태
nvidia@nvidia-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p1 28G 15G 13G 54% /
none 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 13M 3.9G 1% /dev/shm
tmpfs 3.9G 39M 3.8G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 786M 12K 786M 1% /run/user/120
tmpfs 786M 124K 786M 1% /run/user/1000
디스크 포맷
nvidia@nvidia-desktop:~$ sudo mkfs.ext4 /dev/sda
[sudo] password for nvidia:
mke2fs 1.44.1 (24-Mar-2018)
Discarding device blocks: done
Creating filesystem with 122096646 4k blocks and 30531584 inodes
Filesystem UUID: 42610884-eda4-4346-88a6-eea1dce28e0c
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
UUID 확인
nvidia@nvidia-desktop:~$ sudo blkid
:
:
/dev/sda: UUID="42610884-eda4-4346-88a6-eea1dce28e0c" TYPE="ext4"
:
:
자동 마운트 파일 수정
sudo vi /etc/fstab
:
UUID=42610884-eda4-4346-88a6-eea1dce28e0c /home/ssd ext4 defaults 0 0
마운트 확인
nvidia@nvidia-desktop:~$ sudo mkdir /home/ssd
nvidia@nvidia-desktop:~$ sudo mount -a
nvidia@nvidia-desktop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p1 28G 15G 13G 54% /
none 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 13M 3.9G 1% /dev/shm
tmpfs 3.9G 39M 3.8G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 786M 12K 786M 1% /run/user/120
tmpfs 786M 120K 786M 1% /run/user/1000
/dev/sda 458G 73M 435G 1% /home/ssd
Last updated
Was this helpful?