Debian Configuration :: Systemd Automounts For Removable Media Not Timing Out

Jul 18, 2015

I have the following hardware setup:

a NAS running Debian that frequently (but not always) has two removable media attached,a Debian desktop that mounts the above NAS via sshfs,the aforementioned removable media are symlinked to the directory on tha NAS that is then mounted by the desktop.

What I'd like this setup to do is to immediately time out if mounts as unavailable. Instead, I only get the expected behaviour if the NAS is down (the ssh client takes about 3 seconds to do that); if it's up, the removable media automounts (they are symlinked to the directory shared with the desktop) seem to never time out, ever. This happens locally on the NAS as well, when ssh'ing to the NAS and trying to run `ls /media/Storage` or `ls /media/Backup`, these commands never return. It's as if systemd was ignoring the x-systemd.device-timeout setting on the NAS.

The relevant part of the NAS's fstab:

Code: Select all/dev/sdb1       /media/Backup   ext4    defaults,noauto,x-systemd.automount,x-systemd.device-timeout=1s,rw,user,nofail,x-systemd.idle-timeout=30s       0       1
/dev/sdc1       /media/Storage  ext4    defaults,noauto,x-systemd.automount,x-systemd.device-timeout=1s,rw,exec,nofail,x-systemd.idle-timeout=5min      0       1

[Code] ....

I find it highly interesting that despite both removable media being detached, only one is flagged as having a dependency failed. Both paths exhibit the hang behaviour, though.

What can I do to actually time out when the media are not there?

View 4 Replies


ADVERTISEMENT

Debian Configuration :: Plex Media Server Startup Script Due To Systemd

May 6, 2015

My plex media server does not work with systemd apparently but running the command below makes plex startup properly

Code: Select all/usr/sbin/start_pms &

Is there anyway to make this command run on my computer at startup.

I am running debian 8 jessie.

View 4 Replies View Related

Ubuntu :: USB Automounts With Root Privileges As /media/usb0?

Oct 25, 2010

not sure if this is a silly issue or what. I recently upgraded to 10.10. When I insert my usb device, it automounts as /media/usb0, with root privileges. I have to manually unmount it, and afterwards if I select the "mount (drivename)" usb stick from Places it will automount as /media/(devicename) with proper

View 2 Replies View Related

Debian :: How To Change Permissions On Exfat Removable Media

Jul 20, 2015

I'm going traveling and I had the bright idea of putting my sensitive and irreplaceable files on an sd card. Then if I leave my stuff in a sketchy hostel for the day, I can easily take the card and might lose only a replaceable netbook. The problem is that I want some files to have 600 permissions (rw-------), readable and writable only by owner.

But no power on earth seems to be able to force a fuse-ified filesystem to pay attention. Whether I try "chmod 600 filename.txt" as the owner/user or as sudo makes no difference. Nothing works. The sd card is mounted with a line in /etc/fstab:

Code: Select allUUID=0000-0000 /mnt/64_GB_sdxc  exfat  auto,rw,user,exec,uid=1000,gid=1000,dmask=0022,flush,fmask=133  0    0

So the user owns the files and they have typical permissions instead of the automounted default of 700. That's all very nice, but I'd like to be able to change permissions on just a few files!

View 3 Replies View Related

Debian Multimedia :: Disable Write Caching For Removable Media?

Feb 9, 2010

how to make removable media (e.g. USB sticks) not have any write caching. I want to prevent data loss when they are removed after file copying appears done but before write caches are written. I'm using Gnome on Squeeze.

I've found suggestions of adding the 'sync' mount option to /system/storage/default_options/vfat/mount_options in the Gnome configuration. However this doesn't seem to completely eliminate write buffering, as the drive activity light continues for several seconds after file copying appears done, and unmounting drives produces a dialog box which says to wait whilst data is written to disk.

View 5 Replies View Related

Debian Installation :: Installs Grub And Then Will Boot The Installer But Is Still Tries To Find The Removable Media?

