-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linux links in root or folder not usable #3
Comments
Probably a duplicate of #1; see https://aur.archlinux.org/packages/ntfs3-dkms/?O=60&PP=10 for explanations: basically |
yes, but it's an annoying thing :-) |
If you wanted to "convert" all of the symlinks in the ntfs partition from the "fake" ntfs-3g type to the ntfs3 type, all you would need to do is:
|
find -t lwas not ok....
find: predicato unknown "-t"
…---------------------------------------------------------------------------------------------------------------------------------------
Simona
Il giorno dom 18 lug 2021 alle ore 13:13 Francesco ***@***.***>
ha scritto:
If you wanted to "convert" all of the symlinks in the ntfs partition from
the "fake" ntfs-3g type to the ntfs3 type, all you would need to do is:
- Mount your NTFS partition using ntfs-3g (i.e. mount -t ntfs)
- cd /root/of/your/ntfs/partition
- find -t l, which will tell you all the symlinks present in the
partition
- run realpath SYMLINK on all of them, and save both the path and
realpath of the symlink in a file for later
- unmount the NTFS partition, and re-mount it using mount -t ntfs3 for
the paragon fs
- recreate the symlinks :)
just leaving this here for anybody who is looking to do what I needed
to do for this
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5PBXMVBNFWVA37K2NYV7TTYKZOJANCNFSM5ANZOZ3Q>
.
|
Sorry, I meant |
Thanks, this is ok, it gives me a very long list of link. You know if exist
a way to have this list with link and linked folder?
…---------------------------------------------------------------------------------------------------------------------------------------
Simona
Il giorno lun 19 lug 2021 alle ore 09:57 Francesco ***@***.***>
ha scritto:
Sorry, I meant find -type l
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5PBXODNEPF7LTW3CFO24TTYPLGTANCNFSM5ANZOZ3Q>
.
|
you can do something like that using the
You could then redirect this to a file using P.S. in order for the script to work you might want to have absolute paths; you can achieve this easily by running the above
P.P.S. you might want to quote ( Edit: I was planning on doing everything manually, but since I took the time to try and automatise it for you I went ahead and tried the above, and can confirm it will work; i.e. I successfully recreated all the symlinks automatically. Might be useful if you have many; if you know how to use |
I did this...
find . -type l -printf 'ln -s "%l" "%p"\n'
helping me looking around
---------------------------------------------------------------------------------------------------------------------------------------
Simona
Il giorno lun 19 lug 2021 alle ore 11:35 Francesco ***@***.***>
ha scritto:
… you can do something like that using the -exec flag for find; which
combined with -print will give you a list with two lines for each
symlink, where each second line is the real path:
find -type l -print -exec realpath {} \;
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5PBXO6QU6RTKJCV4MWLWDTYPWWJANCNFSM5ANZOZ3Q>
.
|
make_recreate_links () {
echo "#!/bin/bash" > recreate_links.sh
find . #-maxdepth 1
find . -type l -printf 'ln -s "%l" "%p"\n' >> recreate_links.sh
chmod +x recreate_links.sh
}
do you think it could be an idea? do you see contraindications? do you see
flaws? do you see problems?
…---------------------------------------------------------------------------------------------------------------------------------------
Simona
Il giorno lun 19 lug 2021 alle ore 11:35 Francesco ***@***.***>
ha scritto:
you can do something like that using the -exec flag for find; which
combined with -print will give you a list with two lines for each
symlink, where each second line is the real path:
find -type l -print -exec realpath {} \;
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5PBXO6QU6RTKJCV4MWLWDTYPWWJANCNFSM5ANZOZ3Q>
.
|
make_recreate_links () {
echo "#!/bin/bash" > recreate_links.sh
find . #-maxdepth 1
find . -type l -printf 'ln -s -f -v "%l" "%p"\n' >> recreate_links.sh
chmod +x recreate_links.sh
}
…---------------------------------------------------------------------------------------------------------------------------------------
Simona
Il giorno lun 19 lug 2021 alle ore 11:35 Francesco ***@***.***>
ha scritto:
you can do something like that using the -exec flag for find; which
combined with -print will give you a list with two lines for each
symlink, where each second line is the real path:
find -type l -print -exec realpath {} \;
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5PBXO6QU6RTKJCV4MWLWDTYPWWJANCNFSM5ANZOZ3Q>
.
|
That should be fine, as long as you stay in that directory, since the |
yes. thx. a way to "read" absolute path?
…---------------------------------------------------------------------------------------------------------------------------------------
Simona
Il giorno lun 19 lug 2021 alle ore 18:29 Francesco ***@***.***>
ha scritto:
That should be fine, as long as you stay in that directory, since the "%p"
part is only a relative path. Although, you might have to add the -f flag
to ln as I was saying earlier, since those symlinks already exist, so you
need to -force re-creating them
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5PBXIHVZI7IZVYWJOCK4DTYRHINANCNFSM5ANZOZ3Q>
.
|
|
With / do not give only links for this only mounted partition but entire
system
…---------------------------------------------------------------------------------------------------------------------------------------
Simona
Il giorno lun 19 lug 2021 alle ore 23:04 Francesco ***@***.***>
ha scritto:
realpath PATH gives you the absolute path; as for returning directly the
absolute path from the output of find, you can use the trick I suggested
above of launching the command from /:
P.S. in order for the script to work you might want to have absolute
paths; you can achieve this > easily by running the above find command from
/, like:
cd /
find /PATH/TO/ROOT/OF/NTFS (other flags)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5PBXNFJVTXZRTPDC2TXW3TYSHOHANCNFSM5ANZOZ3Q>
.
|
Not if you give the "base path" as the first argument to find; i.e. |
I have some ntfs partition. inside it i have linux links. but with ntfs3 instead fuse ntfs links to folders and files are not available.
must i do a screen?
The text was updated successfully, but these errors were encountered: