Questions tagged [removable-storage]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
36 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 ...
mo FEAR's user avatar
  • 172
5 votes
1 answer
646 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 ...
matteo_c's user avatar
  • 153
0 votes
1 answer
178 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 ...
Luis A. Florit's user avatar
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 ...
Nico Nico Pizza's user avatar
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/...)?
zomega's user avatar
  • 960
0 votes
0 answers
142 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 ...
Teso's user avatar
  • 145
0 votes
0 answers
191 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 ...
buckithed's user avatar
  • 101
0 votes
1 answer
77 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 ...
Neil_UK's user avatar
  • 165
0 votes
1 answer
188 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 (...
RogerH's user avatar
  • 1
1 vote
1 answer
110 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: ...
v1nce's user avatar
  • 111
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 ...
Chris's user avatar
  • 3
0 votes
0 answers
142 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 ...
EmmaV's user avatar
  • 4,057
0 votes
1 answer
424 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 ...
WieeRd's user avatar
  • 103
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 ...
spaceman117X's user avatar
1 vote
0 answers
132 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 ...
ZioByte's user avatar
  • 860
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 ...
polemon's user avatar
  • 11.4k
1 vote
0 answers
40 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 ...
SubStandard's user avatar
1 vote
1 answer
239 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 ...
viraptor's user avatar
  • 286
1 vote
1 answer
209 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. ...
Mephisto's user avatar
  • 1,077
2 votes
1 answer
321 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 ...
njh's user avatar
  • 143
0 votes
1 answer
921 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 ...
EmmaV's user avatar
  • 4,057
0 votes
1 answer
518 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 ...
Alexander M's user avatar
1 vote
1 answer
183 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 ...
Willem de Groot's user avatar
0 votes
1 answer
61 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 ...
bayindirh's user avatar
  • 969
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 ...
jl81's user avatar
  • 35
1 vote
1 answer
411 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-...
zedmelon's user avatar
  • 153
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 $...
Pkkm's user avatar
  • 130
1 vote
1 answer
472 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 ...
jNull's user avatar
  • 339
1 vote
1 answer
845 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 "...
Tomáš Zato's user avatar
  • 1,776
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 ...
voices's user avatar
  • 1,262
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 ...
Grzegorz Wierzowiecki's user avatar
2 votes
1 answer
1k 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 ...
user avatar
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 ...
Koala Yeung's user avatar
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 ...
William's user avatar
  • 89
1 vote
3 answers
23k 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 ...
Aquarius_Girl's user avatar
27 votes
2 answers
45k 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 ...
Jonathan Komar's user avatar
3 votes
0 answers
544 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. ...
dv_'s user avatar
  • 141
4 votes
0 answers
180 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 ...
nRoof's user avatar
  • 41
1 vote
2 answers
651 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 ...
Corvertbibby's user avatar
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 ...
TheLovelySausage's user avatar
2 votes
0 answers
586 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 ...
Zauberin Stardreamer's user avatar
13 votes
1 answer
8k 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 ...
1N4001's user avatar
  • 360
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 ...
Jérôme's user avatar
  • 1,938
1 vote
1 answer
1k 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 ...
petermao's user avatar
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 ...
Eleno's user avatar
  • 1,849
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: ...
DeJeL's user avatar
  • 350
26 votes
2 answers
41k 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?
user's user avatar
  • 2,287
6 votes
2 answers
332 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 ...
Jacob Bond's user avatar
1 vote
0 answers
87 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 ...
RoboJ1M's user avatar
  • 211
2 votes
1 answer
501 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 ...
mint55's user avatar
  • 21