LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2024, 01:20 AM   #1
kzo81
Member
 
Registered: Aug 2014
Location: Hungary
Distribution: Debian, Linux Mint, CentOS
Posts: 197

Rep: Reputation: Disabled
Creating Symlinks as ROOT on the same drive


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]

Last edited by kzo81; 02-26-2024 at 01:35 AM.
 
Old 02-26-2024, 01:52 AM   #2
lvm_
Member
 
Registered: Jul 2020
Posts: 927

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
FAT32 does't support links of any kind.
 
1 members found this post helpful.
Old 02-26-2024, 01:58 AM   #3
kzo81
Member
 
Registered: Aug 2014
Location: Hungary
Distribution: Debian, Linux Mint, CentOS
Posts: 197

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lvm_ View Post
FAT32 does't support links of any kind.
I see. Thanks!

Do you think that it can be solved somehow without changing from FAT32?

Last edited by kzo81; 02-26-2024 at 02:03 AM.
 
Old 02-26-2024, 02:52 AM   #4
lvm_
Member
 
Registered: Jul 2020
Posts: 927

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
Well, one can modify FAT directory entry to point to the starting cluster of the existing file essentially creating a hardlink, but it is against FAT specifications, any disk-checking utility will flag this as a cross-link error and you'll probably loose your data if you delete any of these entries, so I wouldn't recommend it and you'd have to use disk hex editor to do it. Apart from that, no. Also creating links which include absolute mount point is not a good idea even on filesystems which support links - mount points change.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there any default numbering system for creating symlinks inside /etc/rc3.d/ krssarath Fedora 4 02-09-2013 02:38 PM
LXer: Creating Symlinks How and Why LXer Syndicated Linux News 2 08-03-2012 06:13 AM
[SOLVED] About creating symlinks in .SlackBuild and doinst.sh cigerma Slackware 7 12-31-2011 06:31 AM
Creating symlinks on a CIFS share? MasterC Linux - General 2 08-30-2007 04:34 PM
Creating symlinks bripage Linux - General 2 07-23-2002 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration