Jump to content

Монтируем флешку с файловой системой exfat


Recommended Posts

В репозиторий Entware-3x добавлен пакет exfat-fuse, который позволяет монтировать флешки с exfat на кинетике.

Установка элементарна

opkg update
opkg install exfat-fuse

Перед использованием создайте точку монтирования

mkdir -p /tmp/mnt/exfat

Подключите флешку к кинетику. Скорее всего она определится, как sdb. Проверьте командой `fdisk -l` (нужно поставить `opkg install fdisk`). Монтируем флешку

mount.exfat /dev/sdb1 /tmp/mnt/exfat

Читаем, пишем. Перед отключением размонтируем

fusermount -u /tmp/mnt/exfat

Пока мы не пробовали собрать и не проверяли пакет под Entware-Keenetic.

  • Thanks 3
Link to comment
Share on other sites

  • 1 year later...

@zyxmon сейчас проверил флешку, в которой имеется раздел exfat

Nov 30 11:55:11ndmkernel: usb 2-2: new high-speed USB device number 2 using xhci-hcd
Nov 30 11:55:11ndmkernel: usb 2-2: New USB device found, idVendor=0781, idProduct=5580
Nov 30 11:55:11ndmkernel: usb 2-2: Product: Extreme
Nov 30 11:55:11ndmkernel: usb 2-2: Manufacturer: SanDisk
Nov 30 11:55:11ndmkernel: usb 2-2: SerialNumber: AA010716121452487036
Nov 30 11:55:11ndmkernel: scsi1 : usb-storage 2-2:1.0
Nov 30 11:55:14ndmkernel: scsi 1:0:0:0: Direct-Access     SanDisk  Extreme          0001 PQ: 0 ANSI: 6
Nov 30 11:55:14ndmkernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
Nov 30 11:55:14ndmkernel: sd 1:0:0:0: [sdb] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB)
Nov 30 11:55:14ndmkernel: sd 1:0:0:0: [sdb] Write Protect is off
Nov 30 11:55:14ndmkernel: sd 1:0:0:0: [sdb] Mode Sense: 53 00 00 08
Nov 30 11:55:14ndmkernel: sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Nov 30 11:55:14ndmkernel:  sdb: sdb1
Nov 30 11:55:14ndmkernel: sd 1:0:0:0: [sdb] Attached SCSI removable disk
Nov 30 11:55:14ndmFileSystem::Ext: "/dev/sdb" has an unknown partition type, ignored.
Nov 30 11:55:14ndmFileSystem::Ext: exfat "1D99-B908:": filesystem initialized.
Nov 30 11:55:14ndmFileSystem::Native: failed to mount "/tmp/mnt/test": exfat filesystem not supported.
Nov 30 11:55:14ndmFileSystem::Ext: failed to mount.
Nov 30 11:55:14ndmFileSystem::Ext: exfat "1D99-B908:": unable to mount.
Nov 30 11:55:14ndmFileSystem::Repository: failed to register "1D99-B908:" filesystem.
 
 
установил Entware-Keenetic & uClibc-ng 1.0.27, далее пакет opkg install exfat-fuse

~ # opkg files exfat-fuse
Package exfat-fuse (1.2.7-1) is installed on root and has the following files:
/opt/sbin/exfatlabel
/opt/sbin/mkexfatfs
/opt/sbin/dumpexfat
/opt/sbin/mount.exfat
/opt/sbin/exfatfsck
/opt/sbin/mount.exfat-fuse
/opt/sbin/fsck.exfat
/opt/sbin/mkfs.exfat
 
делаем
 
~ # mkdir -p /tmp/mnt/exfat
~ # mount.exfat /dev/sdb1 /tmp/mnt/exfat
FUSE exfat 1.2.7
 
но раздел все равно не виден в keenetic, в подключенных
 

Device        Start       End  Sectors  Size Type
/dev/sda1        40  60886714 60886675   29G Microsoft basic data
/dev/sda2  60886720 117231373 56344654 26,9G Microsoft basic data

Disk /dev/sdb: 14,9 GiB, 16013942784 bytes, 31277232 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x000a0d74

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdb1  *      256 31277231 31276976 14,9G  7 HPFS/NTFS/exFAT
 

флешка же должна быть в подключенных после ввода 

mount.exfat /dev/sdb1 /tmp/mnt/exfat 
?
Edited by enpa
Link to comment
Share on other sites

Проверил на НАСе (на кинетике пока не могу). Все работает

[~] # mount.exfat /dev/sdc1 /opt/mnt/
FUSE exfat 1.2.7
[~] # mount
......
/dev/sdc1 on /share/CACHEDEV1_DATA/.qpkg/Entware-3x/mnt type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
[~] # ls /opt/mnt/Putty/
FR/             PAGEANT.EXE*    PSFTP.EXE*      PUTTY.EXE*      Ramnode.new/    putty.log*      sessions.reg*
Host.US/        PLINK.EXE*      PUTTY.CHM*      PUTTY.HLP*      id_rsa*         putty_priv.ppk* stokholm/
MyKeys/         PSCP.EXE*       PUTTY.CNT*      PUTTYGEN.EXE*   id_rsa.pub*     ramnode.ppk*

 

  • Thanks 1
Link to comment
Share on other sites

3 часа назад, enpa сказал:

флешка же должна быть в подключенных после ввода 

Если речь о прошивке и морде - без понятия. В шелле (ssh) - будет смонтирована. Можно точку монтирования создать на первом носителе и через него получить доступ.

  • Thanks 1
Link to comment
Share on other sites

@zyxmon спасибо за наводку, так и сделал:

~ # mkdir -p /tmp/mnt/NTFS_TEST/exfat
~ # mount.exfat /dev/sdb1 /tmp/mnt/NTFS_TEST/exfat
FUSE exfat 1.2.7

 

~ # mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
tmpfs on /dev type tmpfs (rw,nosuid,noexec,relatime)
none on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/dev/mtdblock/7 on /storage type jffs2 (rw,nosuid,relatime)
tmpfs on /tmp/run/acme/chroot/dev type tmpfs (rw,nosuid,noexec,relatime)
none on /proc/bus/usb type usbfs (rw,nosuid,noexec,relatime)
/dev/sda1 on /tmp/mnt/NTFS_TEST type tntfs (rw,nosuid,noexec,noatime,uid=0,gid=1000,umask=02,allow_utime=0020,nls=utf8,min_prealloc_size=64k,max_prealloc_size=30443336,readahead=4M,perm,user_xattr,case_sensitive,fail_safe,hidden=show,dotfile=show,protected_system=ignore,errors=continue,mft_zone_multiplier=1)
/dev/sda2 on /tmp/mnt/opkg type ext3 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sda2 on /opt type ext3 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sdb1 on /tmp/mnt/NTFS_TEST/exfat type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)

@zyxmon все работает отлично - https://cloud.mail.ru/public/8o7J/ed2vNkqpL

Edited by enpa
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...