The script should be able to mount any supported filesystem. #NTFS 3G MOUNT CODE#The mount binary seem to figure out what filesystem type it is trying to mount, therefore the code sections for checking this is removed. It should be preferred if it supports the file system you are using but it has limited filesystem type support. The original script tries to re-mount all the filesystems, including mtdblock* filesystems at boot which is not what we want.Ĭode is added to dismiss disks which can be managed by block_mount. (Note that this will be a different path than /mnt/usb-ntfs)īelow is a modified version of the script which should work fine even if you are using root file system using extroot. Now, whenever you plug in an NTFS USB disk, it should automatically mount. (The script above comes from this blog post) Mount -o iocharset=utf8 /dev/$device /mnt/$device # mount with ntfs-3g if possible, else with default mount Isvfat=`fdisk -l | grep $device | grep FAT` Isntfs=`fdisk -l | grep $device | grep NTFS` Sleep 10 #more apps installed, need more time to load kernel modules! To get our drive to mount on plugin, we utilize the hotplug system.Ĭreate the following files as /etc/hotplug.d/block/10-mount. Now that you can get your volume to mount on command, the next step is mounting it when it's plugged in automatically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |