New answers tagged

0 votes

Install packages on systems with secured /tmp and /var (noexec)

Move the apt cache Make the new directory (and a partial directory within): mkdir -p /my/new/cache/partial And then add the below line referencing that directory in either: a new config file in /etc/...
0 votes

How can a usb be detected but not show up anywhere?

Try in /var/run/user/$UID/gvfs /var/run/user/1000/gvfs
0 votes

Ubuntu 20.04 mounting swap even if disabled

Solved it myself by flipping the 'do not automount' option on the swap partition. Since Ubuntu uses LVM by default the attribute has to be set on the /dev/LMV0/SWAP instead of on the underlying device....
  • 19
0 votes

Ubuntu 20.04 mounting swap even if disabled

Swap partitions and swap files are mounted by systemd units these day in addition to /etc/fstab entries. There most likely is a systemd unit that mounts your swap partition ... Find it with: systemctl ...
  • 18.4k
0 votes

Ubuntu 20.04 mounting swap even if disabled

You can disable systemd-gpt-auto-generator by adding systemd.gpt_auto=no boot parameter in /etc/default/grub. And use only fstab. But I don't see a reason to keep a swap partition if you are not ...
  • 85.7k
1 vote

How to automatically power down internal HDD which is mounted and shared with samba?

You can use Disks application to setup automatic power down. Select your disk and click a buuton at the top right. hdparm is the backend of this application. You don't need to do anything else. Your ...
  • 85.7k
1 vote

Can't mount network drive properly over Wi-Fi

I had the same problem and I found a very good solution using automount with systemd. It is explained here : https://ppfeufer.de/linux-on-demand-nfs-and-samba-cifs-connections-with-systemd-automount/ ...
  • 162
5 votes

Name of internal hard drive keeps changing

Add a line to /etc/fstab to assign a mount point for the drive on every boot by following the below instructions from How to label disk partition in Linux . Label disk partition examples To see the ...
  • 106k
1 vote

ns3 installation error

You are likely correct - the issue is the unbalanced single quote in the NS3_MODULE_PATH component: ... , '/mnt/c/Users/Ayaan's/AppData/Local/Microsoft/WindowsApps', ... Assuming that: your ...
0 votes

I can't get the UUID of my partitioin to mount it

https://linuxhandbook.com/get-uuid-disk/ ls -l /dev/disk/by-uuid/ I recommend you put it into /etc/fstab so you don't have to mount manually every time. Just fill in the correct folder and UUID for ...
  • 59
1 vote

Cannot mount and play copy-protected dvd Ubuntu 22.04 (libdvdcss is installed!)

I wouldn't believe it myself if someone told me. The problem was in hardware. I installed DVD drive from my ancient Toshiba Satellite L300 into my Lenovo Thinkpad laptop and all the licensed DVDs ...
-1 votes

Cant write to internal HDD drive in Dolphin. But it works after remounting

Although the workaround with removing the data that marks the drive as "please don't change anything" through the official way of letting windows remove it may work in some cases, this might ...
  • 141
1 vote

Cannot mount and play copy-protected dvd Ubuntu 22.04 (libdvdcss is installed!)

Perhaps installing libdvdcss2 will help. This can be done trough APT: sudo apt update sudo apt install libdvd-pkg sudo dpkg-reconfigure libdvd-pkg
  • 589
0 votes

I can't unmount a "ghost" pendrive

In my case system-udevd had crashed (and was using 100% CPU). Killing that fixed it.
0 votes
Accepted

Apps can't access network drive

Those file systems use fuse. Fuse defaults to allowing only the user that mounted access, as many fuse filesystems doesn't have any real permissions. The relevant flag to set is allow_other when ...
  • 20.3k
0 votes

sudo: unable to allocate pty: No such device

PTY(AKA Pseudoterminal) is used for implementing terminal emulators such as xterm … It is involved in enabling the interpretation of passed data in the same way a real terminal would interpret the ...
  • 18.4k
-2 votes
Accepted

sudo: unable to allocate pty: No such device

Remove sudo from the commands.
0 votes

sdb Attached SCSI disk. But I can't find it anywhere

I contacted the manufacturer and identified the problem with their support. The cable was designed only for small HDDs 2.5 inch. So my 3.5 inch WD's solid parts were probably too heavy. My HDD was ...
  • 111
1 vote
Accepted

How to define the fstab entry for /dirname when /home is already defined

While you could do this with a bind mount, that seems like overkill. If all you want is to access the data in /home from the directory /whatever, a symlink is enough: sudo ln -s /home /whatever That ...
  • 96.1k
1 vote

How to find a device path in a udev program?

Udev: Pass the environment variable as: RUN+="/home/some/script/location/script.sh DEVNAME=$env{DEVNAME}" and in the script script.sh parse the $@ variable for the device name as: if [[ &...
  • 15.5k
0 votes

ExFat disk not detected

In my case, the problem with mounting appeared after I used SSD on Windows. Once I came back to Ubuntu, the mount point "/mnt/sdb1" started to be incorrect (Error mounting system-managed ...
0 votes

Can't install Ubuntu onto internal hdd from usb

Solved I finally solved the issue. The solution was rebooting the entire system. Here are the steps I took: At Installation Type I selected the option Something else Then I selected the option to ...
0 votes

mkdir can not create directory, no such file or directory after installing ubuntu and removing windows

Windows was not completely deleted. Unmount the 'Studies' drive, run ntfsfix and then remount the 'Studies' drive for it to work.
  • 106k
0 votes

NFS won't mount on boot

I solved same problem using x-systemd.automount. So my line in /etc/fstab looks like this: 10.4.111.123:/var/disk/auto_backup/backup /var/disk/auto_backup/backup nfs _netdev,noauto,x-...
  • 1
3 votes

How do I fix a typo in mount command output "relatime"?

The output is correct - it should be relatime. The output isn't meant to be standard English, and the word isn't supposed to be relative (or some other word). There is an option named atime for access ...
  • 188k
0 votes

Mount an ISO image in Wine?

If you don't want to mount iso in Ubuntu, however want to mount iso in Wine only. Right click on iso file, select Open With -> Archive Manager. Unpack iso content into new folder e.g. iso. In Wine ...
0 votes
Accepted

Unable to mount my 2nd hard drive after ubuntu installation

Make sure that first you install ntfs-3g and fuse. sudo apt install fuse ntfs-3g Then, use sudo mount -t ntfs /dev/sdb7 /mnt/hdd/ and make sure there is a folder named hdd in mnt and also there is a ...
0 votes

How to mount partition permanently?

For Booting time mount. you have to provide only auto option. It will work , provide mount id, mount place in your folder, file type, auto, 0, 1.

Top 50 recent answers are included