BigVault,
@BigVault@kbin.social avatar

I'd just like to say that this is where things like Google Bard/Bing Chat can really help you out if you're semi-competent but stuck.

Using the output from lsblk on one of my homelab machines I get the below:

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 111.8G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 109.8G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 54.9G 0 lvm /
sdb 8:16 0 465.8G 0 disk
└─sdb1 8:17 0 465.8G 0 part /mnt/usbhdd1

Giving Bard the prompt "how do I mount my ext4 formatted usb hard drive to /mnt/usbhdd1 at boot in Ubuntu server."

Sure, here are the steps on how to mount your ext4 formatted USB hard drive to /mnt/usbhdd1 at boot in Ubuntu Server:

Identify the USB hard drive. Use the lsblk command to list all of the block devices on your system. This will show you the UUID of your USB hard drive.
Create a mount point. Use the mkdir command to create a directory where you want to mount your USB hard drive. In this example, we will use the directory /mnt/usbhdd1.
Edit the /etc/fstab file. This file contains a list of all of the filesystems that are mounted at boot. Open the file with your favorite text editor and add the following line:
Code snippet
UUID=YOUR_USB_HARD_DRIVE_UUID /mnt/usbhdd1 ext4 defaults 0 0
Use code with caution. Learn more
Replace YOUR_USB_HARD_DRIVE_UUID with the UUID of your USB hard drive.
4. Save the /etc/fstab file and reboot your system.

After your system reboots, your USB hard drive will be mounted to the directory /mnt/usbhdd1. You can then access the files on your USB hard drive from this directory.

Here are some additional notes:

The UUID=YOUR_USB_HARD_DRIVE_UUID entry in the /etc/fstab file is the most reliable way to identify your USB hard drive. If you do not know the UUID of your USB hard drive, you can use the blkid command to find it.
The ext4 filesystem type is the default filesystem type for USB hard drives in Ubuntu Server. If your USB hard drive is formatted with a different filesystem type, you will need to specify the correct filesystem type in the /etc/fstab file.
The defaults options in the /etc/fstab file tells the system to mount the filesystem with the default options. These options include mounting the filesystem read-write and enabling file system checking.
The 0 0 values in the /etc/fstab file tell the system to not check the filesystem for errors at boot and to not mount the filesystem in read-only mode.
I hope this helps! Let me know if you have any other questions.

bing chat:

To mount an ext4 formatted USB hard drive to /mnt/usbhdd1 at boot in Ubuntu server, you can follow these steps:

  1. Get device info: $ lsblk or $ sudo fdisk -l
  2. Create the mount point. In the example below, the mount point name is /mnt/usbhdd1. You can name it anything you want. $ sudo mkdir /mnt/usbhdd1
  3. Edit the /etc/fstab file and add the following line at the end of the file:
UUID=<UUID> /mnt/usbhdd1 ext4 defaults 0 0

Replace <UUID> with the UUID of your USB hard drive. You can get it by running $ sudo blkid /dev/sdX1, where X is the letter assigned to your USB hard drive.

After you save and close the file, you can run $ sudo mount -a to mount all file systems listed in /etc/fstab.

I hope this helps! Let me know if you have any other questions.

Either Bard/Bing Chat can be a real help when you have some idea on what to do but are stuck.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • [email protected]
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • feritale
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • SuperSentai
  • All magazines