2

I have this external HDD, which has two partitions: one ext4 and one ntfs. However, when I connect it to some devices, the ntfs-3g driver goes crazy and stays in a loop of mounting->unmounting->remounting the ntfs partition. I already removed the ntfs-3g package, but I keep getting error messages related to the ntfs partition being "removed unsafely".

Is there any way I can make this partition invisible to the OS? At least to make it leave the partition alone and not try to do anything with it?

Thanks a lot!

2 Answers2

0

How to hide a(n) (NTFS) partition from ubuntu could be the solution you are looking for. It uses udev rules to achieve the result. If you are worried about changing device names, you could use UUID to mount the drive. blkid command will give you the UUID of the drive.

Or if you want to totally disable NTFS support, you could blacklist the NTFS Linux kernel module by sudo gedit /etc/modprobe.d/blacklist.conf and adding the line blacklist ntfs. You might have to reboot for the changes to take effect. I have not tried this out.

0

You could always uninstall ntfs-3g sudo apt-get purge ntfs-3g You might also want to look into udev rules, they give you a very granular way of dealing with mounting/unmounting devices.

Handy UDEV rules

Creating UDEV rules

Writing UDEV rules

Scott Goodgame
  • 2,646
  • 16
  • 20