The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
2answers
49 views

Normal user can't unmount if mounted by root

I'm running a script that needs root privileges. One of its functionality is mounting an attached user HDD by using udisksctl utility. I'm using it like udisksctl mount -b /dev/sdX --options ...
8
votes
3answers
109 views

Will a usb key have the same name everytime I mount it?

I have a usb key which will be used to save data on it daily, via a bash script. I managed to mount it for a specific user to be able to write folders in it using the command mount /dev/sdc1 ...
7
votes
1answer
226 views

/dev/mmcblk0 partitions limit

I've just mounted a microSD card which has 17 partitions in my laptop and I'm getting the following error in the YaST partitioner: Your disk /dev/mmcblk0 contains 17 partitions. The maximum number of ...
1
vote
2answers
40 views

systemd in the era of hotplugable devices

One argument I hear often about systemd is that it more adapted to current hardware needs, e.g. here Computers changed so much that they often doesn’t even look like computers. And their ...
0
votes
2answers
32 views

Can we predict the next registered SCSI mass storage device name

I need to anticipate the device name (sdX) that the next mass storage device (sda, sdb, sdc, …) will receive from the SCSI driver. If I remove one device and connect another one, I noticed that the ...
3
votes
1answer
47 views

USB-Insert Authentication for Linux

On Windows, when I insert a USB, I use USB Security. So I'd get "To allow USB access, enter a password." So I'd have to enter a password to be able to even view USB contents or run it. Is there such ...
1
vote
0answers
72 views

Completely disable / deactivate USB in Ubuntu 10.04

I have some Ubuntu 10.04 based portable touchscreen computers at workplace and sometimes people would use USB data cable to charge their phones from the USB port. Now I have usb storage access ...
2
votes
1answer
250 views

Mounting and unmounting USB storage from the command line

I have a backup script which mounts and unmounts a USB harddrive. In Ubuntu I used the command udisksctl but it is not included in the Debian 7.7 repository. Is there a similar command in Debian to ...
2
votes
2answers
120 views

Names of copied files from USB device to HDD have all become uppercase. How to fix it?

I am currently using OpenBSD 5.5-release. Whenever I copy files or directories from my USB device to the local HDD, the names of the copied files have all become uppercase. What causes it? How do I ...
-1
votes
1answer
70 views

How turn external HD visible in Virtualbox Debian VM?

I want to clone my Virtualbox VM to a another/external HD in my computer. My VM is a Debian 7, and I want to use the dd command on an external HD. Is this possible? When I use # fdisk -l only ...
1
vote
1answer
161 views

GNU/Linux: automatic cloning of a system with partitions encrypted with LUKS+dm-crypt

I would like to have an up-to-date clone of a (Debian) GNU/Linux system on an external HDD and therefore be able to replace the internal HDD with the external HDD at any time and being up and running ...
3
votes
2answers
556 views

How to tell if a SCSI device is removable?

In DMESG I see: [sdb] Attached SCSI removable disk How does Linux decide what is removable and not removable? Is there a way I can look up if a device is "removable" or not other than the log, for ...
3
votes
3answers
699 views

Removable USB stick listed as non-removable in /sys/block?

In my question Bash script to output path to USB flash memory stick I got stuck on a problem nobody else seems to be having. (The issue also impedes my desire to use this answer: ...
2
votes
0answers
223 views

Set PERM_WRITE_PROTECT on an SD card

From what I read here and here I gather that there is a bit on SD cards called PERM_WRITE_PROTECT that will allow me to make an SD card read only. Is it possible to set this bit from Linux? If so, ...
2
votes
2answers
7k views

Mount exFAT file system as user without specifying /dev/sdX1 in /etc/fstab

I've "solved" the following problem, but not in a desirable way. First, mounting exFAT file systems in Linux was truly as simple as this site says. The catch is, "as long as you are root." A user ...
-1
votes
2answers
137 views

Is there any other way to restrict USB storage?

I have been using /etc/modprobe.d/blacklist.conf to restrict USB storage but all employees are given root permissions, so they are removing restriction very easily. What I'm looking for is is there ...
3
votes
1answer
3k views

Thunar doesn't auto-mount USB devices with default setup

After installing and configuring Thunar Volume Manager for Arch Linux it doesn't mount any USB devices automatically: $ thunar thunar-volman: Unsupported USB device type. thunar-volman: Unsupported ...
1
vote
1answer
143 views

Portable bootable installation of Ubuntu, synchronized with my main computer

I have a difficult problem that I'm trying to solve. Currently, I am using Mac OSX and I want to create a full Ubuntu partition on my home computer; this is fine. I'm currently doing a lot of ...
1
vote
1answer
1k views

How to set default auto mount options for removable media?

I have quite a bit of removable media (flash drives, external hard drives, etc) that I want to adjust auto mount options for. How does one do this? Is there something similar to /etc/fstab?
4
votes
2answers
659 views

List all the ways a block device is in use

I want to be sure that a removable hard drive (USB, but this shouldn't matter) is safe to remove. Let's say this drive is sdb. Obviously I need to make sure that there is no mounted filesystem on ...
6
votes
1answer
1k views

Find out if a specific device is an USB mass storage

Context I'm automating SD card imaging from an existing dd factory image. The SD card is always connected through an external USB card reader and thus appears in the system as a SCSI block device ...
2
votes
2answers
527 views

Permissions on an ext4 filesystem on a removable drive used in different machines

I have a USB flash drive with ext4 file system and its files are owned by my user on my local machine, for example by myuser@myhost with 700 permissions. If I unplug my flash drive and plug it in ...
1
vote
1answer
1k views

How to format a USB storage no detected in Ubuntu?

I have a memory stick that is not mounted in Ubuntu and it doesnt works in Windows. I can check is connected using Bus 003 Device 011: ID 05e3:0727 Genesys Logic, Inc. microSD Reader/Writer But I ...
1
vote
2answers
2k views

How to check how many External Hard Drives are connected to Linux Server

Is there a way to distinguish between the Internal Hard drives and External Hard drives. Actually i need to see how many External hardrives do we have and to which server are they connected . This ...
3
votes
5answers
5k views

Live USB: how to access USB drive that linux booted from

Can't find it in /media or /mnt. What I want: live distro so I have guarantee it won't break and will boot/work every single time have access to directory on that USB drive for storage purposes, ...
6
votes
2answers
1k views

Make `locate` able to search files on external HDD

If I understand correctly, the database locate relies on is just for files on partitions of internal HDDs. I wonder if it is possible to use locate on external HDDs?
6
votes
2answers
2k views

How to properly unplug/plug removable LVM2 device?

How to properly unplug (remove) and later plug (insert) removable (hot-plug, usb etc) storage device with LVM2 on it ? I've found this note Remove (unplug, eject): lvchange -an ...
0
votes
1answer
98 views

(audio) Files transferred to Motorola Milestone does not stay there

I'm using gpodder to manage podcast on Ubuntu machine (thinkpad laptop). When I transfer files to the phone I see the files on the phone sd card via ubuntu file manager, however, when I disconnect the ...
6
votes
6answers
2k views

Linux on pendrive? Which distro to use? [closed]

Terms regarding the OS: Must be installed on pendrive It must contain software for office use Need to save files, GUI settings on it (auto) So I'm not searching for a LiveCD. What could be the ...
5
votes
1answer
3k views

How do I change permissions on an external hard drive in Arch Linux?

Permissions to my portable hard drive on Arch is read-only and it seems I can't change it- when I change it from the GUI it takes no effect. So, how can I change it through the terminal? Is there ...