5

I'm having problems with mounting a 3tb Buffalo drive to my Raspberry Pi B, the error I get is:

mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error

I have tried setting the file system type to both ntfs and vfat, both give the error above.

So what do I do to get the drive mounted? And how can I get it to automatically mount whenever the Raspberry Pi boots?

Ghanima
  • 15,958
  • 17
  • 65
  • 125
Darth Vader
  • 4,218
  • 24
  • 47
  • 70

2 Answers2

10

By default is you use ntfs it will be the kernel module which allow read-only mount of NTFS partitions.

As this is failing are you sure NTFS is the filesystem of your drive? What does Windows or OS X says when you plug it in one of those? You can check on Raspbian using this:

sudo file -s /dev/sda1

Anyway, in case you want read/write NTFS, you need NTFS-3g but I'm not sure if this driverdriver is installed by default on Raspbian. So first make sure you have it:

sudo apt-get install ntfs-3g

Then if your USB drive partition is really /dev/sda1, you should do (assuming you are mounting it on /mnt/usb which should be a valid folder)

sudo mount -t ntfs-3g /dev/sda1 /mnt/usb

An alternative to the above command is:

sudo ntfs-3g /dev/sda1 /mnt/usb
Huygens
  • 733
  • 5
  • 12
1

i was able to mount a FAT32 usb drive with

mount -t vfat -o uid=MyUserName,gid=users /dev/sda PathToMountLocation

where "vfat" was the filesystem type and /dev/sda was my flash drive. Maybe there is an option for NTFS.

goldilocks
  • 60,325
  • 17
  • 117
  • 234
axarnold
  • 11
  • 2