LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2020, 12:22 PM   #1
andrewysk
Member
 
Registered: Mar 2020
Posts: 797

Rep: Reputation: Disabled
Make linux think usb flash drive is usb external hdd - Arch based linux


Make linux think usb flash drive is usb external hdd

I like the idea of linux treat all my usb storage, be it flash drive or not to be treated the same as usb external hardrive.

I just realize in dolphin , it has got "unmount" for external hardrive, and "safely remove" for external flash drive.
Somehow it just decided which device is which.
I want all my devices plugged into usb port to have "unmount" and "safely remove" (eject).

Why ? Because with unmount, the device is still listed in dolphin, i can mount it back without the need to unplug the usb and replug in.
I can do it in terminal to unmount, but if i can make dolphin or kernel to treat all usb devices the same, why not ?
It is very easy to configure, with just some register to be turned on.. but apparently i just don't know what keyword to search in google , hence can't find the result.
 
Old 10-12-2020, 08:04 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,366
Blog Entries: 28

Rep: Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162Reputation: 6162
First, a USB thumb drive is an external hard drive.

You can enter it in your /etc/fstab. I do that with my permanently attached external USB drives, and, as they are permanently attached, I usually set the mount to "auto." I normally place the mount points in /media, rather than in /mnt.

For your thumb drive, you could set the mount to "noauto" and give the mount point an easy-to-remember name, then mount/unmount it from the command line.
 
Old 10-13-2020, 03:00 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Possibly you could add a udev rule to make all additional drives be treated the same way.
Or, maybe you should first investigate the journal to find out how exactly a plugged-in drive is treated.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Antergos – Best Arch based distro for beginners, whoever want to taste arch, give a try LXer Syndicated Linux News 1 05-24-2021 08:13 AM
[SOLVED] Time taken to copy data from PC to External USB HDD and External USB HDD to PC will same? jegadezz Linux - Newbie 3 11-14-2017 09:22 AM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
Encrypted HDD/flash drive or HDD/flash drive encryption ilesterg Linux - Security 4 09-27-2016 07:42 PM
FLASH FLASH XP Home and Samba Fix FLASH FLASH zollodav Linux - Networking 1 02-19-2006 01:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration