Creating Symlinks as ROOT on the same drive
by kzo81 from LinuxQuestions.org on (#6JWXX)
Hi Folks,
I got this symlink creation problem... I'm doing it as root. What's going on? Its an SD card formatted to FAT32
[CODE cut+ awk -F / {print $NF}
+ echo /media/sdmmc/mmcblk0p1/RECORD/M-20240225_235922_0002/2024-02-26__08_08_14.mkv
-c 1-10
+ DAY=2024-02-26
+ mkdir -p /media/sdmmc/mmcblk0p1/RECORD/DAILY/2024-02-26
+ awk+ echo /media/sdmmc/mmcblk0p1/RECORD/M-20240225_235922_0002/2024-02-26__08_08_14.mkv
-F / {print $NF}
+ FILE=2024-02-26__08_08_14.mkv
+ ln -s /media/sdmmc/mmcblk0p1/RECORD/M-20240225_235922_0002/2024-02-26__08_08_14.mkv /media/sdmmc/mmcblk0p1/RECORD/DAILY/2024-02-26/2024-02-26__08_08_14.mkv
ln: /media/sdmmc/mmcblk0p1/RECORD/DAILY/2024-02-26/2024-02-26__08_08_14.mkv: Operation not permitted
[/CODE]
I got this symlink creation problem... I'm doing it as root. What's going on? Its an SD card formatted to FAT32
[CODE cut+ awk -F / {print $NF}
+ echo /media/sdmmc/mmcblk0p1/RECORD/M-20240225_235922_0002/2024-02-26__08_08_14.mkv
-c 1-10
+ DAY=2024-02-26
+ mkdir -p /media/sdmmc/mmcblk0p1/RECORD/DAILY/2024-02-26
+ awk+ echo /media/sdmmc/mmcblk0p1/RECORD/M-20240225_235922_0002/2024-02-26__08_08_14.mkv
-F / {print $NF}
+ FILE=2024-02-26__08_08_14.mkv
+ ln -s /media/sdmmc/mmcblk0p1/RECORD/M-20240225_235922_0002/2024-02-26__08_08_14.mkv /media/sdmmc/mmcblk0p1/RECORD/DAILY/2024-02-26/2024-02-26__08_08_14.mkv
ln: /media/sdmmc/mmcblk0p1/RECORD/DAILY/2024-02-26/2024-02-26__08_08_14.mkv: Operation not permitted
[/CODE]