45 votes
Accepted

Automount USB drives with systemd

After several false starts I figured this out. The key is to add a systemd unit service between udev and a mounting script. (For the record, I was not able to get this working using udisks2 (via ...
Mike Blackwell's user avatar
22 votes

Automount USB drives with systemd

there is a new, succinct systemd auto-mount option which can be used with fstab which allows you to use all the standardized mount permission options, and it looks like this: x-systemd.automount ...
infinite-etcetera's user avatar
6 votes

Automount USB drives with systemd

Using pmount, systemd and Mike Blackwell's approach, you can simplify the whole thing: /etc/systemd/system/[email protected] [Unit] Description=Mount USB Drive on %i [Service] Type=oneshot ...
Eric V.'s user avatar
  • 86
3 votes
Accepted

How to clone Linux hard drive to smaller flash drive

You haven't specified much about your disk layout so I am going to make some assumptions. Please modify for your application, or provide the additional details and I can edit this. Assumptions: 1 ...
Aaron Copley's user avatar
  • 12.7k
3 votes

USB virtual storage device service

There’re was a project called Aclouda and it could do a similar thing but with ARM CPU and internal flash & disk. I don’t know how functional it’s and what it costs. http://aclouda.com/ This is ...
RiGiD5's user avatar
  • 1,291
3 votes

Automount USB drives with systemd

I'd go with Warren Young's answer I have a few changes I made to I added some space protection as it was giving errors from the eval of the environment for the drive. I added a section to chmod a ...
penguinjeff's user avatar
2 votes

Centos 7/1503 -- Getting Error setting up base repository during installation

when you install centos 7 on network, you may config installation source. when you input the url under the label 'On the network:', you'll see the check box already checked that means 'This URL ...
lasko's user avatar
  • 21
2 votes

Automount USB drives with systemd

I have modified the script from @MikeBlackwell to: recognize device names that span multiple characters, not just /dev/sd[a-z] but /dev/sd[a-z]*; often the case with servers that have larger number ...
six-k's user avatar
  • 121
2 votes

How can I create a self extracting / self burning bootable USB image?

This may not be the best answer, but you could always write a script/program that does this yourself. (Which in this case would prompt a Stack Overflow question.) (The following would of course have ...
Andrew Hendrix's user avatar
2 votes
Accepted

need to reset dirty bit on usb flash memory stick

This problem was repaired with: fsck.ext3 /dev/da0s1
James B. Byrne's user avatar
2 votes
Accepted

USB Flash Drive unbootable on IBM/Lenovo x3850 X5

I worked on this some more and finally solved it! I took a second review regarding the UEFI/Legacy settings and made sure ALL the places where the word 'legacy' was mentioned, was disabled! For some ...
Morten Green Hermansen's user avatar
1 vote
Accepted

USB virtual storage device service

This is a job for Linux USB Gadget mass storage Here is a tutorial. Nevertheless, your Linux host must support USB OTG mode of operation, which isn't very frequent on server hardware.
binarym's user avatar
  • 126
1 vote

Is there a mapping of USB Flash Drives to Fat32 / NTFS / Ex-Fat?

Does such a mapping exist? No, because such a relationship doesn't exist. Flash drives are block devices, and do not have any concept of supporting any one filesystem. One could just as easily format ...
Spooler's user avatar
  • 7,126
1 vote

Backing up a Owncloud server to a USB Drive

I would not check if it's mounted, I would mount it myself. And, I would mount by uuid, so like /dev/disk/by-uuid/*. You can do ls -l there to see what is what. By using uuid, you will know the block ...
Halfgaar's user avatar
  • 8,194
1 vote

Centos 7/1503 -- Getting Error setting up base repository during installation

I experienced the same problem. It is working after I switch to Win32 Disk Imager. Please try using another USB ISO burner. It should work. There is a list of working programs for the task.
GabrielC's user avatar
  • 257
1 vote
Accepted

How to mount an USB drive under VMWare ESXi 5.5?

Why are you trying to do this? I have a whole bunch of operating system ISOs on an external drive that I'd like to use on my home ESXi 6 lab, but I can't mount them directly. Here's what I did: ...
transistor1's user avatar
1 vote

Windows Server Backup "Reading Data; please wait..."

I am using Windows Server 2008 R2. I was also trying to use Windows Server Backup to mount a recently backed-up vhd. My Windows Server Backup program was also stuck forever at "Reading Data Please ...
gim's user avatar
  • 21
1 vote

How to write ISO image to usb memory stick from linux command-line?

I use the following procedure: 1. Reading the block size and the volume size: [root@testserver ~]# isoinfo -d -i /path_to_iso | grep -i -E 'block size|volume size' Logical block size is: 2048 ...
mixtou's user avatar
  • 111

Only top scored, non community-wiki answers of a minimum length are eligible