[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Something never understood: see USB storage in CLI & mc



First, may I, at the top of the post and before replying to Brian, acknowledge the plethora of information in all the thread replies. I really would like to express my thanks to so many users who took the time to help explain and suggest.

On 18/05/2016 17:25, Brian wrote:
On Wed 18 May 2016 at 09:33:28 -0400, Gene Heskett wrote:
One way to do it manually is to run 'blkid' from a shell, which will
output a unique identifier for each device it can find.  My phone for

'/sbin/blkid' is preferable for a user.

instance, shows up in the list blkid outputs as

/dev/sdd: SEC_TYPE="msdos" UUID="2A21-0001" TYPE="vfat"

you could then construct a mount command, see mounts man page, useing
either the /dev/sdd (discouraged as it is not unique and yours may be a
different sd#) or the UUID=number, which will be different from mine,
using the vfat filesystem, mounted to /media/2A21-0001 in my case.  The
UUID method is much the preferred method, and that is the name its
mounted at too.

This is the second post in this thread which recommends becoming root to
carry out the simple user task of identifying and mounting a removeable
device. There are many Debian users who have a firm belief in only using
root privilege for the most essential of maintenance jobs and many
others who do not have that privilege. Isn't it about time to leverage
the benefits of the OS?

Ron Leach's requirement is met completely by dmesg, lsblk or even
lsscsi, pmount, udevil or udisksctl and usbmount or devmon.


I didn't recognise pmount, mentioned early in the thread, and tried man pmount to check what it would do and how to use it, but nothing came up. So, from an earlier post in the thread, I used dmesg | tail, and then mount at a mount point under /mnt. I used root. TBH, I thought I had to use root to create a mount point under /mnt, but no-one had said that on this thread. And I was able to achieve the transfer of those overnight files onto various machines, which is what I had needed to accomplish.

Nevertheless, as you say, I don't really want to use root for this sort of stuff - and other users on our systems definitely shouldn't - so I am going to have a go with these commands and see how to use them. Whether I can arrange, that mounting to a standard point happens automatically, I haven't yet understood. The machine being used for this is a server within arm's reach of the desk so it's convenient to use, but it doesn't run a GUI desktop.

Useful summary, Brian, grateful.

regards, Ron


Reply to: