Wednesday, April 5, 2017

mount: you must specify the filesystem type


I want to mount a partition to an auxiliary folder via mount to fix a damaged grub.


I used the command.


sudo mount /dev/sdb2 /home/ubuntu/temp

and got as error:


mount: you must specify the filesystem type

Why?



You need to add the -t FILESYSTEMTYPE argument to the command, replacing FILESYSTEMTYPE with your filesystem type. This specifies the filesystem type of the filesystem to be mounted. In your case, this would be /dev/sdb2. Some common, valid filesystem types are:



  • auto - this is a special one. It will try to guess the fs type when you use this.

  • ext4 - this is probably the most common Linux fs type of the last few years

  • ext3 - this is the most common Linux fs type from a couple years back

  • ntfs - this is the most common Windows fs type or larger external hard drives

  • vfat - this is the most common fs type used for smaller external hard drives

  • exfat - is also a file system option commonly found on USB flash drives and other external drives


No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...