Jan 1, 2011

Im trying to do a frugal install off the hard drive (no usb,cdrom) with unetbootin. It installs grub and then will boot the installer but is still tries to find the removable media. Whats going on????

View 2 Replies View Related

Debian Configuration :: Systemd Custom Service

Aug 4, 2015

On macbook air 6.2, i've installed a Debian jessie mate DE, dual boot using refind. I'm currently fine-tuning it. I've made a script following powertop advice:

Code: Select all[newb@debian /etc/systemd/system]$ cat mba_kb_sp.sh
#!/bin/sh
echo 'auto' > '/sys/bus/usb/devices/1-3.1/power/control';
echo 'auto' > '/sys/bus/usb/devices/1-3.2/power/control';
echo 'auto' > '/sys/bus/usb/devices/1-5/power/control';
exit 0

[Code] ....

All seems to work fine, however when i check the sys file it didn't change. But I can start manually the systemd service and, this time, it works.

View 2 Replies View Related

Debian Configuration :: Installing Libpam-systemd

Aug 12, 2015

I upgraded my machine from Wheezy to Jessie, opted to not install systemd yet. When i try to upgrade kde-plasma-desktop, apt doesn't let me do it.

For some reason "libpam-systemd : Depends: systemd (= 215-17+deb8u1) but it is not installable"

Installing systemd-shim doesn't work. Libpam-systemd package site gives impression that you would be able to use systemd or systemd-shim.

Tried looking through changelog, but it didn't really give any hint.

