Menu

no symolic links in ntfs partclone image

2013-06-24
2013-07-11
  • Detlef Oertel

    Detlef Oertel - 2013-06-24

    Hi,

    in windows 7 we have a directory c:\users and a ntfs junction "c:\documents and settings" which points to c:\users. If I mount this file system under linux "/mnt/documents and settings" is a symbolic link to /mnt/users. If I make a partclone image from this file system and use
    imagemount -d /dev/nbd0 -f mynfts.img -m /mntloop -r -t ntfs
    "/mntloop/documents and settings" is a directory and not a symbolic link.
    Using partclone.restore it will be restored correctly as symbloic link

    Is there any way to get this file as symbolic link using imagemount ?

    regards
    doertel

     
  • P

    P - 2013-07-04

    I don't have a good answer for you at this time. partclone and partclone-utils are block and bitmap-based. That means that there is almost no inspection of the on-disk structure of the file system, as long as it knows where to find the bitmap and the block.

     
  • P

    P - 2013-07-11

    Here's the testing I did. I created an empty 4GB ntfs filesystem, then made a directory in it. Then using sysinternals' junction tool, I created a junction.

    I unmounted it, then created two images with it. First using:

    partclone.ntfs -o output-partclone-image -s source-device -c

    And second, using:

    ntfsclone -o output-ntfsclone-image -s source-device

    I can mount the ntfsclone generated image using

    imagemount -d /dev/nbd0 -f output-ntfsclone-image -m /mnt -t ntfs

    When mounting the ntfsclone generated image, I see the junction as a symlink.
    When mounting the partclone generated image or the output from partclone.restore, I get an EINVAL when trying to read the last sector - it seems that it wasn't stored/restored.

    If you had a test image that I could take a look at, that would help, otherwise, I'm at an impasse.

     

Anonymous
Anonymous

Add attachments
Cancel