New answers tagged

2

Looking in /media is a reasonable way to find hotplug block devices. You can also use lsblk to list the block devices and whether they are hotpluggable: $ lsblk -l -p -o name,rm,hotplug,mountpoint NAME RM HOTPLUG MOUNTPOINT /dev/sda 0 0 /dev/sda1 0 0 / /dev/sda2 0 0 [SWAP] /dev/sda3 0 0 /home /dev/sdc 0 1 ...


0

There is no difference between internal and external devices, so no, there's no better way than to hope mounting has been consistent enough that all external devices (and only those) are mounted under /media. But a user with the right permissions can easily mount e.g. an USB stick anywhere.


0

I know you're runing SUSE, but this statement from the Ubuntu fstab wiki (https://help.ubuntu.com/community/Fstab) may point you in the right direction : Removable devices such as flash drives can be added to fstab, but are typically mounted by gnome-volume-manager and are beyond the scope of this document. UPDATE: This might be of interest ...


1

In my opinion its a bad practice to try to mount a backup filesystem at startup because if something going wrong (rm -rf / [enter] ops), the data on backup probably will be deleted together. So if you are using a script to do this, mount inside the script, or inside cron, and umount when done. With that your startup will not hangs anymore, and you will ...



Top 50 recent answers are included