At 215-6 there are just
Code: Select allSwitch libpam-systemd dependencies to prefer systemd-shim over
    systemd-sysv, to implement the CTTE decision #746578. This is a no-op on
    systems which already have systemd-sysv installed, but will prevent
    installing that on upgrades. (Closes: #769747)
Version of libpam-systemd that would be installed is "Candidate: 215-17+deb8u1"

View 2 Replies View Related

Debian Configuration :: Systemd Boot Is Now Verbose

Aug 13, 2015

When I first started running Jessie 8.1 I noticed that after the disk check the boot was quiet, ie. no messages to the terminal . However, something has happened and now when I boot the machine I get a verbose listing of all the processes being started. Is there a way to change it back to the way it was? In other words a quiet boot. The only thing I know of that has been 'anomalous' behavior is the other day when doing a mp4 to avi conversion, using avconv, I apparently had an over temp condition which closed my LXDE session and brought me to the login prompt. Don't know what other info one may need but feel free to ask for more, if necessary.

View 13 Replies View Related

Debian Configuration :: Systemd - NTP Host Name Not Found

Apr 14, 2016

my system keeps on telling me about an error:

Code: Select allsudo journalctl  -p 0..3
Apr 14 10:36:11 debian ntpd_intres[682]: host name not found: ptbtime1.ptb.de
Apr 14 10:36:11 debian ntpd_intres[682]: host name not found: ptbtime2.ptb.de
Apr 14 10:36:11 debian ntpd_intres[682]: host name not found: ptbtime3.ptb.de

A quick check

Code: Select allsystemctl status ntp.service
ntp.service - LSB: Start NTP daemon
   Loaded: loaded (/etc/init.d/ntp)
   
[code]...

3 packets transmitted, 0 received, 100% packet loss, time 1999ms.Same result when using the standard Debian ntp time servers like "server 0.debian.pool.ntp.org iburst" in /etc/ntp.conf.

View 13 Replies View Related

Debian Configuration :: Enabling Persistent Logs With Systemd

Dec 1, 2015

How to enable persistent logging with systemd? I find it really weird that all this machinery that is systemd doesn't store persistent logs, what if I'm trying to retrieve some information regarding previous boots?

For instance: I have random suspend issues, after rebooting the computer there's no trace left in the logs of what happened, and furthermore (at least in Jessie) I can no longer see a pm-suspend log.

So, at first it sounds like all you have to do is edit journald.conf setting #Storage=auto to "persistent" and create the /var/log/journal directory, but then reading here /usr/share/doc/systemd/README.Debian

Code: Select allEnabling persistent logging in journald
=======================================

To enable persistent logging, create /var/log/journal and set up proper permissions:

install -d -g systemd-journal /var/log/journal
setfacl -R -nm g:adm:rx,d:g:adm:rx /var/log/journal

and here [URL] ....

There are two main reasons why I decided to not enable persistent logging just yet ....

We did get corrupt journal files in the past where the journal then no longer worked at all [1]. With volatile you can just reboot and have a clean state again. Admittedly, the journal has seen a lot of improvements in the mean time and hopefully is more robust, so this point is no longer true.

We still install rsyslog by default. That means we get store them twice. This is something we don't want to do atm.

View 3 Replies View Related

Debian Configuration :: Udev / Systemd Change Some Rules In 8.0

Apr 18, 2016

I have SSD drives without SCT support, because of this I want to tune /sys/block/device-name/device/timeout in order to force mdadm put these drives offline. So, I can see my drive like this:

/dev/disk/by-id/ata-OCZ-SABER1000_A22MJ061512000074.

Where can I tune /sys/block/device-name/device/timeout from 30 to 7 sec only for these drive? I don't want to use rc.local.

Can I create right udev rules for it in /etc/udev/rules.d?

I want to avoid any conflict with /lib/udev/rules.d.

Code: Select all# udevadm monitor --environment --udev
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing

UDEV  [9302.549485] add      /devices/pci0000:00/0000:00:01.2/0000:03:00.0/host0/target0:0:0 (scsi)
ACTION=add
DEVPATH=/devices/pci0000:00/0000:00:01.2/0000:03:00.0/host0/target0:0:0
DEVTYPE=scsi_target
SEQNUM=5210
SUBSYSTEM=scsi

[Code] ....

View 0 Replies View Related

Debian Configuration :: Systemd Fails To Raise Up Network Interface

Mar 15, 2016

Is this a problem of systemd or network-manager however when I started to see this alert I noticed the nm-applet doesn't start automatically anymore.

Code: Select allsystemctl status network
networking.service       network-online.target    network.target
network-manager.service  network-pre.target       
zagor@Debian-635:~$ systemctl status networking.service
● networking.service - Raise network interfaces
   Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor prese

[Code] ....

View 5 Replies View Related

Debian Configuration :: Corrupted (permanent) Systemd Logs In Jessie

Apr 22, 2016

I've enabled permanent systemd logs in Jessie, and after a while I'm seeing messages about corrupted logs when checking with journalctl --verify

Code: Select allInvalid tail monotonic timestamp 0%
File corruption detected at /var/log/journal/..........

as far as I can see, there is currently no option to delete this files from within systemd facilities, is that correct?

Should they be deleted manually, or just left alone?

Apparently I can still read all older logs regardless of such reported corruption, using the journalctl --boot -n option.

EDIT:Another thing coming to mind is that this has been happening for me not only in Jessie but in every systemd-based distro that I've tried, once permanent logging is enabled: is that some kind of systemd bug?

What would exactly mean

Code: Select allFile corruption detected at /var/log/journal/38d5e6b861134eadb37cbd64b98a66bd/user-65534@d1745ac610d2459f940a24f27abd6d47-0000000000000f14-00051b8d2dabdcac.journal:000000 (of 8388608 bytes, 0%)

in particular, the 0% of 8388608 bytes part ?

View 0 Replies View Related

Debian Configuration :: Hardware Event Listening Scripts With Systemd Not Acpid

Aug 22, 2015

Just migrated to stretch, and noticed we're not using acpid anymore. Had couple of scripts at /etc/acpi/events listening for some events. What would be the alternative with systemd?

View 2 Replies View Related

Debian Configuration :: Systemd Can't Read Boot Logs Of Failed Boots

Mar 25, 2016

I'm getting BSOD when I'm booting my main system (debian 8 fully updated). I get a BSOD with a _ sign. URL...because I can't access to failed boots files. Besides having the files

Code: Select allfelipe@debian ~ % ls /var/log/journal   
362d07f9e18b45f8aec4575c347f181d  92e8a448f7a348719da129184a7e6821

Code: Select allfelipe@debian ~ % journalctl --list-boots
 0 0c51ae5b67f144059c5470dbe345d621 vie 2016-03-25 09:05:29 ART—vie 2016-03-25 09:11:58 ART

View 3 Replies View Related

Debian Configuration :: Wheezy - After Update Systemd Turn Off Laptop Screen On Boot

Sep 25, 2015

I decided to update all the software on my computer. Fortunately, it upgraded kernel version 3.14 to 3.16. I was happy to learn that suspend now worked on my laptop by calling pm-suspend, but it did not worked by closing the lid. So I search and found on debian's website that installing systemd and adding some config lines in /etc/systemd/logind.conf would sove the issue. So I followed the procedure and did like instructed, to end up with a computer that boots on black screen.

The last verbrose line I see on boot up is "kvm disabled by bios" and then it shutdown down the screen. The computer works, as I can login and shutdown by doing those operation blindly.

I tried removing systemd but it still does not work. If I use the old kernel 3.14 I can boot without any problem, but if I use kernel 3.16, I boot to a black screen. I remember successfully booting in 3.16 before installing systemd.

View 4 Replies View Related

Ubuntu :: Missing Removable Media?

Jan 26, 2009

i downloaded and installed ubuntu 8.1 and when i pop in a cd it tells me that it cannot find autorun. i seem to be missing the removable drives and media tab which i'm told should be located under system/preferances.

View 1 Replies View Related

Ubuntu :: Removable Media Not Automatically Mounted?

May 12, 2010

I use Ubuntu 10.04, and whenever I insert media into a removable media drive, it does not come up on my desktop automatically. I need to go to Computer, then to the drive. It then appears on my desktop. Is there any way to make the device automatically appear? This problem occurs for any removable media. I am using Ubuntu 10.04.

View 4 Replies View Related

Ubuntu :: Configuring Autorun For Removable Media?

Mar 28, 2011

(Ubuntu 10.10, Unity desktop)How can I configure Ubuntu to launch gtkpod when I connect my iPod? It's currently launching Rhythmbox. I can't find anything about removable media in Unity's Toolbar > Applications

View 2 Replies View Related

Red Hat :: Changing Automount Options For Removable Media?

Mar 31, 2011

This appears to be a simple problem, but I struggled my way around google, trying to figure out the right words to search for, with no real success. The problem:When I plug-in any usb device or an external hard disk, my RedHat automatically mounts it to /media/<device_name>. Unfortunately, it's owner and group are both root, whereas, I would like to add other users to have write access (say, all users in a group usb_group to be able to write stuff in it). Currently only read access is there for others. I would like to change it to write access to a particular group and I can add the

View 5 Replies View Related

Fedora :: Mount Removable Media From Command Line

Jul 6, 2010

I'm using Fedora 12, and I want to mount/unmount my USB memory stick from the command line. I know I could edit /etc/fstab and so on, but I want to emulate what happens when you mount using the GUI (I use KDE and the device notifier), that is, I want to be able to do this as an unprivileged user and not have to know the mount point exists in advance.

I'm sure in older versions of Fedora there was a command something like `gnome-user-mount' which let me do this knowing only the filesystem label... What is the current equivalent?

View 5 Replies View Related

Fedora :: Disable Automounting Removable Media When They Inserted (CD And DVD)?

Dec 23, 2010

I want to disable automounting removable media when they are inserted, especially CD and DVD. I use F13 and Gnome. I went through System/Preferences/File Management/Media and set everything to "Do Nothing", see below:

I have installed gconf-editor and verified that all automounting options are unchecked:

according to "/sbin/chkconfig --list" haldaemon is off and automount is not installed.
What else should I check?

I would not mind if USB (flash) disks were automounted

View 3 Replies View Related

Ubuntu :: Has 'Removable Drives And Media' Option Been Moved Somewhere Else In 10.04?

Jul 23, 2010

I'm running a fresh 64-bit install of Ubuntu 10.04. I no longer have a System->Preferences->Removable Drives and Media option in my menus, and need to re-configure it (I had set it to "Do Nothing" and "Always do this action" sometime in the past, but now I want to change it)I have right-clicked my menu, went to edit, and made sure it wasn't un-checked)Has the "Removable Drives and Media" option been moved somewhere else in 10.04?

