Just can't figure this one out. Not the first time had mounting problems with CIFS but with other Linux variants, not sure why it always seems to be problematic.
Anyway, I built my piCore system on an old RPi and created a script in /opt to mount 4 CIF shares on my NAS. I added the script to /opt/bootlocal.sh and saved everything, rebooted, all worked perfectly, great!
I created the local mount points on the piCore in /mnt/mmcblk0p2/ for example...../mnt/mmcblk0p2/MusicNASCD
The music app I'm using (Asset) was quite slow on the old RPi decided to move the whole image to a RPi4 that I have. So backed up the piCore system and restored it to a new card (microSDHC), installed it in the RPi4 and booted up.
None of the CIF mounts work anymore!! I get an error that says "failed: No such device"............nothing has changed from the original build, other than the card.
I know there are all sorts of advice on similar issues scattered all over the net wrt CIF versions and other options. I've played around with these and none of them helped, also tried different share names without spaces etc, nothing works now. I have the ntfs-3g extension loaded, I also had the samba and cifs-utils loaded although not sure I need them but still didn't work.
Here is one of the mount commands...
sudo mount -t cifs //192.168.1.5/"Jack Music MQ" /mnt/mmcblkp02/MusicNASMQ -o username=MusicUser,password=‘xxxxxxxxxxxxx’
I'm wondering if the error message is referring to /mnt/mmcblkp02/MusicNASMQ more so than anything else?
There's nothing obvious in dmesg. Anyone any ideas on this please?