Page 1 of 1

[SOLVED] Can't create hard link

Posted: Wed Mar 02, 2022 2:08 pm
by mahdi

Code: Select all

$ sudo wimlib-imagex apply '/home/m/Downloads/boot.wim'  1 /run/media/m/BEE6-6CB5/ --no-acls
[WARNING] Ignoring FILE_ATTRIBUTE_READONLY of 41 files
[WARNING] Ignoring FILE_ATTRIBUTE_HIDDEN of 283 files
[WARNING] Ignoring FILE_ATTRIBUTE_SYSTEM of 446 files
[WARNING] Ignoring FILE_ATTRIBUTE_NOT_CONTENT_INDEXED of 6 files
[WARNING] Ignoring DOS names of 14201 files
Applying image 1 ("Win10PE_x64") from "/home/m/Downloads/boot.wim" to directory "/run/media/m/BEE6-6CB5/"
[ERROR] Can't create hard link "/run/media/m/BEE6-6CB5//Windows/System32/drivers/IntcAudioBus.sys" => "/run/media/m/BEE6-6CB5//Windows/System32/DriverStore/FileRepository/intcaudiobus.inf_amd64_7431ee5ad467abc0/IntcAudioBus.sys": Operation not permitted
ERROR: Exiting with error code 35:
       Failed to create a hard or symbolic link when extracting a file from the WIM.
Target is a USB drive
wimlib version: 1.13.5
OS: EndeavourOS

Re: [ERROR] Can't create hard link

Posted: Thu Mar 03, 2022 4:24 am
by mahdi
I had ti use target as something like /dev/sdb1

Re: [SOLVED] Can't create hard link

Posted: Tue Mar 08, 2022 4:25 pm
by synchronicity
Yes, as documented the NTFS-3G image application mode works on a block device containing an NTFS filesystem directly, rather than a mounted filesystem.

Re: [SOLVED] Can't create hard link

Posted: Wed Mar 09, 2022 8:34 am
by chungy
A path like "/run/media/m/BEE6-6CB5/" suggests to me that the USB drive is formatted with FAT, which cannot support hard links in the first place.