![]() ![]() Is there a problem, regarding the message for /sda ? (Invalid partition table) dev/sda5: Linux rev 1.0 ext4 filesystem data, UUID=967bcb76-8f1e-4827-85d4-86082ae2250e (needs journal recovery) (extents) (large files) (huge files) dev/sda1: Linux rev 1.0 ext3 filesystem data, UUID=354516e5-69a7-4c4f-affb-e0b8c9237cb4 (needs journal recovery) (large files) dev/sda: DOS/MBR boot sector MS-MBR 9M english at offset 0x10+0xFF "Invalid partition table" at offset 0x127 "Error loading operating system" at offset 0x146 "Missing operating system", disk signature 0x44fdfe06, created with driveID 0x81 at 15:37:29 partition 1 : ID=0x83, start-CHS (0x0,1,1), end-CHS (0x3ff,254,63), startsector 63, 20980827 sectors partition 2 : ID=0x5, start-CHS (0x3ff,254,63), end-CHS (0x3ff,254,63), startsector 20980890, 1932539175 sectors Is a linux standard sudo file -s /dev/sd* No, the images are saved to the HDD attached to BananaPi through the SATA interface. So I still need to fix this, the proper way This way it scans the folder, but unfortunately newly added files, are still not accessible, the main folder is accessible, PHP script is seeing all the files, even the new ones, but when I try to display them in a webpage, the images are not shown. Sudo chmod -R 777 /var/www/html/security_camera_storage Is this such a bad thing? even if this bananaPi is a local device, obody else has access to this pi, just me. ![]() Sudo chgrp -R securitycam /var/www/html/security_camera_storageĪfter seeing that PHP still can't access that folder, I changed the permissions of that folder to 777. I have added user admin to group secuirtycam, but still didn't help: The other files in html folder are owned by admin user.Īny advices on how to setup the ftp to save files that can be accessed by admin user, are welcome I want to setup some cronjobs to scan and delete old files (let's say, I will delete every image older than 3 days), I will also need to display the images in my dashboard, so I will definitely need to find a fix to this "issue" I tried to create a php script to scan the directory where images are saved but it seems it fails as the directory is owned by user securitycam, and php is running with a different user. The camera is saving new images each time there is motion, my only problem so far is how other users can access those images? Thanks for your advices, it was quite easy to setup the ftp using your instructions, I also created a new user and setup the user home directory inside /var/www/html/security_camera_storage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |