Closed bryanbocao closed 1 year ago
Mounting a new backup hard drive for both Ubuntu and Mac.
Before inserting the new hard drive:
(base) brcao@night:~/Repos$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 12.2M 1 loop /snap/snap-store/1216
loop2 7:2 0 55.7M 1 loop /snap/core18/2829
loop4 7:4 0 218.4M 1 loop /snap/gnome-3-34-1804/93
loop5 7:5 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop6 7:6 0 240.8M 1 loop /snap/gnome-3-34-1804/24
loop7 7:7 0 73.9M 1 loop /snap/core22/1663
loop9 7:9 0 505.1M 1 loop /snap/gnome-42-2204/176
loop10 7:10 0 12.9M 1 loop /snap/snap-store/1113
loop11 7:11 0 38.8M 1 loop /snap/snapd/21465
loop12 7:12 0 62.1M 1 loop /snap/gtk-common-themes/1506
loop13 7:13 0 38.8M 1 loop /snap/snapd/21759
loop14 7:14 0 504.2M 1 loop /snap/gnome-42-2204/172
loop15 7:15 0 55.4M 1 loop /snap/core18/2846
loop16 7:16 0 74.3M 1 loop /snap/core22/1621
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 1.1G 0 part
├─sda2 8:2 0 2G 0 part
└─sda3 8:3 0 928.5G 0 part
sdb 8:16 0 223.6G 0 disk
├─sdb1 8:17 0 512M 0 part /boot/efi
└─sdb2 8:18 0 223.1G 0 part /
After inserting the new hard drive:
(base) brcao@night:~/Repos$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 4K 1 loop /snap/bare/5
loop1 7:1 0 12.2M 1 loop /snap/snap-store/1216
loop2 7:2 0 55.7M 1 loop /snap/core18/2829
loop4 7:4 0 218.4M 1 loop /snap/gnome-3-34-1804/93
loop5 7:5 0 91.7M 1 loop /snap/gtk-common-themes/1535
loop6 7:6 0 240.8M 1 loop /snap/gnome-3-34-1804/24
loop7 7:7 0 73.9M 1 loop /snap/core22/1663
loop9 7:9 0 505.1M 1 loop /snap/gnome-42-2204/176
loop10 7:10 0 12.9M 1 loop /snap/snap-store/1113
loop11 7:11 0 38.8M 1 loop /snap/snapd/21465
loop12 7:12 0 62.1M 1 loop /snap/gtk-common-themes/1506
loop13 7:13 0 38.8M 1 loop /snap/snapd/21759
loop14 7:14 0 504.2M 1 loop /snap/gnome-42-2204/172
loop15 7:15 0 55.4M 1 loop /snap/core18/2846
loop16 7:16 0 74.3M 1 loop /snap/core22/1621
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 1.1G 0 part
├─sda2 8:2 0 2G 0 part
└─sda3 8:3 0 928.5G 0 part
sdb 8:16 0 223.6G 0 disk
├─sdb1 8:17 0 512M 0 part /boot/efi
└─sdb2 8:18 0 223.1G 0 part /
sdc 8:32 0 16.4T 0 disk
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
sudo mkfs.exfat -n Data18TB /dev/sdc
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.
(base) brcao@night:/media/brcao$ sudo mkdir Data18TB
sudo vim /etc/fstab
Append the following line to the end of the file:
/dev/sdc /media/brcao/Data18TB exfat default 0 0
Mount the hard drive:
sudo mount /media/brcao/Data18TB
FUSE exfat 1.3.0
Then it can be accessed by the system:
(base) brcao@night:/media/brcao$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 16G 0 16G 0% /dev
tmpfs 3.2G 2.0M 3.2G 1% /run
/dev/sdb2 219G 56G 153G 27% /
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/loop0 128K 128K 0 100% /snap/bare/5
/dev/loop2 56M 56M 0 100% /snap/core18/2829
/dev/loop4 219M 219M 0 100% /snap/gnome-3-34-1804/93
/dev/loop5 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop11 39M 39M 0 100% /snap/snapd/21465
/dev/loop6 241M 241M 0 100% /snap/gnome-3-34-1804/24
/dev/loop10 13M 13M 0 100% /snap/snap-store/1113
/dev/loop9 506M 506M 0 100% /snap/gnome-42-2204/176
/dev/loop12 63M 63M 0 100% /snap/gtk-common-themes/1506
/dev/loop14 505M 505M 0 100% /snap/gnome-42-2204/172
/dev/loop13 39M 39M 0 100% /snap/snapd/21759
/dev/sdb1 511M 6.1M 505M 2% /boot/efi
tmpfs 3.2G 16K 3.2G 1% /run/user/125
/dev/loop15 56M 56M 0 100% /snap/core18/2846
/dev/loop16 75M 75M 0 100% /snap/core22/1621
/dev/loop1 13M 13M 0 100% /snap/snap-store/1216
/dev/loop7 74M 74M 0 100% /snap/core22/1663
tmpfs 3.2G 8.0K 3.2G 1% /run/user/1000
/dev/sdc 17T 541M 17T 1% /media/brcao/Data18TB
But later I got this error message when I attempted to mount it on my MacBook:
When I format the data by the Disk Utility tool directly:
The hard drive works normally on Mac, including accessing, copying and pasting files into it. Even later it works on my Ubuntu 20 machines, including accessing, copying and pasting files into it.
Steps | Ubuntu | Mac |
---|---|---|
Ubuntu CMD exfat | Writable✅ | Unwritable❌ |
Ubuntu CMD exfat -> Mac Disk Utility exfat | Writable✅ | Writable✅ |
Mac Disk Utility exfat | TODO🔄 | TODO🔄 |
List all disk devices
Note
sdg 8:96 0 3.7T 0 disk
is the target new disk, which is not shown bydf -h
:(
sudo mkfs.ext4 /dev/sdg
forext4
) Noteexfat
works for both Ubuntu and Mac andeData4TB
is the label name:Create a folder
/media/brcao/eData4TB
where you want to mount the new hard drive:Append the following line to the end of the file:
Mount the hard drive:
Then it can be accessed by the system: