[SOLVED] external HDD at boot ?
-
Hello everyone, so here is the situation.
I manage to mount the partition of my external HDD ( wich is physically connected to my router ) to a mount point a made on my PI and that was ok.
What i would need help with is how can i make that automatically connect at boot of my pi please ?
Also when i mounted the share, it asked me for my root password so after i put it, it was working. So how can i have it automatically aslo login without me putting the root password each time ?
I am guessing that i may have to edit the fstab but i honestly dont know what to write in it to make that happen.
thank you very much in advance ;)
-
@darthlink Google for "raspbian auto mount" and you should find something, anyways I used this when I added a usb drive that I mounted to somewhere
https://raspberrypi.stackexchange.com/questions/36824/automounting-usb-drive-on-boot
I've no time to explain now because I've to leave now (school ...)
-
This post is deleted! -
@DarkWolf said in external HDD at boot ?:
@darthlink Google for "raspbian auto mount" and you should find something, anyways I used this when I added a usb drive that I mounted to somewhere
https://raspberrypi.stackexchange.com/questions/36824/automounting-usb-drive-on-boot
I've no time to explain now because I've to leave now (school ...)
thx so i fallowed this tutorial: https://github.com/RetroPie/RetroPie-Setup/wiki/Running-ROMs-from-a-Network-Share
i had to fallow the step 2 for the auto mounting because i dont have the autostart.sh file.
so in my fstab i have this: //my share name/my_share_path cifs username=Username,password=Password,nounix,noserverino,defaults,users,auto 0 0
in the username field, it does not matter if i put root or pi, now whenever i boot my pi, it ask me the password of the user i added in the field in the fstab.
When i put the password, the mounting worked and all seem fine so far but why does the password that i put in fstab does not get read or work ? Why do i have to put it in every boot now ?
I have all transfered my roms already and also changed the path in the es_systems.cfg file to match the new path of the folder i made to mount the new share in. That work great.
My only concern is really the fact that i have to put the password on every boot now. How can i fixe that please ?
Ho yeah before i forget, i also change the boot option to wait for network connection in raspi-config as the walkthrough suggested.
-
@darthlink
Check out this thread:
https://retropie.org.uk/forum/topic/7780/loading-roms-from-usb-harddrive -
Ok loll thx
first thing, it is a very good thing that i had backed up my pi right before starting this external HDD thing because now my emulationstation does not work anymore.
i can start it and it does start BUT instead of seeing all my consoles, all i see is 3 times retropie and i cant scroll anyting and if i select it, it goes into the settings.
I may had forgot to also mention earlier that i had not formated my external drive ( and do not intend to ) since the partition i am sharing already has other things on it but even then by sharing it wit my pi, i get about 200GB extra space. This HDD is formatted in NTFS ( because i use to use it from windows7) and so is the partition.
when i do the command: blkid it see my partition as ext4 though, i kinda find that weird but thats how it see it and not as ntfs.
So from there, before i put back the backup into my pi, is there a way to fix this ?
if i do that command in fstab ( but with my path): UUID=73a104af-6ada-4956-b1e2-90bfdc08aba5 /mnt/Platte ext4 defaults,noatime,auto 0 0
( wich was in the link that Backstander gave me ( thank you ), it seem that my hole partition would be share into my pi but that is not what i want. I only want to share the folder a created on that partition.
this is what i want to share: smb://linksys37952/backups/raspishare/
This is how it is seen from my laptop (runing ubuntu) in network shares in file manager. The name backup is the actual name of my partition and the raspishare folder is the folder where i want to transfer my roms and run them through emmulationstation
I already had transfered my roms but when i had done that, it did transfer but on every file i got an error about the permissions that could not be transfered and it said: permission denied
but the transfer still happened.
loll did i ruined things ? should i put my last backup back on my pi and retry the sharing a better way that will actually work ? or is there a good way to fix this from everything i said ?
-
this is what i want to share: smb://linksys37952/backups/raspishare/
You can use samba shares (the ip of your server) in fstab like this:
//192.168.1.2/SambaTest /home/pi/shares/test cifs defaults,noauto,nofail,username=pi,passwd=raspberry 0 0
You have to change username (pi) and passwd (raspberry) to the login credentials you need to log into your samba share (and obviously the ip and path)
-
@DarkWolf said in external HDD at boot ?:
this is what i want to share: smb://linksys37952/backups/raspishare/
You can use samba shares (the ip of your server) in fstab like this:
//192.168.1.2/SambaTest /home/pi/shares/test cifs defaults,noauto,nofail,username=pi,passwd=raspberry 0 0
You have to change username (pi) and passwd (raspberry) to the login credentials you need to log into your samba share (and obviously the ip and path)
Ok thanks for one part, i dont have to put the password on every boot now.
Problem is that my share is not auto mounted anymore at boot :(
Emulationstation still does not see all my consoles and only shows 3 times retropie. Emulationstation still work by itself in the sense that i can go into settings by pressing start and go in menus but it is still as if i dont have any consoles or roms at all.
-
@darthlink said in external HDD at boot ?:
https://github.com/RetroPie/RetroPie-Setup/wiki/Running-ROMs-from-a-Network-Share
yyyyyyyyyyyeeeeeeeeeeeeessssssssssssssssssssssssssss
i finally got it to work ( WITH ALL YOUR HELPS ). but the thing about the roms problem, i am sorry but it was my fault. I had forgoten 1 folder in the path of where they actually are in fstab so off course it could not see them since they were in a diferent folder.
I was looking at my fstab and i realised that it was missing a folder in the path.
So now everything works out perfectly. It auto mount the drives and i dont have to put my password on every boot and i have gain 200GB of space.
thanks to everyone again for your presious help. ;)
-
@darthlink Glad it worked :-)
-
Thanks a lot, as usual ;)
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.