Dear All
I have a very unusual problem and I am definitely out of my depth.
I have a Sandisk mp3 player that uses playlists. Writing a playlist is very time-consuming, so I wrote a programme in Lazarus (Windows). When placed on the mp3 player, I can run the programme and select files and change their order to devise a playlist I can set in motion when driving. Lovely. I did all of that in Windows.
The past month I have been working on amending the code so that I can use the programme in Linux, and use Windows less. Yesterday I finished it. What a lot of work. I made an executable and tested and ran it in Linux (Kubuntu 24.04). I am very pleased.
I copied the programme to the mp3 player. It does not run. It looses its executable property.
The use of ls -l SimpleForms of the executable on the Linux computer reveals
The same command of the executable after it is copied onto the mp3 player reveals
Use of chmod does not alter the permissions
I did some reading. It has something to do with the file permissions being different on a non-linux file system. I do not know which file system the mp3 play is using, I do not know how to find out. One helpful forum suggested that in order to be able to make the changes I will need to “add parameter exec in the etc/fstab file”. I have no idea what that means, but I decided to have a look inside etc/fstab, as a user, so I did not change anything.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=0094-7822 /boot/efi vfat defaults 0 2
UUID=41a5c265-0413-446b-8949-de0a243c5ca0 / ext4 defaults 0 1
/swapfile swap swap defaults 0 0
Anyone got any idea if what I want to do is possible, or have I spent 3 weeks rewriting code and will not be able to use the new programme in a Windows free environment?
Any help appreciated
I have a very unusual problem and I am definitely out of my depth.
I have a Sandisk mp3 player that uses playlists. Writing a playlist is very time-consuming, so I wrote a programme in Lazarus (Windows). When placed on the mp3 player, I can run the programme and select files and change their order to devise a playlist I can set in motion when driving. Lovely. I did all of that in Windows.
The past month I have been working on amending the code so that I can use the programme in Linux, and use Windows less. Yesterday I finished it. What a lot of work. I made an executable and tested and ran it in Linux (Kubuntu 24.04). I am very pleased.
I copied the programme to the mp3 player. It does not run. It looses its executable property.
The use of ls -l SimpleForms of the executable on the Linux computer reveals
$ ls -l SimpleForms
-rwxrwxr-x 1 stephanos stephanos 29258072 Jul 29 23:35 SimpleForms
-rwxrwxr-x 1 stephanos stephanos 29258072 Jul 29 23:35 SimpleForms
The same command of the executable after it is copied onto the mp3 player reveals
$ ls -l SimpleForms
-rw-r--r-- 1 stephanos stephanos 29258080 Jul 28 21:49 SimpleForms
-rw-r--r-- 1 stephanos stephanos 29258080 Jul 28 21:49 SimpleForms
Use of chmod does not alter the permissions
sudo chmod 755 SimpleForms
makes no changes.I did some reading. It has something to do with the file permissions being different on a non-linux file system. I do not know which file system the mp3 play is using, I do not know how to find out. One helpful forum suggested that in order to be able to make the changes I will need to “add parameter exec in the etc/fstab file”. I have no idea what that means, but I decided to have a look inside etc/fstab, as a user, so I did not change anything.
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
UUID=0094-7822 /boot/efi vfat defaults 0 2
UUID=41a5c265-0413-446b-8949-de0a243c5ca0 / ext4 defaults 0 1
/swapfile swap swap defaults 0 0
Anyone got any idea if what I want to do is possible, or have I spent 3 weeks rewriting code and will not be able to use the new programme in a Windows free environment?
Any help appreciated
Comment