View 4 Replies View Related

General :: Disappear Desktop Icon For Removable Media?

Mar 16, 2010

Ubuntu 9.04 Gnome Desktop (although I have seen the same situation in other versions).When I have a removable media device installed such as a USB flash drive, a CD/DVD or an SD card in the built in reader I have a corresponding icon on the desktop. So here is my situation...I have a 16 GB SDHC card installed in the reader in my netbook as additional storage. As the main solid state "hard drive" itself is only 16 GB I leave the card in at all times. I would like to do away with the desktop icon as I never use it to access the SD card. Any way to do this? I believe it appear as part of the HAL process so perhaps it will go away with 10.04.

View 2 Replies View Related

Ubuntu :: Disable Auto-mounting Of Removable Media

Jul 16, 2009

I want to disable automounting of removable media such as anything on USB, memory cards, and even eSATA. I do want the device node to be set up, but that's it.

View 3 Replies View Related

Security :: Restricting Remote Users From Accessing Removable Media?

Mar 17, 2011

I run a system that users may log into either remotely or physically. Multiple users may be logged in simultaneously because of the remote access, but only one user can be physically logged in at a time.With the current setup, however, if the physical user inserts a flash drive (which the OS mounts automatically) then the remote users gain access to the removable media.

View 6 Replies View Related

