Tutorial [Fix command] Have you ever had a problem with your ntfs drive/windows drive not showing up? then here is the answer

First check with df maybe it is being mounted but in unknown folder
If not, test with mount /dev/block/sda"x" find your windows drive number in grub2win if using it or if not using it you can do it by mounting them one by one to folder
continue if in command saying something busy or anything then download mount_nfsd_fuse from xda forum and then copy this command and paste it on second command boot like ( /vendor/etc/init.sh or something second command in etc folder ) :


Bash:
also i forgot to put this in the first command so add it otherwise it wont mount
sdn=dir
sdx=/dev/block

if [ -e $sdx/sda1 ]
then
mkdir /mnt/1$sdn
mount_nfsd_fuse $sdx/sda1 /mnt/1$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda2 ]
then
mkdir /mnt/2$sdn
mount_nfsd_fuse $sdx/sda2 /mnt/2$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda3 ]
then
mkdir /mnt/3$sdn
mount_nfsd_fuse $sdx/sda3 /mnt/3$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda4 ]
then
mkdir /mnt/4$sdn
mount_nfsd_fuse $sdx/sda4 /mnt/4$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda5 ]
then
mkdir /mnt/5$sdn
mount_nfsd_fuse $sdx/sda5 /mnt/5$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda6 ]
then
mkdir /mnt/6$sdn
mount_nfsd_fuse $sdx/sda6 /mnt/6$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda7 ]
then
mkdir /mnt/7$sdn
mount_nfsd_fuse $sdx/sda7 /mnt/7$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda8 ]
then
mkdir /mnt/8$sdn
mount_nfsd_fuse $sdx/sda8 /mnt/8$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda9 ]
then
mkdir /mnt/9$sdn
mount_nfsd_fuse $sdx/sda9 /mnt/9$sdn -o umask=0
else
echo no
fi

save it and reboot device that will work without problem

Other ways script i found it from xda :

Bash:
sdn=0
ls -l /dev/block/sd??
if [ $? -eq 0 ]; then
 for sd in `ls /dev/block/sd??`; do
 if [ ! -d "/mnt/usb_drive_$sdn" ]; then
 mkdir /mnt/usb_drive_$sdn
 chmod 777 /mnt/usb_drive_$sdn
 mount_nfsd_fuse $sd /mnt/usb_drive_$sdn -o umask=0
 if [ $? -ne 0 ]; then
 busybox mount_nfsd_fuse $sd /mnt/usb_drive_$sdn -o umask=0
 echo "$sd terpasang di /mnt/usb_drive_$sdn"
 else
 echo "$sd (NTFS) terpasang di /mnt/usb_drive_$sdn"
 fi
 sdn=`expr $sdn + 1`
 if [ ! -z $SM_VERSION ]; then echo showToastLong "$sdn Drive terpasang!" >&$SM_GUIFD; fi
 fi
 done
else
 echo "Tidak ada drive ditemukan! keluar.."
 if [ ! -z $SM_VERSION ]; then echo showToastLong "Tidak ada drive ditemukan! keluar.." >&$SM_GUIFD; fi
 exit 1
fi
exit 0

If from Indonesia visit my blog if you have time : Kumpul informasi dari hobi
 
Last edited:

Xtr

Active member
First check with df maybe it is being mounted but in unknown folder
If not, test with mount /dev/block/sda"x" find your windows drive number in grub2win if using it or if not using it you can do it by mounting them one by one to folder
continue if in command saying something busy or anything then download mount_nfsd_fuse from xda forum and then copy this command and paste it on second command boot like ( /vendor/etc/init.sh or something second command in etc folder ) :


Bash:
also i forgot to put this in the first command so add it otherwise it wont mount
sdn=dir
sdx=/dev/block

if [ -e $sdx/sda1 ]
then
mkdir /mnt/1$sdn
mount_nfsd_fuse $sdx/sda1 /mnt/1$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda2 ]
then
mkdir /mnt/2$sdn
mount_nfsd_fuse $sdx/sda2 /mnt/2$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda3 ]
then
mkdir /mnt/3$sdn
mount_nfsd_fuse $sdx/sda3 /mnt/3$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda4 ]
then
mkdir /mnt/4$sdn
mount_nfsd_fuse $sdx/sda4 /mnt/4$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda5 ]
then
mkdir /mnt/5$sdn
mount_nfsd_fuse $sdx/sda5 /mnt/5$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda6 ]
then
mkdir /mnt/6$sdn
mount_nfsd_fuse $sdx/sda6 /mnt/6$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda7 ]
then
mkdir /mnt/7$sdn
mount_nfsd_fuse $sdx/sda7 /mnt/7$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda8 ]
then
mkdir /mnt/8$sdn
mount_nfsd_fuse $sdx/sda8 /mnt/8$sdn -o umask=0
else
echo no
fi
if [ -e $sdx/sda9 ]
then
mkdir /mnt/9$sdn
mount_nfsd_fuse $sdx/sda9 /mnt/9$sdn -o umask=0
else
echo no
fi

save it and reboot device that will work without problem

Other ways script i found it from xda :

Bash:
sdn=0
ls -l /dev/block/sd??
if [ $? -eq 0 ]; then
 for sd in `ls /dev/block/sd??`; do
 if [ ! -d "/mnt/usb_drive_$sdn" ]; then
 mkdir /mnt/usb_drive_$sdn
 chmod 777 /mnt/usb_drive_$sdn
 mount_nfsd_fuse $sd /mnt/usb_drive_$sdn -o umask=0
 if [ $? -ne 0 ]; then
 busybox mount_nfsd_fuse $sd /mnt/usb_drive_$sdn -o umask=0
 echo "$sd terpasang di /mnt/usb_drive_$sdn"
 else
 echo "$sd (NTFS) terpasang di /mnt/usb_drive_$sdn"
 fi
 sdn=`expr $sdn + 1`
 if [ ! -z $SM_VERSION ]; then echo showToastLong "$sdn Drive terpasang!" >&$SM_GUIFD; fi
 fi
 done
else
 echo "Tidak ada drive ditemukan! keluar.."
 if [ ! -z $SM_VERSION ]; then echo showToastLong "Tidak ada drive ditemukan! keluar.." >&$SM_GUIFD; fi
 exit 1
fi
exit 0

If from Indonesia visit my blog if you have time : Kumpul informasi dari hobi
Use gearboot instead for scripts
 

Similar threads

Similar threads

Get Connected

Discord Server

New Threads

Latest From Blog

Top