Closed oldhatgaming closed 6 years ago
I tried another NTFS drive, got the same result.
Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. Usage: grep [OPTION]... PATTERN [FILE]... Try 'grep --help' for more information. This external drive is not correctly formatted. It must be formatted using the NTFS filesystem. Please reformat it to NTFS. Fat vfat exfat filesystems are not supported in linux
I removed part of the code that does the NTFS check and ran it. This is what happened, I don't think it worked:
Copy/paste from putty `login as: pi pi@192.168.1.9's password: Linux retropie 4.14.32v7-aufs #1 SMP Thu Apr 5 21:48:06 CEST 2018 armv7l
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Jul 25 01:18:16 2018 from 192.168.1.4
SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
.***. Wednesday, 25 July 2018, 1:29:45 am EDT
***** Linux 4.14.32v7-aufs armv7l GNU/Linux
`***'
|*| Filesystem Size Used Avail Use% Mounted on
|*| none 30G 6.0G 22G 22% /
..|*|.. Uptime.............: 0 days, 00h13m07s
. *. Memory.............: 437652kB (Free) / 863084kB (Total)
***@@ Running Processes..: 119
*****@@**' IP Address.........: 192.168.1.9
*****' Temperature........: CPU: 56°C/132°F GPU: 56°C/132°F
`"""' The RetroPie Project, https://retropie.org.uk
pi@retropie:~ $ mkdir /home/pi/addonusb > /dev/null 2>&1
sudo umount $EXTDR
sudo mount -t $init_usb_type $init_usb_filesystem /home/pi/addonusb
usb_path=find "/home/pi/addonusb/" |grep piroms |head -1
if [ ! -d "$usb_path" ]; then
echo ""
echo ""
echo "Cannot locate the /piroms directory on this external drive. Checking other disks if this external drive has two mount points like a "Western Digital My Book.""
echo ""
echo ""
echo ""
sudo umount $init_usb_filesystem
sleep 8
else
usb_path=find "/home/pi/addonusb/" |grep piroms |head -1
usb_dir=/home/pi/addonusb
fi
done
usb_designation=df -T |grep $usb_dir |awk '{print $1 }'|awk -F'/' '{print $3 }'
usb_mount=df -T |grep $usb_dir |awk '{print $1 }'
usb_filesystem=sudo blkid |grep -w "$usb_mount"|grep -Po 'TYPE="\K.*?(?=")'
usb_uuid=ls -l /dev/disk/by-uuid/|grep $usb_designation|awk '{print $9 }'
echo "UUID=$usb_uuid /home/pi/addonusb $usb_filesystem nofail,user,umask=0000 0 2" > /home/pi/.currentdrive
sudo sh -c 'cat /home/pi/.currentdrive >> /etc/fstab'
sudo umount $usb_mount
sudo mount -a
mkdir $usb_path/roms/
find "/home/pi/RetroPie/roms" -mindepth 1 -maxdepth 1 -type d -printf "$usb_path/roms/%f\n" | xargs mkdir -p 2>/dev/null || true
sleep 1
sudo runuser -l pi -c 'mv /home/pi/RetroPie/roms /home/pi/RetroPie/localroms/'
sudo runuser -l pi -c 'mkdir /home/pi/RetroPie/roms'
cd /etc/profile.d
sudo wget http://eazyhax.com/pitime/10-retropie.sh.exp
sudo mv /etc/profile.d/10-retropie.sh /etc/profile.d/10-retropie.sh.org
sudo cp /etc/profile.d/10-retropie.sh.exp /etc/profile.d/10-retropie.sh
sudo grep "avoid_warnings" /boot/config.txt > /dev/null 2>&1
if [ $? -eq 0 ] ; then
echo ""
else
sudo cp /boot/config.txt /boot/config.txt.bkup
sudo runuser -l root -c 'echo "avoid_warnings=2" >> /boot/config.txt'
fi
echo "The drive has been expanded and your system will now halt. Detach your external drive...plug it up to your computer. Load the games then plug it back in and restart your Pi...you should see your additional games. Have fun!!! -Forrest "
sleep 10
sudo halt
fipi@retropie:~ $ mkdir /home/pi/.work > /dev/null 2>&1
pi@retropie:~ $ testdrive=df |grep media |awk '{print $1 }'|wc -l
pi@retropie:~ $ if [ $testdrive -eq 0 ] ; then
echo "No External drive detected. Exiting." sleep 5 exit else echo "External Drive detected. Performing checks for NTFS filesystem and piroms directory." sleep 5 fi External Drive detected. Performing checks for NTFS filesystem and piroms directory. pi@retropie:~ $ pi@retropie:~ $ for EXTDR in
df |grep media |awk '{print $1 }'
; do init_usb_type=sudo blkid |grep "$EXTDR"|grep -Po 'TYPE="\K.*?(?=")'
init_usb_filesystem=sudo blkid |grep "$EXTDR"|awk '{print $1 }'| sed -r 's/(:)+$//'
sudo umount $EXTDR sudo mount -t $init_usb_type $init_usb_filesystem /home/pi/addonusb usb_path=find "/home/pi/addonusb/" |grep piroms |head -1
if [ ! -d "$usb_path" ]; then echo "" echo "" echo "Cannot locate the /piroms directory on this external drive. Checking other disks if this external drive has two mount points like a "Western Digital My Book."" echo "" echo "" echo "" sudo umount $init_usb_filesystem sleep 8 else usb_path=
find "/home/pi/addonusb/" |grep piroms |head -1
usb_dir=/home/pi/addonusb fi done pi@retropie:~ $ pi@retropie:~ $ usb_designation=df -T |grep $usb_dir |awk '{print $1 }'|awk -F'/' '{print $3 }'
pi@retropie:~ $ usb_mount=df -T |grep $usb_dir |awk '{print $1 }'
pi@retropie:~ $ usb_filesystem=sudo blkid |grep -w "$usb_mount"|grep -Po 'TYPE="\K.*?(?=")'
pi@retropie:~ $ usb_uuid=ls -l /dev/disk/by-uuid/|grep $usb_designation|awk '{print $9 }'
pi@retropie:~ $ pi@retropie:~ $ echo "UUID=$usb_uuid /home/pi/addonusb $usb_filesystem nofail,user,umask=0000 0 2" > /home/pi/.currentdrive pi@retropie:~ $ sudo sh -c 'cat /home/pi/.currentdrive >> /etc/fstab' pi@retropie:~ $ sudo umount $usb_mount pi@retropie:~ $ sudo mount -a pi@retropie:~ $ mkdir $usb_path/roms/ pi@retropie:~ $ find "/home/pi/RetroPie/roms" -mindepth 1 -maxdepth 1 -type d -printf "$usb_path/roms/%f\n" | xargs mkdir -p 2>/dev/null || true pi@retropie:~ $ sleep 1 pi@retropie:~ $ sudo runuser -l pi -c 'mv /home/pi/RetroPie/roms /home/pi/RetroPie/localroms/'
SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
pi@retropie:~ $ sudo runuser -l pi -c 'mkdir /home/pi/RetroPie/roms'
SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
pi@retropie:~ $ cd /etc/profile.d pi@retropie:/etc/profile.d $ sudo wget http://eazyhax.com/pitime/10-retropie.sh.exp --2018-07-25 01:30:02-- http://eazyhax.com/pitime/10-retropie.sh.exp Resolving eazyhax.com (eazyhax.com)... 192.241.139.206 Connecting to eazyhax.com (eazyhax.com)|192.241.139.206|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1435 (1.4K) [text/x-sh] Saving to: ‘10-retropie.sh.exp’
10-retropie.sh.exp 100%[===================>] 1.40K 1.25KB/s in 1.1s
2018-07-25 01:30:06 (1.25 KB/s) - ‘10-retropie.sh.exp’ saved [1435/1435]
pi@retropie:/etc/profile.d $ sudo mv /etc/profile.d/10-retropie.sh /etc/profile.d/10-retropie.sh.org pi@retropie:/etc/profile.d $ sudo cp /etc/profile.d/10-retropie.sh.exp /etc/profile.d/10-retropie.sh pi@retropie:/etc/profile.d $ sudo grep "avoid_warnings" /boot/config.txt > /dev/null 2>&1 pi@retropie:/etc/profile.d $ if [ $? -eq 0 ] ; then
echo "" else sudo cp /boot/config.txt /boot/config.txt.bkup sudo runuser -l root -c 'echo "avoid_warnings=2" >> /boot/config.txt' fi cp: cannot stat '/boot/config.txt': No such file or directory mount: wrong fs type, bad option, bad superblock on overlay, missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
SSH is enabled and the default password for the 'pi' user has not been changed. This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
-bash: /boot/config.txt: No such file or directory pi@retropie:/etc/profile.d $ echo "The drive has been expanded and your system will now halt. Detach your external drive...plug it up to your computer. Load the games then plug it back in and restart your Pi...you should see your additional games. Have fun!!! -Forrest " echo "The drive has been expanded and your system will now halt. Detach your external drive...plug it up to your computer. Load the games then plug it back in and restart your Pi...you should see your additional games. Have funif [ $? -eq 0 ] ; then echo ""; else sudo cp /boot/config.txt /boot/config.txt.bkup; sudo runuser -l root -c 'echo "avoid_warnings=2" >> /boot/config.txt'; fi! -Forrest " The drive has been expanded and your system will now halt. Detach your external drive...plug it up to your computer. Load the games then plug it back in and restart your Pi...you should see your additional games. Have funif [ 1 -eq 0 ] ; then echo ; else sudo cp /boot/config.txt /boot/config.txt.bkup; sudo runuser -l root -c 'echo avoid_warnings=2 >> /boot/config.txt'; fi! -Forrest pi@retropie:/etc/profile.d $ sleep 10 pi@retropie:/etc/profile.d $ sudo halt `
Taking a look at this.
-bash: /boot/config.txt: No such file or directory
This does not seem to be a vanilla retropie install...what image are you using?
Ok Windows 10 connection issue is fixed. Please download the new toolkit here https://github.com/Shakz76/Eazy-Hax-RetroPie-Toolkit/raw/master/RetroPie%20Toolkit.zip As for it not detecting the NTFS drive....does the hard drive have multiple NTFS partitions? If so that will break the script.
Still having issues with the windows command prompt exiting out after trying to install the eazyhax toolkit I used to have this working untill I decided to reinstall retropie on the same micro SD and have my regular images on it.Then installed the toolkit but it would still not work after downloading the new toolkit. :/ I need the toolkot for background music and for some retro pie tweaking.
It should be vanilla RetroPie 4.4. I tried on fresh installs redownloaded from raspbian menu source twice (putty returns "Linux retropie 4.14.32v7-aufs #1 SMP Thu Apr 5 21:48:06 CEST 2018 armv7l " when I log in). The only thing that might be different is doing the "Basic Install" in retropie setup to get the emulators to see if the emulators would register my roms. I have a Pi 3 B+ that I bought in a CanaKit package, not sure if that would make a difference. My drives only have one partition formatted to NTFS. Does it have to be MBR?
I also tried the new zip from the link you posted and had the same problem. The script that I ran above seemed to work, but neither the roms on SD or HDD registered. I ran it again from your newer build and it said "No hard drive detected." So I think it merged them and didn't work correctly after that.
@GioThermal did you enable SSH? https://github.com/Shakz76/Eazy-Hax-RetroPie-Toolkit#enable-ssh-required-for-windows-or-mac-users In retropie 4.4 its disabled by default.
@secretclean Have you tried physically disconnecting your external drive. Run the disable script....plug the external drive back in...and run the expand script? Its saying no external drive detected because the external drive is already linked to the pi.
I have had ssh enabled because I was connected to the pi via WinSCP
On Mon, Jul 30, 2018, 11:25 AM Forrest notifications@github.com wrote:
@GioThermal https://github.com/GioThermal did you enable SSH?
https://github.com/Shakz76/Eazy-Hax-RetroPie-Toolkit#enable-ssh-required-for-windows-or-mac-users In retropie 4.4 its disabled by default.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Shakz76/Eazy-Hax-RetroPie-Toolkit/issues/2#issuecomment-408903603, or mute the thread https://github.com/notifications/unsubscribe-auth/An0tDT_BBVkKI0GwhNk4MId-FV82_VVCks5uLyWBgaJpZM4VePAJ .
@secretclean Have you tried reinstalling Bonjour? Windows broke it with a patch a few patches back.... oh and my ssh question was directed @GioThermal not you cuz I know winscp uses ssh ;-) Can you post a screen shot or something because I cannot replicate this on my network. http://support.apple.com/downloads/DL999/en_US/BonjourPSSetup.exe
I had to install the eazyhax menu manually with putty. I connected to my pi's ip address with putty.exe from the zip (the connection will be refused if your ssh is closed) and ran the script directly from https://github.com/Shakz76/Eazy-Hax-RetroPie-Toolkit/blob/master/cfg/Install%20Eazy%20Hax%20RetroPie%20Toolkit.sh. It kept saying 404 when I ran "curl https://github.com/Shakz76/Eazy-Hax-RetroPie-Toolkit/blob/master/cfg/Install%20Eazy%20Hax%20RetroPie%20Toolkit.sh | bash", so I just copied all the code, right-clicked to paste it in, then pressed enter. It all ran fine and rebooted, and now I have the eazyhax menu. Little workaround to the automation problem.
But yeah my roms are still blank when I run the expand script. They're on the sd and now the hard drive, and when I run the disable script they all work again. I'm trying this with a USB-powered hard drive, so maybe it's not drawing enough amps? But it's a 3 B+ with only 1 controller plugged in, and the drive is powered on and plays movies in Kodi fine. I'll have to get a hard drive with power source and report back.
@secretclean Thank you for this comment I was able to get the toolkit on my raspberry pi and so far it is working just fine I appreciate all the help on this forum and I hope everyone has a great day!
Made a script to change the connection strings to the retropie IP address. Short and sweet... https://youtu.be/nPfXjbXVc9c
Hello, how do I manually install these files? I've set everything to discoverable, but my Win10 laptop is unable to connect to my Pi 3 B+. The cmd window closes after a few seconds whenever I run your batches. Win10 also gives me a deprecation error when I try to manually connect with ssh via cmd. I'm only interested in the hard drive expansion, so I can load disc-based games on a hard drive and play them. Is there a way to install what you have manually via WinSCP?
Never mind, I connected manually with putty and ran the contents manually. SSH v.1 isn't supported in Windows 10.1, and I assume that's why your scripts didn't work. Anyway, the code doesn't recognize my hard drive as NTFS even though it is, both currently and natively.