Mounting a USB drive

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Mounting a USB drive

Post by cogier »

I can insert a USB thumb drive and Nemo opens up and all is well. I can 'Eject' the drive and it is no longer showing. So far so good.

I would like to remount the drive from the command line but I can't find a way to do it. If I type lsblk -a I can see the drive and it is not mounted.

Image

So I create a folder to mount it in and using sudo mount /dev/sdd ~/media I get mount: no medium found on /dev/sdd

I can unplug it and plug it in again and Nemo opens it up with no fuss. I have searched the web but can find no solution.

I am using Mint 18.3 Cinnamon.

Any pointers greatly received.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WharfRat

Re: Mounting a USB drive

Post by WharfRat »

/dev/sdd is a block device and mount mounts partitions.

If there was a partition on that device it would be /dev/sdd1 as you can see with /dev/sdc.
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Mounting a USB drive

Post by cogier »

Hi Warfrat and thanks for the reply.

I had tried you recommendation but unfortunately I get the following error. mount: special device /dev/sdd1 does not exist

I have reproduced this issue on several computers.

1/. Insert USB drive - Nemo opens
2/. Eject the USB drive from Nemo - File>Eject
3/. Try in Terminal to mount the USB drive - This is where I fail.
User avatar
Flemur
Level 20
Level 20
Posts: 10097
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Mounting a USB drive

Post by Flemur »

I was wondering the same thing, and it looks like the process is a bit of a kludge:
https://unix.stackexchange.com/question ... usb-device

Simpler:
EDIT: I just tried this and....it didn't work. Shocking, I know.
http://www.upubuntu.com/2011/09/how-to- ... thout.html

Code: Select all

eject /dev/sdb
sleep 1
eject -t /dev/sdb
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Mounting a USB drive

Post by cogier »

Hi Flemur and thanks for the reply. I had a look at the page you pointed to but I don't understand it.

I have just done a test on Manjaro and I get exactly the same results. This seems to be a Linux 'thing'. Perhaps I am trying to 'mount' the drive the wrong way.
WharfRat

Re: Mounting a USB drive

Post by WharfRat »

cogier wrote: Thu Mar 22, 2018 12:49 pm This seems to be a Linux 'thing'. Perhaps I am trying to 'mount' the drive the wrong way.
The problem appears to be that you haven't created a partition and subsequently formatted it.

That's the reason your lsblk screen shot doesn't show an sdd1 partition for sdd like sdc does.

How about pasting a screen shot of gparted depicting that USB thumb drive.
Mute Ant

Re: Mounting a USB drive

Post by Mute Ant »

A partitionless drive (aka SuperFloppy) is not a problem. What you are seeing is the result of Safely Remove. When you eject a USB device, Linux unmounts the file-system and switches off the power. So the device can't respond to software any more.
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Mounting a USB drive

Post by cogier »

Thanks for the replies. There are a few images that I can show that my help, please have a look here http://www.cogier.com/usbdrive/

How does the system spot the drive when it is inserted?
WharfRat

Re: Mounting a USB drive

Post by WharfRat »

cogier wrote: Sat Mar 24, 2018 10:09 am Thanks for the replies. There are a few images that I can show that my help, please have a look here http://www.cogier.com/usbdrive/

How does the system spot the drive when it is inserted?
That's handled by udev a /dev/ and hotplug management daemon. It would be interesting to see what it is seeing when you plug that stick in.

Before inserting the stick run udevadm monitor --udev then plug it in - you should get some activity as it detects the device.

Paste back the results.

Also paste back sudo blkid after udevadm.
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Mounting a USB drive

Post by cogier »

Here are the results: -

Image

A larger picture has been added to the bottom of this page http://www.cogier.com/usbdrive/
WharfRat

Re: Mounting a USB drive

Post by WharfRat »

That looks fine, it detected it as a storage device with two partitions and assigned it to sdd and the partitions to sdd1 and sdd2.
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Mounting a USB drive

Post by cogier »

Thanks for the replies but I respectfully refer to my original question.
I can insert a USB thumb drive and Nemo opens up and all is well. I can 'Eject' the drive and it is no longer showing. So far so good.

I would like to remount the drive from the command line but I can't find a way to do it.
WharfRat

Re: Mounting a USB drive

Post by WharfRat »

You larger attachment shows those partition with sudo blkid.

Can you mount sdd2 to /mnt with sudo mount /dev/sdd2 /mnt and check the content with ls -lh /mnt

Then see if Nemo also lists the content of /mnt.
User avatar
cogier
Level 3
Level 3
Posts: 198
Joined: Sat Mar 31, 2012 9:51 am
Location: Guernsey

Re: Mounting a USB drive

Post by cogier »

I have tried this on USB2 and 3 ports. I have used SD Cards, and different USB drives and once the item has been 'Ejected' it can be seen with 'lsblk' but attempts to mount the drive are always mount: special device sdd2 does not exist
Locked

Return to “Storage”