I have a problem. After an update, my USB drives are not mounted automatically and I’m unable to mount them manually…
The output of my fdisk -l command is:
Disk /dev/sdb: 15.8 GB, 15762194432 bytes 2 heads, 63 sectors/track, 244329 cylinders Units = cylinders of 126 * 512 = 64512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x018d6a09 Device Boot Start End Blocks Id System /dev/sdb1 * 1 244330 15392736 b W95 FAT32
I tried with
mount -t nfs /mnt/usb /dev/sdb1
but it dowsn’t work. Any ideas?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
You need to use mount command as below :
sudo mount /dev/sdb1 /mnt/
it will check and automatically detect and mount filesystem i.e vfat
Method 2
If mount is an issue and your system uses udisks try:
udisks --mount /dev/device e.g.: udisks --mount /dev/sdc1
And / or have a look at e.g.
ls -l /dev/disk/by-label/
And mount by e.g.:
udisks --mount /dev/disk/by-label/MyUSBDevice
etc.
Method 3
create a directory on for example:
/home/YourUserName/Desktop/MyUsb
Then run the command:
$ mount -t vfat /dev/sdb1 /home/YourUserName/Desktop/MyUsb -t vfat = for msdos (fat-fat16-fat32 etc.) -t ntfs = for ntfs -t ext2 = for ext2 -t ext3 = for ext3 -t ext4 = for ext4
Method 4
On linux systems and many Unix systems, entries in the file /etc/fstab govern whether and where a device is mounted at startup. Use the command man fstab for details about fstab entries. Here are some examples:
/dev/sdf1 /sf1 fuseblk user,rw,nosuid,nodev,noauto 0 0 /dev/sdg3 /sg3 ext2 user,auto,nosuid,nodev 0 0 UUID=994228d4-etc-7f1d7d0 /usr ext4 defaults 0 2
Items with a user keyword in them allow the user to mount or umount the corresponding device without needing to use sudo or su. Items with auto mount automatically on system startup (and if not present may cause startup problems). Items with rw are mounted read-write.
When fstab entries specify both a device and a mount point the mount command only needs to give one of them. For example, given the above entries, /dev/sdf1 can be mounted by the user at /sf1 by either of the following commands:
mount /sf1 mount /dev/sdf1
On linux systems or Unix systems with /proc you can see a list of partitions, mounted or not, via
cat /proc/partitions
If you know the UUID’s of partitions on your USB drive, you can use the UUID instead of the device name in its fstab entry. On some linux systems, use
ls -l /dev/disk/by-uuid/
to see the correspondence of UUID’s and devices.
Method 5
I am using centOS 7 with the Mate desktop. I ran into a the problem of not being able to mount a USB disk. Short answer. Make sure that you have the desired users that you want to be able to mount USB devises to the disk group.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0