Questions tagged [removable-storage]
The removable-storage tag has no usage guidance.
76
questions
0
votes
0
answers
33
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
32
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
88
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
77
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
113
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
71
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
248
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
959
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
0
answers
61
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
511
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
35
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
1
answer
100
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
134
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
181
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
456
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
320
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
102
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
50
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
5k
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
353
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-...
2
votes
1
answer
8k
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
255
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
719
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 ...
2
votes
0
answers
889
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
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 ...
1
vote
0
answers
19
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 ...
7
votes
4
answers
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 ...
1
vote
3
answers
14k
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 ...
24
votes
2
answers
37k
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
0
answers
169
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
146
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
525
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
415
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 ...
11
votes
1
answer
6k
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
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 ...
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
1k
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:
...
24
votes
2
answers
32k
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
293
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
0
answers
65
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
1
answer
250
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
0
answers
28
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
0
answers
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
2
answers
499
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
3
answers
6k
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
1
answer
8k
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
2
answers
165
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 ...