Score:0

How to change root to user in mounted external drive?

me flag

Similar question have been answered multiple times. But, I have a problem solving the issue using previously answered solutions. Previously, everything was okey but once I unplugged external hard drive and re-plugged, I am getting the problem. I am trying to change root to user for mounted external drive. I used following command from previous solutions:

sudo chown arjun:arjun -R /mnt/h

I get following error:

chown: cannot read directory '/mnt/h/$RECYCLE.BIN/S-1-5-21-3737658399-465384387-1878711633-1001': Permission denied

Note: I am using linux in windows 10 using WSL2. the hardrive I have is seagate desktop drive (h). the output of 'ls' inside mnt directory is:

c  d  g  h  wsl 

Thanks for the help. I am not expert.

The output of df -T: [for mounted external drives only]. g and h are mounted external drives
C:\            9p        243537916  182367272   61170644  75% /mnt/c
D:\            9p       1953497084 1089318912  864178172  56% /mnt/d
G:\            9p       1953479676 1418672548  534807128  73% /mnt/g
h:             9p       7813894140 1365976728 6447917412  18% /mnt/h
cn flag
please use the search ;-) microsoft does not support POSIX. You need to change permissions when mounting partitions that are windows formatted.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.