Ubuntu Installation :: Unabling Autorun Without Removable Drives And Media Option?

Jan 10, 2010

I've just partitioned my hard drive with GParted so that I have space to install and run Windows OS based programmes such as Monkey Island (wine simply won't work) and other PC games. I have the Windows XP SP2 Installation CD but my OS (Intrepid Ibex) won't allow me to autorun the CD and proceed to installation.

Now having hunted around the net little, it seems the answer is System->Preferences->Removable Drives and Media. Problem is, I don't have a Removable Drives and Media option on this menu. Is there a workaround for this? E.g., is there a way of using the Terminal to enable autorun, or is there another way I can do this?As I'm pretty new to this thing, feel free to use short words and detailed explanations.

View 3 Replies View Related

Ubuntu :: Change Default Permissions Of Removable Media Mounted Via Nautilus?

May 2, 2010

behavior in 9.04:plugged in a disk, mounted it and it as readable to the world.this is intended because it is shared via samba.behavior in 10.04:the disks have 700, meaning, they are not readable by samba.this is a problem.this is the best solution I've found so far:http://www.mail-archive.com/ubuntu-u.../msg10951.htmlexcept, that the mentioned means to fix this are gone.(gconf-editor -> ..., storage and preferences -> removable media)after 3 hours of googleing and reading I'm rather upset about this bug.so please, if you are thinking of suggesting fixed entries in the fstab or anything else that will not work with every media that is plugged into this box, just close this tab.

View 3 Replies View Related

General :: Debian - Manually (command Line) Disabling USB Automounts?

Jan 30, 2011

I know that I can use the GUI (gnome-volume-properties) enable/disable the USB sticks/disks automount features, by checking/unchecking the pertinent options.My question is: how can I obtain the same results from the command line (that is, without using any GUI frontend)?

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved