Questions tagged [removable-storage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

Why does microSD card name keep changing?

I have a microSD card permanently plugged in to my computer which also contains an internal eMMC (mmcblk0). Sometimes when I turn the computer on it names the microSD card mmcblk1, sometimes it names ...
0
votes
0answers
27 views

Unable to remove a storage device in Debian10

Until Debian 9, starting from 6 maybe, I usually removed storage devices (SATA consumer disks) by sending as root (after flushing buffers and unmounting fs): echo 1 > /sys/block/*device-name*/...
0
votes
1answer
47 views

Why does default mount point of removable media contains username?

I'm using Manjaro Linux. When I plug new removable devices like USB, it is auto mounted on /run/media/<username>/<label>. Why does this path contains username? I mean, it is plugged to ...
0
votes
0answers
20 views

How to control Nemo windows when removable drive is mounted

When I insert a USB drive, it is auto-mounted and my file manager opens two windows – focussed on home and the USB drive. When I insert a Raspberry Pi SD card, Nemo opens four windows, a pair for the ...
0
votes
0answers
14 views

How to reconnect a logically disconnected (but still physically connected) USB hard drive after a reboot in CentOS 7?

I assumed it would just show up again, like it did after initially plugging in, but it seems after issuing a reboot command the drive is no longer visible. Before I rebooted the only place I could ...
1
vote
1answer
231 views

Mount USB Storage recognised by “usb-devices” but not by “lsblk”

I have Debian Wheezy based router, kernel version 3.10.107 After plugging in USB storage, it is not recognized by lsblk. However, it looks like it is detected by the OS since the command usb-devices ...
2
votes
0answers
40 views

Linux: how to ensure it's possible to remove USB stick from commandline?

When working from command line I usually use an USB mass storage device with customary: sudo mount /dev/sde1 /mnt -o rw,umask=0000 ... use it... sudo umount /mnt This works fine IF you let the stick ...
0
votes
1answer
140 views

xfdesktop and Thunar not displaying removable drives

This happened to me at least once before. What happens is, that after updating and rebooting (Fedora 30), xfdesktop and Thunar don't show removable drives anymore. Sometimes this issue seems to fix ...
1
vote
0answers
21 views

Which file system copes 'better' with bad ejects of external USB HDDs?

Is there a disk format that copes well (or better than others) when end users physically disconnect USB-attached external drives without safely ejecting then? I have XFS, ext4, btrfs, exfat, and NTFS ...
0
votes
1answer
39 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
30 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
91 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
100 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 ...
0
votes
1answer
142 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
74 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
44 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
3k 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
308 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-...
3
votes
1answer
5k 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
90 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
565 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 "...
1
vote
1answer
1k 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 ...
2
votes
0answers
742 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
691 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
18 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 ...
4
votes
2answers
2k 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
3k 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 ...
17
votes
2answers
25k 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 sync to ...
2
votes
0answers
79 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
114 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
340 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
2k 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
331 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 ...
8
votes
1answer
4k 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
1k 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
681 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
781 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 ...
3
votes
2answers
755 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: ...
18
votes
2answers
20k 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?
6
votes
2answers
165 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
58 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 ...
2
votes
1answer
162 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
21 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
3k 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
378 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
5k 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
7k 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
97 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 operating ...
0
votes
3answers
122 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
430 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 ...