Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [removable-storage]

The tag has no usage guidance.

0
votes
1answer
26 views

Where am I hitting the invisible SD card cache?

I'm trying to clear an SD card connected via a USB dongle. Here's what I do: # dd if=/dev/zero of=/dev/sdb bs=$((1024*4)) dd: error writing '/dev/sdb': No space left on device 1002267+0 records in ...
1
vote
1answer
22 views

Is it wrong to fill the reserved space in an external USB drive for archiving purposes?

I have been filling a hard drive and a couple of backup drives with the family pictures and videos. Once a video goes into the archive, it remains there in a folder correctly labeled with the date. ...
2
votes
1answer
26 views

Linux specific problem with Write Protected Compact Flash

I am having a version strange problem with a 4GB ATP Industrial Grade Compact Flash Card. I am trying to use it as the boot storage for a ALIX single board PC. When I insert it into another Linux ...
-1
votes
1answer
32 views

Are there any pitfalls to having a file-system directly on the hard disk with no partitions? [duplicate]

In Linux it's possible to format a non-system hard disk directly, without first putting any partitions on it. I've formatted a raw hard disk using mke2fs, creating an ext4 volume /dev/sda, rather ...
1
vote
0answers
110 views

Trying to resurrect some USB flash drives that won't mount on Linux, Windows, or Mac [closed]

I've got three USB flash drives exhibiting the same issue -- two belong to a friend and one is mine. None can be mounted on any machines I've tried -- whether Windows, Mac or Linux. Luckily Linux ...
0
votes
1answer
63 views

Boot removable media with grub/grub2

How can I add entries to grub/grub2 for booting off of removable media, like optical discs, as well drives that aren't supported by the bios for booting (but otherwise work fine in Linux), like super ...
1
vote
1answer
29 views

Does mounting external media read only make ejecting the media unnessesary? If so, how to mount all external media read only?

I am building hardware solutions for video debriefing purposes, where users will connect and remove cameras and/or SD cards to computers all the time. I am working with Raspberry pi's (Raspbian) for ...
0
votes
1answer
41 views

Marking filesystems as unremovable in CentOS

Disclaimer: Not sure to post to serverfault or here. Please transfer as necessary. I'm managing a CentOS 7.x terminal server. Recently, the filesystems on the server started to appear on users ...
0
votes
2answers
2k views

How the disk geometry (C/H/S) was determined on the partition table of flash memory storage?

I'm going to write a disk partition creator program for flash memory removable devices, mostly controlled by SCSI based I/O and accessed with LBA address. For reference, I'm researching the ...
1
vote
1answer
237 views

Drobo filesystem ignores /etc/fstab, automounts in the wrong place after connection is interrupted

I've got a Drobo in three partitions on Linux Mint, and it periodically drops off the filesystem, losing its mount points. Upon return it disregards /etc/fstab and mounts as a new device under /media-...
1
vote
0answers
228 views

How to read seemingly dead USB flash drive [closed]

A familiy member asked me if I could look at a USB flash drive with valuable content that "didn't work on the Mac". Thought I could try it on my Linux machine with more tools to work with. But I can't ...
2
votes
1answer
3k views

Safest way to remove USB drive on Linux [duplicate]

Is umount $mountpoint always enough to safely remove a single-partition USB drive on a modern GNU/Linux system? Or should I use sync && umount $mountpoint && sync, or perhaps umount $...
1
vote
1answer
47 views

Is there a risk to get infected from unmounted USB storage device

I want to format an USB device i suspect to be infected with virus/es to make it safe for use again using my linux machine. If the device is never mounted is there still a risk of a virus or maleware ...
1
vote
1answer
451 views

Get removable drive path by label in bash script

I wrote following Windows batch script that copies given file to Nucleo STM32 virtual drive: @echo off for /f %%D in ('%SystemRoot%\System32\wbem\WMIC.exe volume get DriveLetter^, Label ^| find "...
0
votes
1answer
651 views

What's the quickest way to format a disk?

It's for a bash script. Basically, I want to format, or erase a USB (or SD) storage device; with a single command line. I was going to use fdisk, but it seems to require user interaction where I ...
3
votes
0answers
470 views

How can I check if sata controller supports hotswap?

Is there a programmatic/generic way to check if sata controller supports howswap? I'd love this question to be generic, so people can apply answer regardless of controller they have. However, in ...
1
vote
1answer
510 views

PCManFM: edit the list of applications available on auto-mount

The file manager PCManFM has an option (enabled by default) to ask what to do with inserted/mounted volumes (cd, dvds, iso files etc) which is lacking in elementry OS' file manager. That's why I m ...
1
vote
0answers
14 views

How to use GnomeKeyring with removable medium?

According to the GnomeKeyring Goal wiki pages, the feature Storing Keyrings on Removable Disks has already been implemented since 2.31, which happened in 2013. There is no further details or ...
5
votes
1answer
1k views

Prevent Linux Probing for Partitions

How to avoid any type of partition probes when a HDD is detected by a booted up system, in a way that it only detects basic drive features as model, sector size and capacity, consequently creating ...
0
votes
3answers
55 views

How to use cd in another mounted harddisk?

Talking about the 105 GB volume. I want to search in it through terminal using locate/find. That is already mounted. When I right click, I get unmount in the menu. How do I enter that area through ...
10
votes
2answers
12k views

Why is sync so important when making a bootable linux usb stick?

From the Arch Linux Wiki: https://wiki.archlinux.org/index.php/USB_flash_installation_media # dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && sync [...] Do not miss ...
2
votes
0answers
58 views

Is there a standard way for getting the media mount path (like /media/user, /run/media/user…)?

In an application, I need to find out where removable media is mounted. On Ubuntu, this happens in /media/username/ . On Arch, it is /run/media/username/ . On other systems, its just /media/ etc. ...
4
votes
0answers
100 views

Do not show volumes as safely removable for system drive installed in external USB enclosure

I have up-to-date Arch Linux with KDE Plasma installed on SSD inside external USB enclosure. The problem is that the volumes of this drive are displayed in system tray with options to safely remove ...
1
vote
2answers
165 views

Linking file systems with removable media

Is there a way to create a link between something like /usr/bin and /removable/SD Card/usr/bin? I have a chromebook with crouton installed and a 128GB SD Card. I would like to be able to store some ...
0
votes
1answer
1k views

CentOS Format USB without partition

I have a CentOS 5 server that is using an external HDD for crontab backups. The crontab uses several scripts when working with the HDD which is /dev/sdb but the HDD is getting old now and it's time ...
2
votes
0answers
269 views

Disable atime and diratime on USB flash drive with udev

I have a USB flash drive which is used for doing backups. I've noticed that when I do the backups, the access times for files and folders are getting updated. Is there any way I can disable the ...
5
votes
1answer
2k views

How to reduce Linux' write buffer for removable devices?

When writing content to removable devices on Linux (USB sticks/HDDs, SD cards, etc), I often see incredible write speeds in the first few seconds, sometimes in the order of GB/s (filling of the write ...
1
vote
0answers
865 views

Mass storage device fails to mount

I bought a device that apparently is meant to be used as mass storage. When plugging it on my linux machine, it doesn't mount and I get those errors: [ 2603.332019] usb 2-5: new full-speed USB ...
1
vote
1answer
378 views

Why are the timestamps on my removable media taken as UTC time?

I'm running Debian 8, and all of the files on my removable media (SD cards, USB sticks) show up with the time stamp interpreted as UTC, rather than my local time? What's going on? date gives me the ...
2
votes
2answers
591 views

Safely remove USB Drive (Kindle) from command line

I am trying to safely remove my Kindle from the command line but, so far, all my attempts have left the Kindle in "USB Drive Mode". This is not the case when I have safely removed the Kindle via the ...
4
votes
2answers
515 views

low remaining storage space, how do I increase it?

I keep getting low storage space warnings, I want to increase my total storage space, I was hoping to do that via terminal command, how would I go about doing that? I put in df -h and got: ...
6
votes
2answers
11k views

What's the difference between mnt vs media? [duplicate]

What is the purpose of having both? Aren't they both used for mounting drives?
5
votes
2answers
111 views

Installing programs on a removable drive

I am planning to install some software on removable media (which will presumably always be present in the computer, though it's possible that there could be occasions where it is absent). After doing ...
1
vote
0answers
53 views

How can I trigger scripts on a virtual machine when I insert a CD or DVD in the host?

I have a PC running XenServer 6.2.0 It hosts, among others, an Ubuntu VM that I configured to rip and copy my CD/DVD collection to the NAS hosting my media collection. What I would like it to do on ...
1
vote
1answer
96 views

Safely remove needed before rebooting or shutting down computer?

Is it necessary to use the safely remove function to safely remove your usb stick or external hard drive before rebooting, shutting down computer, using standby or hibernation mode? (or is this done ...
0
votes
0answers
17 views

One particular partition doesn't show a notification when connected

In Gnome 3.16, when you connect a USB drive, a notification is shown on screen. I've a Sony PRS-T1 that has two partitions that are shown when connected. In the beginning I would get two ...
1
vote
0answers
2k views

Raspbian disable mount & automount USB storage

I have installed Raspbian on the Raspberry Pi. Due to the security policy in the company, we would like to block access to USB mass storage (pendrives, usb drives, etc.). I tried according to this ...
2
votes
2answers
319 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 umask=...
9
votes
3answers
3k views

Will a USB key have the same name every time 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 /media/...
7
votes
1answer
6k 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
78 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
3answers
115 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
391 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
189 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
2k 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
713 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
105 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
420 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 ...
6
votes
2answers
3k 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 ...
4
votes
3answers
2k 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: https://unix....