mount

Storage drive does not unmount when user logs out

Storage drive does not unmount when user logs out On Ubuntu 22.04 I have two users that share a storage drive (it’s also shared with Windows, therefore I need it to be formatted as NTFS and on a separate drive). Both Ubuntu users have the auto-mount option enabled on that drive but when one user …

Total answers: 2

Remove /dev mount point without unmount in Host

Remove /dev mount point without unmount in Host Here is the unmount method for unmounting all previously mounted folders: https://unix.stackexchange.com/questions/61885/how-to-unmount-a-formerly-chrootd-filesystem I use the following command to mount the /sys and /dev to the chroot from the Ubuntu host: cd /path/to/chroot/ mount -t sysfs /sys sys mount -o bind /dev dev If I delete the /sys …

Total answers: 1

24.04 change to mount command

24.04 change to mount command Previously the following would mount a share that exists on a ubuntu 20.04 system: sudo mount -t cifs -o user=guest,password=,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,noperm //fossa/den /media/fossa If given from a new 24.04 system, the command fails with error 22, invalid argument and, it is demanding a password for guest. What is wrong with my …

Total answers: 1

Mounting a Disk Image

Mounting a Disk Image I’m trying to create a disk image and mount the partition for further work, but I’m encountering a frustrating error message: "wrong fs type, bad option, bad superblock." Here’s the steps I took and the output I received: $ dd if=/dev/zero of=test.img status=progress bs=200M count=1 1+0 records in 1+0 records out …

Total answers: 3

Force reboot if `fstab` mount fails instead of going to emergency mode

Force reboot if `fstab` mount fails instead of going to emergency mode I have a fstab with read-only root-fs and also a rw /var mounted on a USB reader with a µSD in it. Sometimes at boot time system fails to mount /var.  It looks like the system cannot find the partition on the µSD.  My best guess is that the …

Total answers: 1

What is the difference between /mnt/boot and /boot

What is the difference between /mnt/boot and /boot I’m installing Arch Linux and going by the instructions I want to mount the EFI partition at /boot, however I see on the internet people using both /boot and /mnt/boot and I have no idea what the difference is, if any. Asked By: user107586 || Source If …

Total answers: 1

Ubuntu 22.04 on Raspberry Pi: /var/cache/fontconfig Gets Created Before /var Is Mounted

Ubuntu 22.04 on Raspberry Pi: /var/cache/fontconfig Gets Created Before /var Is Mounted I’m running Ubuntu 22.04 (Jammy Jellyfish, ARM64) on a Raspberry Pi. After imaging the Pi’s SSD, I re-partitioned the drive and mirrored the contents of /var onto the new partition (verified), renamed the original /var to /var.old before making a fresh, empty /var …

Total answers: 1

Docker Relocate to external USB SSD Problem

Docker Relocate to external USB SSD Problem Ubuntu 20.04.5 LTS Docker version 24.0.2 I am trying to relocate the /var/lib/docker directory to my USB SSD flash drive to save memory on the internal storage, however, I am having difficulty doing so. I have attempted to modify the docker service to set a different data-root, but …

Total answers: 1

Mounting Drives

Mounting Drives The last time I touched Unix of any flavor it was Solaris, so please forgive me. I’m am so very rusty. I decided to build a home lab and get back into things. I’ve built, destroyed, and rebuilt my Ubuntu server more times in the last week than I can count. But I …

Total answers: 1

Fresh installation of 20.04 makes three partitions – right?

Fresh installation of 20.04 makes three partitions – right? Now to get to the bottom of my problems mentioned in another thread, I decided to install 20.04 anew. In order to not produce problems from the start on, I let the installation program do as it wished and use the whole disc. It then left …

Total answers: 1

unable to mount external drive from cron (using udisksctl)

unable to mount external drive from cron (using udisksctl) GOAL I’d like to mount an external drive using cron for automatic backups, preferably with udisksctl. PROBLEM udisksctl mount -b /dev/sdXY works fine from the command line or shell script, but when I run it from cron (using my own cron table), it fails with the …

Total answers: 2

How do I rescue an encrypted LUKS partition after failed shrink

How do I rescue an encrypted LUKS partition after failed shrink I had an encrypted ext4 partition on a Samsung T7 1TB USB drive. It was LUKS (I believe this may be called a LUKS container?) The partition was 850GB. It had about 130GB in use. I also had an unencrypted 100GB NTFS partition and …

Total answers: 1

Files created by user in a mounted partition show root as owner

Files created by user in a mounted partition show root as owner I have a dual boot system (Windows 10/Archlinux) and I have created a NFTS partition which is mounted at startup via /etc/fstab so I can access it from both OS’es. The fstab file shows that the partition is mounted with read and write …

Total answers: 1

Systemd does not see external drive partition when running ExecStart command

Systemd does not see external drive partition when running ExecStart command I am trying to run calibre-server at startup. Here is an example of the service content [Unit] Description=calibre Content server After=network.target [Service] Type=simple User=root Group=root ExecStart=/opt/calibre/calibre-server "/path-to-mounted-external-hdd-partition/Calibre Library" [Install] WantedBy=multi-user.target When I check the status of the service: sudo systemctl status calibre-server.service I receive …

Total answers: 4

Cannot mout old NAS on Ubuntu 22.04

Cannot mout old NAS on Ubuntu 22.04 I have an old NAS, a Synology CS407, which I want to mount on my Ubuntu server running Ubuntu 22.04.3 LTS. However, I cannot succeed in mounting it. I have tried mounting it with NFS and SMB/CIFS, but both don’t work. I would like to use SMB, as …

Total answers: 1

Host and fstab file messed up after try to change swap size

Host and fstab file messed up after try to change swap size I was trying to increase the swap size of my Ubuntu. I, naïve, followed the steps of this answer: Check the swap that is in use: sudo swapon -s If swap partition(s) are found: sudo swapoff -a sudo nano -Bw /etc/fstab Add # …

Total answers: 2

"Error Mounting dev/sda at /media/fjdpaco/USB Stick:Unkown error when mounting dev/sda"

"Error Mounting dev/sda at /media/fjdpaco/USB Stick:Unkown error when mounting dev/sda" I have an Acer Aspire3 laptop, and I am trying to open up a Memorex 8GB USB stick from the Files application in Ubuntu. I Given that I have important data I don’t want to accidentally destroy I don’t want to touch anything without an …

Total answers: 1

Understanding the auto-allocated disk layout on OpenBSD

Understanding the auto-allocated disk layout on OpenBSD I am attempting to install OpenBSD7.4 on an amd64 arch with a 1TB drive. The machine will run an X windows system and need plently of room to store files. I selected "whole disk GPT" at the prompt (though I’m unsure whether MBR might be the better option). …

Total answers: 1

How to remount a drive without root?

How to remount a drive without root? I want to allow a user script to remount a drive as "ro" or "rw". By using the user option in the fstab, I can successfully mount and unmount the drive as a user but the -o remount,rw fails. Is it not possible for the user to use …

Total answers: 1