Closed bryanbocao closed 11 months ago
lsblk
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 55.7M 1 loop /snap/core18/2790
loop2 7:2 0 497M 1 loop /snap/gnome-42-2204/141
loop3 7:3 0 240.8M 1 loop /snap/gnome-3-34-1804/24
loop4 7:4 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop5 7:5 0 73.9M 1 loop /snap/core22/858
loop6 7:6 0 496.9M 1 loop /snap/gnome-42-2204/132
loop7 7:7 0 62.1M 1 loop /snap/gtk-common-themes/1506
loop8 7:8 0 49.8M 1 loop /snap/snap-store/433
loop9 7:9 0 218.4M 1 loop /snap/gnome-3-34-1804/93
loop10 7:10 0 12.3M 1 loop /snap/snap-store/959
loop11 7:11 0 40.9M 1 loop /snap/snapd/20092
loop12 7:12 0 55.7M 1 loop /snap/core18/2785
loop13 7:13 0 40.9M 1 loop /snap/snapd/20290
loop14 7:14 0 73.9M 1 loop /snap/core22/864
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 512M 0 part /boot/efi
└─sda2 8:2 0 931G 0 part /
sdb 8:16 0 1.8T 0 disk /aw2data
sdc 8:32 0 1.8T 0 disk /media/brcao/eData2
sde 8:64 0 14.6T 0 disk
├─sde1 8:65 0 300M 0 part
└─sde2 8:66 0 14.6T 0 part
sdf 8:80 0 14.6T 0 disk
├─sdf1 8:81 0 300M 0 part
└─sdf2 8:82 0 14.6T 0 part /media/brcao/Data16TB
sr0 11:0 1 1024M 0 rom
The corresponding NAME is sde
but not shown by df -h
:
df -h
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 3.4M 6.3G 1% /run
/dev/sda2 916G 436G 433G 51% /
tmpfs 32G 188M 32G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/loop0 128K 128K 0 100% /snap/bare/5
/dev/loop1 56M 56M 0 100% /snap/core18/2790
/dev/loop2 497M 497M 0 100% /snap/gnome-42-2204/141
/dev/loop3 241M 241M 0 100% /snap/gnome-3-34-1804/24
/dev/loop4 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop5 74M 74M 0 100% /snap/core22/858
/dev/loop6 497M 497M 0 100% /snap/gnome-42-2204/132
/dev/loop8 50M 50M 0 100% /snap/snap-store/433
/dev/loop7 63M 63M 0 100% /snap/gtk-common-themes/1506
/dev/loop10 13M 13M 0 100% /snap/snap-store/959
/dev/loop9 219M 219M 0 100% /snap/gnome-3-34-1804/93
/dev/loop13 41M 41M 0 100% /snap/snapd/20290
/dev/loop14 74M 74M 0 100% /snap/core22/864
/dev/loop11 41M 41M 0 100% /snap/snapd/20092
/dev/loop12 56M 56M 0 100% /snap/core18/2785
/dev/sda1 511M 6.1M 505M 2% /boot/efi
/dev/sdb 1.8T 1.3T 490G 72% /aw2data
tmpfs 6.3G 20K 6.3G 1% /run/user/125
tmpfs 6.3G 64K 6.3G 1% /run/user/1000
/dev/sdc 1.8T 1.5T 267G 85% /media/brcao/eData2
/dev/sdf2 15T 6.4T 8.3T 44% /media/brcao/Data16TB
Create the mount point for the new drive (folder name):
sudo mkdir /media/brcao/Data16TB_00
sudo vim /etc/fstab
add the following line to the end of the file
/dev/sde2 /media/brcao/Data16TB_00 ext4 defaults 0 0
sudo mount /media/brcao/Data16TB_00
If the following problem occurs
mount: /media/brcao/Data16TB_00: wrong fs type, bad option, bad superblock on /dev/sde2, missing codepage or helper program, or other error.
do (warning: may delete the data, make sure the hard drive has no data or data has been backed up!)
sudo mkfs.ext4 /dev/sde2
sudo mkfs.ext4 /dev/sde2
mke2fs 1.45.5 (07-Jan-2020)
Found a gpt partition table in /dev/sde2
Proceed anyway? (y,N) y
Creating filesystem with 3906469888 4k blocks and 488308736 inodes
Filesystem UUID: f0f76749-68a7-4176-bc26-8a710d1f5d7d
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544, 1934917632,
2560000000, 3855122432
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done
and sudo mount /media/brcao/Data16TB_00
again, you will see the new disk by df -h
For file system accessible by both Mac and Ubuntu:
sudo vim /etc/fstab
add the following line to the end of the file
/dev/sde2 /media/brcao/Data16TB_00 exfat defaults 0 0
Hard drive
Data16TB_00
was formatted on Mac https://github.com/bryanbocao/quick-cheatsheets/issues/19.When using Ubuntu 20.04 to access it for the first time
got the error message: