Skip to content

mv can't rename folder after unzip #44

Closed

Description

@fdu123

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

Activity

  1. patryk9200 commented on Apr 7, 2016

    @patryk9200

    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

  2. fdu123 commented on Apr 7, 2016

    @fdu123
    Author

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

  3. patryk9200 commented on Apr 7, 2016

    @patryk9200

    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

  4. bitcrazed commented on Apr 7, 2016

    @bitcrazed
    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.

  5. patryk9200 commented on Apr 7, 2016

    @patryk9200

    Rich Turner (@bitcrazed) Thanks for info!

  6. jbaribeault commented on Apr 7, 2016

    @jbaribeault

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

  7. mxalbert1996 commented on Apr 8, 2016

    @mxalbert1996

    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

  8. fdu123 commented on Apr 8, 2016

    @fdu123
    Author

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

  9. russalex commented on Apr 11, 2016

    @russalex
    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

  10. SamSaffron commented on Apr 13, 2016

    @SamSaffron

    Russ Alexander (@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'
    
  11. russalex commented on Apr 20, 2016

    @russalex
    Contributor

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

  12. the-kot commented on Apr 21, 2016

    @the-kot

    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.

  13. mxalbert1996 commented on Apr 23, 2016

    @mxalbert1996

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions