LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-25-2015, 08:21 PM   #1
alphorion
LQ Newbie
 
Registered: Sep 2007
Posts: 5

Rep: Reputation: 0
Looking for file manager that can right-click drive and show /dev/sdX


I understand fdisk can list the /dev/SDX things. However, I feel it's less helpful when the drives are exactly the same size (and sometimes brand and sometimes similar volume label).

I use (dabble with!) Linux Mint on a USB stick. There was a time I encountered a problem, searched and found USB Image Writer and USB Stick Formatter to be the solution I wanted.

Of course, it asked me, "Are you sure this is the correct drive?"

I was _reasonably_ sure, but I didn't want to accidently do the equivalent of rm -rf / on the drive I was using!

It was then that I found the difficulty of distinguishing drives. I tried fdisk, and tried gparted, and dmesg, and I can't remember what else, but since they were the same size, I found the volumes were difficult to distinguish. I could easily *SEE* which drive I wanted in the file manager (especially when I could look at the files inside) but I couldn't pick it or get more information from there! Right-clicking only gave me the option to umount, and Properties wasn't much more helpful.

In the end, I think I just gave up (TBH, it's been a while, I've forgotten), but just the other day, I was irritated with Caja for some reason and now I'm file manager-hunting. While I'm at it, I wonder if there is any file manager out there that can do what I'm asking.

I am quite grateful the properties show the directory where the drives are mounted, but it would be wonderful if it were possible to right-click on the drive, look at the properties, and just see, yes, this is /dev/sdc1 or /dev/sdc2 or whatever.
 
Old 02-25-2015, 09:28 PM   #2
linux_walt
Member
 
Registered: Dec 2014
Location: Houston, TX
Distribution: Debian wheezy
Posts: 127

Rep: Reputation: 29
You could change the labels, or you could give your mount points names you can remember: /mnt/system, /mnt/stuff etc.
 
Old 02-25-2015, 09:40 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
The problem is, the "/dev/SDX things" as you call them are device nodes. They (generally) don't contain directories/files that you would recognise. That's the job of filesystems - which usually reside in partitions, not raw devices.

After similar issues with reformatting the wrong (internal) hard disk, I now make sure everything mounted is of different physical size. Doesn't really solve your issue, but works for me.
 
Old 02-26-2015, 01:27 AM   #4
alphorion
LQ Newbie
 
Registered: Sep 2007
Posts: 5

Original Poster
Rep: Reputation: 0
@linux_walt : Thanks. Luckily, as I said, the file manager is kind enough to give me the mount points. However, the utilities are looking for the /dev/SDX name.

IIRC now, I used df -h in the end, plugging and unplugging the device, but that solution seems so very clunky.

@syg00 : Thanks. As I said, I'm a dabbler, but I'm trying to get more into Linux now, and Linux-on-a-stick is the way for me. But my drives tend to be the same size (what's on sale at the time), so changing the drive sizes isn't really ideal.

I'm a little dismayed, if an experienced person like you *still* has to make sure things that are mounted are of different sizes to be able to more easily distinguish between them, then this implies that there is no simple (sorry, graphical) way to point to a device and get what device node it's using. If the system can auto-magically mount drives, can't it tell me which node it used? <wry>

[though I must say, a million kudos to the ones who made auto-magic mounting work!!! It is SUCH a lifesaver. I remember having to mount things by hand and messing with fstab files (ahem! not always successfully)... such a pain!]
 
Old 02-26-2015, 03:05 AM   #5
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
For to be precise you should look usb disk drive serial number in dmesg output and the corresponding allotted device name.

For hard disks you can use 'hdparm -I /dev/sdx' and see it's description (serial number) to identify precisely.
 
Old 02-26-2015, 04:57 AM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I tend to use the output of "df -h" and/or "mount" to find which disk is mounted where -- but that does rely upon having set mount points for each disk, which is helped by labelling them as mentioned above.
 
Old 02-26-2015, 05:26 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,850

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
If I understand well you need to use uuids, and mount by uuid. That will cause you can mount the same device using the same mount point (it it was already known). And you can have mount points like:
/my/pendrive
/my/phone
/wife/phone
/whatever
/something_else
You need to configure all those uuids only once. You can also check the devices at /dev/disk/by-<something>
 
Old 02-26-2015, 06:58 PM   #8
alphorion
LQ Newbie
 
Registered: Sep 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Dear all,

It looks like my hope for a graphic point-and-click solution is a non-existent feature. :/ Thanks for all the suggestions, though. Your time and effort very much appreciated.
 
  


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
udev rule to rename /dev/sdx as /dev/sdr does not work :-( on OS 11.2 tkmbe SUSE / openSUSE 2 05-10-2012 01:53 AM
Associating /dev/sdX with a drive. stympman Linux - Hardware 6 12-18-2011 01:18 AM
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
How do I change the /dev/sdx number of a drive ? Christof999 Linux - Hardware 1 06-08-2007 03:29 PM
USB Drive - Static /dev/sdx Nodes in 2.4.x? Ruler2112 Linux - Hardware 1 01-26-2007 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 09:51 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