Skip to content
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

mv can't rename folder after unzip #44

Closed
fdu123 opened this issue Apr 7, 2016 · 13 comments
Closed

mv can't rename folder after unzip #44

fdu123 opened this issue Apr 7, 2016 · 13 comments

Comments

@fdu123
Copy link

fdu123 commented Apr 7, 2016

Inside a Linux folder created on /.
for example I tried:
root@localhost:/# mkdir /mx6
root@localhost:/# cd /mx6
root@localhost:/mx6# cp /mnt/c/buildroot_master.zip .
root@localhost:/mx6# unzip buildroot_master.zip
....
root@localhost:/mx6# mv buildroot-master buildroot2
mv: cannot move ‘buildroot-master’ to ‘buildroot2’: Permission denied

also if I try to execute a make of my buildroot
I failed with patch system that cannot rename some file.
Regards

@patryk9200
Copy link

@fdu123 Are you trying to build linux image for freescale i.mx6 family processor? ;P
I tried build linux Yocto for i.MX UltraLite today #16, but failed :-(

First, did you run bash from windows as administrator? If not, you have privilages to access only files in your windows user directory. Run cmd.exe as administrator and then run bash.

Read more about this here:
https://insights.ubuntu.com/2016/03/30/ubuntu-on-windows-the-ubuntu-userspace-for-windows-developers/

You already asked this at #41

@fdu123
Copy link
Author

fdu123 commented Apr 7, 2016

I did try as administrator and I've got the same result.
Regards

@patryk9200
Copy link

@fdu123 try different path or move file from windows File Explorer to linux rootfs. It's accessible in both ways.
You can access linux subsystem from:
C:\Users\ YOUR_USER_NAME \AppData\Local\Lxss\rootfs

@bitcrazed
Copy link
Contributor

Please DO NOT manipulate the Linux filesystem from Windows - this may well cause issues and/or corruption.

It's fine to access your Windows filesystem from Linux, but the other way around is not a supported scenario at this time.

@patryk9200
Copy link

@bitcrazed Thanks for info!

@jbaribeault
Copy link

It happens to me for things done in /root (root's home directory) completely inside the Linux environment.

@mxalbert1996
Copy link

I think it has nothing to do with unzip. It's just that you can't use mv to move or rename a directory which is not empty.

root@localhost:# mkdir a
root@localhost:
# mv a b
root@localhost:# mkdir b/aa
root@localhost:
# mv b c
mv: cannot move ‘b’ to ‘c’: Permission denied

@fdu123
Copy link
Author

fdu123 commented Apr 8, 2016

@mxalbert1996 I have tried to rename the same folder after a reboot and it works!

@russalex
Copy link
Contributor

Known issue. We have a fix in development. From my internal build:

russ@RUSSALEX-BOOK:$ mkdir a
russ@RUSSALEX-BOOK:
$ mv a b
russ@RUSSALEX-BOOK:$ mkdir b/aa
russ@RUSSALEX-BOOK:
$ mv b c
russ@RUSSALEX-BOOK:~$ ls c
aa

@SamSaffron
Copy link

@russalex is this the same issue as:

root@localhost:/tmp# touch a
root@localhost:/tmp# mv a ~
mv: cannot move 'a' to a subdirectory of itself, '/root/a'

@russalex
Copy link
Contributor

@SamSaffron Yep, confirmed that one is fixed is well internally.

@the-kot
Copy link

the-kot commented Apr 21, 2016

Though it is the question how can we access updates? Particulary, w/o this one fix subsystem is completely useless - most apt/dpkg operations are highly dependent on config directories mving though it is very hard to get anything useful work.

@mxalbert1996
Copy link

Confirmed that this problem is fixed in Insider Preview 14328.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants