Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Wubi Auto-installs on unavailable HDD, copying img files to another folder

  1. #1
    Join Date
    Mar 2007
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Wubi Auto-installs on unavailable HDD, copying img files to another folder

    I've been testing WUbi on various hardware setups, and the latest test, on a custom-build machine with 1 SATA drive and 1 IDE drive has had problems. The disk with the largest free space is a partition on the IDE drive, however at boot this disk cannot be found.

    Copying the wubi folder to the SATA drive fails with a 'cannot copy file: make sure the disk' etc error.

    To resolve this error, and copy the .img files to another drive/folder, do the following:

    Load a Windows command prompt
    Navigate to the Wubi folder
    Navigate to the disks folde
    Type the following commands:
    cacls root.img /P Everyone:R
    cacls home.img /P Everyone:R
    cacls swap.img /P Everyone:R

    You will now be able to copy those files to the new folder/HDD. You might want to restore the permissions on the copied files:

    Navigate to the folder you copied the files to.
    Type these commands:
    cacls root.img /P Everyone:N
    cacls home.img /P Everyone:N
    cacls swap.img /P Everyone:N

  2. #2
    Join Date
    Feb 2005
    Beans
    5,138

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    Quote Originally Posted by cro View Post
    The disk with the largest free space is a partition on the IDE drive, however at boot this disk cannot be found.
    Do you know why? Is it a lupin issue or a grub issue?

  3. #3
    Join Date
    Mar 2007
    Location
    Oulu, Finland
    Beans
    47
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    I noticed the file permission thing also when trying to move the files. There is a line in the Wubi AllocFile function which call cacls to set the permissions to None for everyone. It seems this bit of code is from Hello1024, a developer whos been away for a while now. I recall that this sort of behaviour was in discussion at the beginning of this project (yes, i've read through the original thread ).

    The question is, do those imagefiles need to be permission limited? It's more secure, yes, but those images can still be deleted by simply deleting the folder where the files are. And if moving them is needed, it's bit complicated to start changing permissions (though it's true that one rarely needs to). Maybe permissions could be given for Admin and user who is installing Wubi? Anyway, now that i know what's was the problem with the images, i see no problem with current state.

  4. #4
    Join Date
    Feb 2005
    Beans
    5,138

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    Quote Originally Posted by Spegelius View Post
    The question is, do those imagefiles need to be permission limited?
    Hello1024 set the restriction based on one of my old requests, but I asked that because the img files were originally all in 1 folder mixed with all other files and accidental deletion was an issue. Now the img files are in a dedicated "disks" folder, and it is generally more unlikely for people to accidentally remove a folder as opposed to a single file. If we have to set privileges that would be "r/w to admin group only", but in the one-user=one-admin windows world that is mostly meaningless. So I guess we could also simply remove the restriction, ecology2007 is having a look. Suggestions welcome.

  5. #5
    Join Date
    Feb 2007
    Beans
    251

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    Thanks to cro and spegelius for raising the issue and narrowing down the possible options.
    Fix commited.

  6. #6
    Join Date
    Feb 2005
    Beans
    5,138

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    I am also interested in this problem
    however at boot this disk cannot be found.

    cro, feel free to send me a pm with further info. In particular it is important to understand whether it is a grub issue or a lupin one.

  7. #7
    Join Date
    Feb 2007
    Beans
    251

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    Quote Originally Posted by ago View Post
    I am also interested in this problem


    cro, feel free to send me a pm with further info. In particular it is important to understand whether it is a grub issue or a lupin one.
    It s probably grub. It is responsible for error 17 message.

  8. #8
    Join Date
    Mar 2007
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    Yes, sounds about right. It gets past grub and fails on finding the wubi folder using the --find command (apologies for vagueness, I was doing the work a couple of days ago and am currently running on too little sleep )

  9. #9
    Join Date
    Mar 2007
    Beans
    Hidden!
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    An update: I moved the wubi folder to the second partition on my SATA drive, renamed the one of my IDE drive (so there was only one :\wubi folder), and it installed fine, even without setting the file permissions back. I'll do some digging around this evening when I get a chance, see which partitions I can see under ntfs-3g, or anything else that I can find.

  10. #10
    Join Date
    Feb 2005
    Beans
    5,138

    Re: Wubi Auto-installs on unavailable HDD, copying img files to another folder

    The point to investigate is whether the wubi folder is not "found" for any reasons on some of your disks/partitions. Move it to one partition at the time and see which one works and which does not. Just make sure you have a single wubi folder at all times.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •