MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Pages: 1

ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


need help with chdman
#357702 - 08/14/16 01:05 AM


Trying to backup a harddrive using chdman.
i am using an old windows xp.
Got latest and older version of chdman.
I use the command as...
chdman.exe createhd -i \\.\PHYSICALDRIVE0 -o test.chd

i always get a fatal error 1,
unable to open the file "\\.\PHYSICALDRIVE0"

what am i doing wrong???



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: need help with chdman new [Re: ASI]
#357724 - 08/14/16 07:38 PM


It is probably locked by the OS. What is on the drive you are capturing?



ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


Re: need help with chdman new [Re: redk9258]
#357727 - 08/15/16 01:17 AM


trying get this system setup for transfering chd files back to hd for use in arcade machines. Also backing up various fruit machine hd's

i understand it may be locked by system, but how and why locked. and also how to unlock.
Plus also tried same on 3 different pc gets same result.



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: need help with chdman new [Re: ASI]
#357731 - 08/15/16 02:07 AM


PHYSICALDRIVE0 is probably the C drive containing the OS.
If you look in Disk Management (Diskmgmt.msc) is the target disk labeled Disk 0?

When you connect a drive and Windows asks to fuck with it, make sure you answer NO.



ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


Re: need help with chdman new [Re: redk9258]
#357732 - 08/15/16 02:28 AM


disk 0 is the drive im trying to backup
disk 1 is the main c drive

nothing altered with disk connected, and yes understand probs of windows trying to correct what it thinks maybe filesystem errors.

I know its going to be something stupid, but this really bugging me now.



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: need help with chdman new [Re: ASI]
#357741 - 08/15/16 12:07 PM


How is it shown in Disk Management? Online?



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: need help with chdman new [Re: redk9258]
#357759 - 08/15/16 05:08 PM


> How is it shown in Disk Management? Online?

You need an administrator command prompt (right-click the command prompt icon in the start menu and choose "Run as Administrator") to mess with raw disks.

Also, I've never seen a Windows setup where PHYSICALDISK0 isn't the C:\ drive, so be very, *very* careful about which is which.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4464
Loc: Melbourne, Australia
Send PM


Re: need help with chdman new [Re: R. Belmont]
#357763 - 08/15/16 05:59 PM


> > How is it shown in Disk Management? Online?
>
> You need an administrator command prompt (right-click the command prompt icon in the
> start menu and choose "Run as Administrator") to mess with raw disks.
>
> Also, I've never seen a Windows setup where PHYSICALDISK0 isn't the C:\ drive, so be
> very, *very* careful about which is which.

It's pretty common with SAS setups that PHYSICALDISK0 isn't the C: drive, but I don't know how much it happens with less exotic setups.



ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


Re: need help with chdman new [Re: Vas Crabb]
#357774 - 08/16/16 01:12 PM


Yes def active.
Account is administrator.
Under XP no option to run as admin.

Yes PHYSICALDRIVE0 is correct, it could be allocated this way, as c drive is on sata connector, and hd is connected via IDE. which may take preference from bios.

But still same problem of cant open file etc etc



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: need help with chdman new [Re: ASI]
#357782 - 08/16/16 11:32 PM


Post a picture of disk management.



ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


Re: need help with chdman new [Re: redk9258]
#357834 - 08/19/16 12:35 AM


Ok will do this tomorrow as im away from pc tonight.



ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


Re: need help with chdman new [Re: ASI]
#358099 - 08/29/16 08:43 AM Attachment: 20160824_122014.jpg 771 KB (0 downloads)


Ok finally got some time to check this further.
Attached pics show both the diskconfig for windows
the drive im backing up is the 40gig showing as drive0
also can see the exact command line im typing.
But still getting same problem.

I have put a different drive in and installed windows7 then removed the UAC crap. But once again same prob with cant open file ......

So yes i must be doing something totally stupid, or this is one very strange pc.

Help guys..................

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


Re: need help with chdman new [Re: ASI]
#358100 - 08/29/16 08:44 AM Attachment: 20160824_122034.jpg 617 KB (0 downloads)


2nd pic

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: need help with chdman new [Re: ASI]
#358101 - 08/29/16 12:03 PM


Why does the drive have a letter assigned? That is probably the problem. You let Windows assign a drive letter. Windows probably took the liberty of adding pagefile.sys or something to it and now it is locked. Try removing the drive letter, reboot and try again.
Oh, and it is the active drive, so your PC most likely used it as a boot disk.

Edited by redk9258 (08/29/16 12:04 PM)



ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


Re: need help with chdman new [Re: redk9258]
#358103 - 08/29/16 12:42 PM


It is a windows system that the drive is from and removing the drive letter made no difference as tried that previously.

Def not the boot disk either as the drive is a system drive from a fruit machine actually.
Just bugging the hell out of me why chdman cant access as a drive and comes back with error of cant open file ......

as chdman can be used for backing up any drive the fact of a letter assignment shouldnt really make a difference for reading purpose anyway, or should it???

Retried again using different pc, unmounted the drive etc.
Now windows drive is Disk0 and the hd backing up is disk1 but still same problem.

And yes i used PHYSICALDRIVE1

Edited by ASI (08/29/16 01:40 PM)



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: need help with chdman new [Re: ASI]
#358108 - 08/29/16 02:57 PM


ETA: The original game runs Windows so it's not-OK to try and dump it on a Windows machine, but at least the drive letter doesn't mean it was reformatted.

Use WinHex to get a raw dump of the drive, RAR or 7zip that, and contact MAMEdev.

Edited by R. Belmont (08/29/16 03:37 PM)



ASI
MAME Fan
Reged: 02/23/10
Posts: 30
Loc: UK
Send PM


Re: need help with chdman new [Re: R. Belmont]
#358113 - 08/29/16 05:55 PM


Arbee its a harddrive from fruit machine,
im trying to create a system to be able to backup these drives and rewrite them to either new drives or sdcard system to use in fruit machines.
As we know the drives used are now starting to get on a bit and prone to failures, which manufacturers no longer wish to support.
If windows is not suitable for creating a backup system then would a linux system be more use for me to create and write these.
It will only be used for backup/rewrite of these and video games. Nothing else.

So any help with this system would be most helpful.
Thanks



redk9258
Regular
Reged: 09/21/03
Posts: 3968
Loc: Troy, Illinois USA
Send PM


Re: need help with chdman new [Re: ASI]
#358123 - 08/30/16 01:55 AM


Are there more partitions on the Disk that Windows is running from? I can only see the one with C:. It shows the D: drive as active. It will use that partition to boot from if there is not another active partition.

By the way. Have you ever used WinPE? Maybe it would work from a WinPE disc.

Edited by redk9258 (08/30/16 01:56 AM)



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9716
Loc: ECV-197 The Orville
Send PM


Re: need help with chdman new [Re: ASI]
#358135 - 08/30/16 05:19 PM


> Arbee its a harddrive from fruit machine,
> im trying to create a system to be able to backup these drives and rewrite them to
> either new drives or sdcard system to use in fruit machines.
> As we know the drives used are now starting to get on a bit and prone to failures,
> which manufacturers no longer wish to support.
> If windows is not suitable for creating a backup system then would a linux system be
> more use for me to create and write these.
> It will only be used for backup/rewrite of these and video games. Nothing else.

Yes. On Linux, do:
dd if=/dev/(whatever the drive is) of=drive_image.bin bs=512 as root.


Pages: 1

MAMEWorld >> EmuChat
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 488 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 3804