3

How can I copy, or just access a file on the USB drive from Ubuntu Server? This answer here does not work, I am getting

mount: you must specify the filesystem type

which no one explained how to solve. This happens after I type

sudo mount /dev/sdc /media/usb

where /dev/sdc is supposedly my USB.

How can I do it?

2 Answers2

4

You specify the filesystem type with the -t option. As described in man mount:

   -t, --types fstype
          The argument following the -t is used to indicate the filesystem
          type.  The filesystem types which are currently supported depend
          on the running  kernel.   See  /proc/filesystems  and  /lib/mod‐
          ules/$(uname  -r)/kernel/fs  for a complete list of the filesys‐
          tems.  The most common are ext2, ext3, ext4, xfs,  btrfs,  vfat,
          sysfs, proc, nfs and cifs.

So, to mount a FAT32 (vfat) drive, you would run:

sudo mount -t vfat /dev/sdc /media/usb

However, you don't mount devices, you mount partitions. What you're after is probably:

 sudo mount /dev/sdc1 /media/usb

Or, if it still complains:

sudo mount -t vfat /dev/sdc1 /media/usb

For more details, update your question with the output of sudo fdisk -l /dev/sdc.

terdon
  • 100,812
0

Launch the app gnome-disk-utility, find your usb on the sidebar, and click the triangle play button under the filesystem graph and it should mount it.

Like this: mountusb:

SnorriChinchilla
  • 339
  • 1
  • 5
  • 16