I inserted usb stick in raspi.
But how do i open filename in usb drive?
I can see USB Drive in File Manger.
Try:
mount -a
root@supra:~# mount -a
ntfs-3g: Failed to access volume '/dev/sda1': No such file or directory
ntfs-3g 2014.2.15AR.2 integrated FUSE 28 - Third Generation NTFS Driver
Configuration type 7, XATTRS are on, POSIX ACLS are on
Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2014 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson
Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).
Example: ntfs-3g /dev/sda1 /mnt/windows
News, support and information: http://tuxera.com
Is there something wrong on diet-config or diet-software?
Could be an issue with the drive. It could also be already mounted as ext4.
Can you try the following:
df -h | grep usb_1
ls -lha /mnt/usb_1
cat /etc/fstab | grep sda1
blkid
It may also be worth sending me a bug report so I can check your system setup and settings:
dietpi-bugreport
No need to fill out the text document, just reply with your reference CODE:.
root@supra:~# df -h | grep usb_1
root@supra:~# ls -lha /mnt/usb_1
total 8.0K
drwxrwxrwx 2 root root 4.0K Mar 4 2015 .
drwxr-xr-x 5 root root 4.0K May 12 2015 ..
-rw-rw-rw- 1 root root 0 Mar 4 2015 .drive
root@supra:~# cat /etc/fstab | grep sda1
/dev/sda1 /mnt/usb_1 ext4 defaults,noatime,nofail 0 0
/dev/sda1 /mnt/usb_1 ntfs-3g defaults,nofail 0 0
root@supra:~# blkid
/dev/mmcblk0p1: SEC_TYPE="msdos" LABEL="boot" UUID="CB99-4C7E" TYPE="vfat" PARTUUID="00092fac-01"
/dev/mmcblk0p2: UUID="1263ae8d-aaf3-41b6-9ac0-03e7fecb5d6a" TYPE="ext4" PARTUUID="00092fac-02"
/dev/sda1: SEC_TYPE="msdos" LABEL="USB DISK" UUID="421A-18D9" TYPE="vfat" PARTUUID="c3072e18-01"
/dev/mmcblk0: PTUUID="00092fac" PTTYPE="dos"
root@supra:~# cat /boot/dietpi/.installed
#DietPi External Drive
USBDRIVE 0
#DietPi Software
GRASSHOPPER 0
DESKTOP_LXDE 2
WEBSERVER_LAMP 0
WEBSERVER_LEMP 0
WEBSERVER_LASP 2
WEBSERVER_LESP 0
WEBSERVER_NGINX 0
WEBSERVER_APACHE 2
WEBSERVER_MYSQL 0
WEBSERVER_SQLITE 2
WEBSERVER_PHP 2
WEBSERVER_MYADMINPHP 0
OWNCLOUD 0
TRANSMISSION 0
PHPBB 0
HIFI 0
KODI 0
MINIDLNA 0
NOIPDYNDNS 0
SOFTETHERVPNSERVER 0
OPENTYRIAN 0
DIETPICAM 2
DELUGE 0
FILESERVER_SAMBA 0
FILESERVER_PROFTP 2
FILESERVER_VSFTPD 0
RASPCONTROL 0
LINUXDASH 0
PIHOLE 0
SUBSONIC 0
WEAVED 0
WEBIOPI 0
DIETPICLOUDSHELL 0
HAPROXY 0
SQUEEZEBOXSERVER 0
WORDPRESS 0
TIGHTVNCSERVER 0
FAIL2BAN 0
PHPSYSINFO 0
PHPIMAGEGALLERY 0
AMPACHE 0
OPENVPNSERVER 0
#Additional Linux Software
VIMFULL 2
SSHCLIENT 0
SMBCLIENT 0
RPIGPIO 2
RPII2C 2
GITCLIENT 2
BUILDESSENTIAL 2
ALSABASE 2
XSERVERXORG 2
CURLFTPFS 0
FFMPEG 2
SSHSERVER_DROPBEAR 2
SSHSERVER_OPENSSH 0
LOGGING_LOGROTATE 0
LOGGING_RAMLOG 2
LOGGING_RSYSLOG 0
#DietPi Choice System: SSH Server
INDEX_SSHSERVER_CURRENT -1
INDEX_SSHSERVER_TARGET -1
#DietPi Choice System: File Server
INDEX_FILESERVER_CURRENT -1
INDEX_FILESERVER_TARGET -1
#DietPi Choice System: Logging
INDEX_LOGGING_CURRENT -1
INDEX_LOGGING_TARGET -1
/dev/sda1: SEC_TYPE=“msdos” LABEL=“USB DISK” UUID=“421A-18D9” TYPE=“vfat” PARTUUID=“c3072e18-01”
Your are using a FAT based filesystem, so we need to change the mount settings:
- edit /etc/fstab
- comment out all /dev/sda1 entries (eg: #/dev/sda1)
- Add the following
/dev/sda1 /mnt/usb_1 vfat defaults,noatime 0 0
- run mount -a
Thank you very much.
I can see files in usb stick.
Thank you so much.