On Ubuntu, I'm trying to mount my USB
[] dmesg
... USB Mass Storage support registered.
... scsi 2:0:0:0 Direct-Access Kingston DataTraveler 2.0
... sd 2:0:0:0 [sdb] 15679488 512-byte logical blocks: (8.02 GB/7.47 GiB)
... sd 2:0:0:0 Write Protect is off
(so I assume that /dev/sdb is my USB pendrive)
[] mkdir /mnt/usb
[] mount /dev/sdb /mnt/usb
mount: mounting /dev/sdb on /mnt/usb failed: Invalid Argument
I also tried with "-t ext4" with no success. What am I doing wrong? Thank you very much.
/dev/sdb represents the whole storage device. The individual partitions are addressed by numbers following the device name, e.g. sdb1 is the 1st partition in the storage device sdb. As USB flash drives usually have only one partition, the mount command should be:
sda
orsdb
is just the name of your storage device, if you want to mount it you must enter the partition number too.Since this is among the top results I want to share some insight about what happened to me and how I solved it.
My situation is that I'm booting the 18.04 di-based server installer and I want to mount another (virtual) optical disc drive. Which gave me this exact error message.
Observation: