Questions tagged [removable-storage]
The removable-storage tag has no usage guidance.
85
questions
0
votes
0
answers
19
views
Blocking android MTP PTP USB access on rocky9
I'm trying to block MTP PTP USB access from Rocky9.3 KDE OS I have tried.
1 through modprob.d
2 deleting USB driver from kernel
Not able to block the android USB on Rocky9.3.
2
votes
1
answer
100
views
Solving the USB drive/mass storage stall issue
Sadly the issue reported and described here: Pernicious USB-stick stall problem. Reverting workaround fix? and Is "writeback throttling" a solution to the "USB-stick stall problem"?...
0
votes
0
answers
68
views
How to make a loopback device appear and behave as a (removable) block device?
If I create a loopback device, I can mount it manually, but it doesn't show up in Plasma "Disks & Devices" as a newly attached Storage Volume (Removable Media), nor does it appear as an ...
5
votes
1
answer
735
views
Mount drive not as removable drive
I've added the following line to my /etc/fstab to mount a ramdisk.
none /media/ramdisk tmpfs nodev,nosuid,noexec,nodiratime,size=2048M 0 0
It shows up in my desktop as a removable drive, and it is ...
1
vote
1
answer
249
views
Hide entries in grub menu when device is unavailable?
I have several menuentries in my grub2 menu, some of which point to removable devices (Ventoy, Windows, etc). Is there any way to configure grub to automatically and temporarily hide (or grey out, or ...
1
vote
0
answers
2k
views
USB not detected and can't perform actions on it
While installing ChromeOS Flex into a machine, the installation process froze and we had to stop the installation. Now, the USB is not recognized in any machine, no matter if Windows or Linux.
When ...
11
votes
1
answer
1k
views
How can I determine the rainbow book color of a CD on Linux?
I have put a CD into my drive. How can I find the rainbow book color on Linux (Red book/Yellow book/Blue book/...)?
0
votes
0
answers
157
views
GRUB2 - Windows 10 installer error, multiboot USB
I am trying to install a USB memory stick as a (grub2) multiboot and am having trouble booting the Windows installer. Arch Linux doesn't work either, only with KDE neon everything works.
I would ...
0
votes
0
answers
223
views
Corrupt sd card is seen by gnome-disks, but can't format
Somehow I can see the sd-card in gnome-disks as /dev/sda, but it won't show up in gparted. In gnome-disks it shows as a mass storage device with no media, or size, and it won't allow me to edit ...
0
votes
1
answer
85
views
Grub has assumed control of my multi-boot, what do I need to learn to take it back?
Even after many years, I'm still an 'arms-length' user of linux. I switched to Mint when XP stopped, use the default configuration, and have not had to interact with Grub before. I use it to get the ...
0
votes
1
answer
206
views
USB memory stick unmounts and vanishes
I bought this device a few days ago, and checked it with utility f3. It is ostensibly a Philips 256 memory stick, internally seen as an
Bus 002 Device 034: ID 090c:2000 Silicon Motion, Inc. - Taiwan (...
1
vote
1
answer
118
views
Can Linux take advantage of removable ram?
Some RAM pci-e card were manufactured
https://linustechtips.com/topic/1118940-wtf-is-this-thing-ram-on-a-pci-card/
Say I got a removable 16gb version of this card that is available 95% of time (eg: ...
0
votes
3
answers
1k
views
How to format a USB stick to be "Normal"
I'm quite confused about the different format types a USB stick could have (or for that matter, any storage device). On this USB stick, I used to have a distro iso installed, and wanted to make it ...
0
votes
0
answers
162
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
1
answer
446
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 ...
1
vote
1
answer
2k
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 ...
1
vote
0
answers
142
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
1
answer
1k
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
0
answers
41
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 ...
1
vote
1
answer
259
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
1
answer
215
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
1
answer
343
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 ...
0
votes
1
answer
1k
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
1
answer
532
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
1
answer
186
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
1
answer
67
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
2
answers
6k
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
1
answer
421
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
1
answer
11k
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
1
answer
599
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
1
answer
871
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
1
answer
2k
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 ...
4
votes
0
answers
1k
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 ...
2
votes
1
answer
2k
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
0
answers
21
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 ...
8
votes
4
answers
3k
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 ...
1
vote
3
answers
24k
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 ...
27
votes
2
answers
48k
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 ...
4
votes
0
answers
653
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
0
answers
195
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
2
answers
667
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
1
answer
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
0
answers
610
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 ...
14
votes
1
answer
9k
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
0
answers
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
1
answer
2k
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
2
answers
1k
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
2
answers
2k
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:
...
26
votes
2
answers
43k
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
2
answers
338
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 ...