auto_mount_external_drive_at_startup_ubuntu_server_22_04
This is an old revision of the document!
Auto Mount External Drive at Startup in Ubuntu Server 22.04
See: https://developerinsider.co/auto-mount-drive-in-ubuntu-server-22-04-at-startup/
sudo mkdir /media/usbssd
~$ lsblk -o NAME,FSTYPE,UUID,MOUNTPOINTS NAME FSTYPE UUID MOUNTPOINTS loop1 squashfs /snap/core20/1950 loop2 squashfs /snap/lxd/24322 loop3 squashfs /snap/snapd/19361 loop4 squashfs /snap/snapd/19457 loop5 squashfs /snap/core20/1974 sda ├─sda1 ├─sda2 ext4 94e62aba-77a5-45db-a9ba-ca358fa589df /boot └─sda3 LVM2_member hXjBKC-htj8-a0Zn-El2e-C3Jk-Y24f-e3S0bN └─ubuntu--vg-ubuntu--lv ext4 0d6b481f-ec40-4951-b6d7-76ba4cde2dfb / sdb ├─sdb1 └─sdb2 sr0
How to Mount an External Drive on Ubuntu 22.04 Server
See: https://brightwhiz.com/how-to-mount-an-external-drive-on-ubuntu-22-04-server/
sudo fdisk -l
Disk /dev/loop1: 63.45 MiB, 66527232 bytes, 129936 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 /dev/loop2: 111.95 MiB, 117387264 bytes, 229272 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 /dev/loop3: 53.26 MiB, 55844864 bytes, 109072 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 /dev/loop4: 53.26 MiB, 55844864 bytes, 109072 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 /dev/loop5: 63.45 MiB, 66531328 bytes, 129944 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 /dev/sda: 1.82 TiB, 1999844147200 bytes, 3905945600 sectors Disk model: Virtual Disk 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: gpt Disk identifier: 299F1292-7D64-4846-83BD-CF8BD5034D74 Device Start End Sectors Size Type /dev/sda1 2048 4095 2048 1M BIOS boot /dev/sda2 4096 4198399 4194304 2G Linux filesystem /dev/sda3 4198400 3905943551 3901745152 1.8T Linux filesystem Disk /dev/mapper/ubuntu--vg-ubuntu--lv: 1.82 TiB, 1997692469248 bytes, 3901743104 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 The backup GPT table is corrupt, but the primary appears OK, so that will be used. Disk /dev/sdb: 3.81 TiB, 4194304000000 bytes, 1024000000 sectors Disk model: UDisk Units: sectors of 1 * 4096 = 4096 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: AB3F7F29-78F9-46D2-90C7-B2FC88C5E922 Device Start End Sectors Size Type /dev/sdb1 6 4095 4090 16M Microsoft reserved /dev/sdb2 4096 1023999993 1023995898 3.8T Microsoft basic data
auto_mount_external_drive_at_startup_ubuntu_server_22_04.1689791576.txt.gz · Last modified: 2023/07/19 18:32 by wikiadmin