jsstevenson
2008-Sep-30 11:20 UTC
[Wine] Can Wine be configured to access unmountable harddrive?
Hello... I am trying to run a program under linux using wine called "Recover My Files". This program is designed to recover data from corrupted harddrives contining FAT and NTFS partitions by reading them sector by sector or cluster by cluster. The thing is, the drive in question is unmountable due to logic problems on the device, which it appears is rendering the drive invisible to the program (Recover My Files) I am trying to use under Wine. Running on Windows the program can see and inspect and read the unmountable drive. Equally the drive is accessible to Linux (though not mountable), via the dd command as an example. The question is, is there a way of making this device (/dev/sdc) visible to wine without the luxury of mounting it, thus enabling "Recover My Files" to see the drive in question and perform its low-level inspection and recovery processes? Thanks Jamie
vitamin
2008-Sep-30 13:54 UTC
[Wine] Re: Can Wine be configured to access unmountable harddrive?
jsstevenson wrote:> The question is, is there a way of making this device (/dev/sdc) visible to wine without the luxury of mounting it, thus enabling "Recover My Files" to see the drive in question and perform its low-level inspection and recovery processes?You can try this: Code: mkdir /tmp/c ln -s /tmp/c ~/.wine/dosdevices/f: ln -s /dev/sdc ~/.wine/dosdevices/f:: However I don't think you'll get far with it because Wine does not support low level hdd access.
jsstevenson
2008-Sep-30 16:03 UTC
[Wine] Re: Can Wine be configured to access unmountable harddrive?
Thanks for the suggestion... Unfortunately you seem to be right - the drive is still not accessible. I might have to install windows to deal with this one, which will be a bit of a pain! Thanks again. Jamie.
vitamin
2008-Sep-30 17:37 UTC
[Wine] Re: Can Wine be configured to access unmountable harddrive?
jsstevenson wrote:> Thanks for the suggestion... > > Unfortunately you seem to be right - the drive is still not accessible.Have you checked if you have access to that device? Usually only root can access disk devices.
jsstevenson
2008-Sep-30 19:01 UTC
[Wine] Re: Can Wine be configured to access unmountable harddrive?
Yes I have been running the program as root... gksu wine .<program_name.exe>
jsstevenson
2008-Sep-30 20:44 UTC
[Wine] Re: Can Wine be configured to access unmountable harddrive?
I notice when running the program (Recover My Files) using Wine that the following information appears on the command line...: Code: ~/.wine/drive_c/Program Files/GetData/Recover My Files$ gksu wine RecoverMyFiles.exe fixme:mountmgr:harddisk_ioctl unsupported ioctl 560000 0000001): partial stub. fixme:mountmgr:harddisk_ioctl unsupported ioctl 560000 fixme:mountmgr:harddisk_ioctl unsupported ioctl 560000 fixme:reg:RegSetKeySecurity :(0x68,4,0x3c5a50): stub fixme:reg:GetNativeSystemInfo (0x33f254) using GetSystemInfo() fixme:win:SetLayeredWindowAttributes (0x10030,0x00000000,255,2): stub! fixme:ntdll:server_ioctl_file Unsupported ioctl 24000 (device=2 access=1 func=0 method=0) fixme:ntdll:server_ioctl_file Unsupported ioctl 70000 (device=7 access=0 func=0 method=0) I am assuming at the moment that it is getting a little upset with something it is trying to mount... i.e. my unmountable /dev/sdc! I will go and have a search around to see if I can find any info on these messages.
Tlarhices
2008-Oct-01 02:55 UTC
[Wine] Re: Can Wine be configured to access unmountable harddrive?
jsstevenson wrote:> Thanks for the suggestion... > > Unfortunately you seem to be right - the drive is still not accessible. I might have to install windows to deal with this one, which will be a bit of a pain! > > Thanks again. > Jamie.Did you tried native tools for this ? I have used successfully photorec (which does not only recover pictures, but a lot more like programs, music, ...) on an NTFS drive so crashed that even tools under windows could not handle. There is a tutorial here : http://www.psychocats.net/ubuntucat/recovering-windows-files-with-a-ubuntu-cd-iii-deleted-files/