missing hdderase.bat file?

Discussion/announcements about test/beta releases of UBCD will be posted here.

Moderators: Icecube, StopSpazzing

Message
Author
tuan209
Posts: 1
Joined: Sat Jan 16, 2010 8:55 pm

missing hdderase.bat file?

#1 Post by tuan209 » Sat Jan 16, 2010 8:59 pm

Hi All,

I extracted the ubcd files onto my usb drive and it loads up fine. However, when I try to use Hdderase, it says that I am missing the hdderase.bat file.

Am I doing something incorrectly?

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#2 Post by Icecube » Sun Jan 17, 2010 5:58 am

The FreeDos image doesn't see your USB drive.

Can you give the output of the drd command?

A workaround can be found here:
http://ultimatebootcd.com/forums/viewtopic.php?t=2159
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Daed
Posts: 3
Joined: Sun Apr 25, 2010 3:07 am

#3 Post by Daed » Sun Apr 25, 2010 3:44 am

I'm using UBCD V5.0RC2 and running into the same problem. The output of drd is:

DRD: 'A:' writable (memdisk fake writable)
DRD: 'Q:' writable
DRD: 'T:' inaccessible

All the other letters show up as "invalid".

I tried the workaround found here http://ultimatebootcd.com/forums/viewtopic.php?t=2159, but when I select the "User-defined -> Boot DOS apps of UBCD50RC1" menu item and hit enter, nothing happens.

The strange thing is I remember getting HDDErase to run before on the same machine from a USB drive. I recently reformatted my internal hard drive using DBAN. Could that have anything to do with the problem?

Daed
Posts: 3
Joined: Sun Apr 25, 2010 3:07 am

#4 Post by Daed » Tue Apr 27, 2010 4:27 am

I tried changing some of the USB configuration options as suggested in this post: http://www.ultimatebootcd.com/forums/viewtopic.php?p=6307#6307, but I still get the same error. Any other things I can try?

Victor Chew
Posts: 1359
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#5 Post by Victor Chew » Tue Apr 27, 2010 11:01 pm

What mode of USB booting are you using?

Because if it is USB-HDD, the BIOS should emulate the HDD interface, so FreeDOS should see it without problems. As such, I suspect it is either USB-FDD or USB-LSZIP?

For the latter two cases, I do not have much experience with those modes, but have you tried activating the USB drivers under FreeDOS (by typing "usb" at the command prompt)?

Daed
Posts: 3
Joined: Sun Apr 25, 2010 3:07 am

#6 Post by Daed » Mon May 03, 2010 11:38 am

I don't see an option in BIOS setup to select the USB boot mode. There's a "USB Emulation" section that has "Enabled" and "Off" options and is currently set to "Enabled". This is on a Dell Inspiron 6400 if that's any help.

I tried activating the USB drivers under FreeDOS with various combinations of settings, but none of them worked.

IsLNdbOi
Posts: 49
Joined: Sun Feb 17, 2008 3:07 am

#7 Post by IsLNdbOi » Sun May 09, 2010 10:02 pm

I'm experiencing what the OP is as well. Missing bat file when trying to run HDDerase.

It's getting frustrating having to download and burn all these utilities separately since they don't work properly in the UBCD.

Victor Chew
Posts: 1359
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#8 Post by Victor Chew » Mon May 10, 2010 12:33 pm

Like Icecube mentioned in his previous post, run "drd" from the DOS command prompt. If your USB drive is not assigned a drive letter, you will have problems with all FreeDOS-based apps (not just HDDErase).

In this case, you will need to find a way to get your USB drive to be recognized under FreeDOS (try adjusting the BIOS options, or run "usb" and tweak the various USB options).

Otherwise, try the CD version of UBCD.

IsLNdbOi
Posts: 49
Joined: Sun Feb 17, 2008 3:07 am

#9 Post by IsLNdbOi » Mon May 10, 2010 9:51 pm

When I run either HDDErase v4.0 or this version I added (v3.3) from the CD and from the UBCD USB flash drive I just created, I get this message:

[something about the cdrom being disabled]

BOOTDRV: A:
RAMDRV: Q:

UBCD: Error!!! missing hdderase3.bat (check CD)

Press any key to continue...


My optical drive and hard drives are all SATA. I've tried changing the BIOS from AHCI to IDE modes, but still get the error.


EDIT:
Redownloaded the ISO and redid the modifications and all is working now.

Thanks again!
Last edited by IsLNdbOi on Tue May 11, 2010 1:09 am, edited 2 times in total.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#10 Post by Icecube » Mon May 10, 2010 11:53 pm

@ Victor
Should I spend some time to make a script to build a small ISO with only the DOS apps?
http://ultimatebootcd.com/forums/viewtopic.php?t=2159
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

IsLNdbOi
Posts: 49
Joined: Sun Feb 17, 2008 3:07 am

#11 Post by IsLNdbOi » Tue May 11, 2010 1:10 am

Spoke too soon. While it works fine on an old (~5 years) PC in the living room, it doesn't work on my PC (built last year).

When I run either HDDErase v4.0 or v3.3 from the USB flash drive or CD (SATA optical drive), I get:

BOOTDRV: A:
RAMDRV: Q:

UBCD: Error!!! missing hdderase.bat (check CD)

Press any key to continue...

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#12 Post by Icecube » Tue May 11, 2010 5:26 am

@ Victor
You should change the error message to something else:
UBCD: Error!!! missing hdderase.bat (check CD)

The batch files are generated on the fly from the content of ubcd.ini.
So a more accurate message would be nice.
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Victor Chew
Posts: 1359
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#13 Post by Victor Chew » Tue May 11, 2010 12:26 pm

Should I spend some time to make a script to build a small ISO with only the DOS apps?


How about we move all the DOS apps into an ISO, and get rid of "c:\ubcd-extracted\ubcd\dosapps"?

This should solve the DOS driver issue.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#14 Post by Icecube » Tue May 11, 2010 1:05 pm

It is OK for me.
Do you want to keep the same directory layout for the UBCD_DOS ISO or a simplified one:

Complex (but similar to the full UBCD50 ISO):

Code: Select all

/boot/isolinux
 - isolinux.cfg, isolinux.bin and memdisk
/ubcd/images/fdubcd.igz
/ubcd/dosapps/
 - all files
/ubcd/tools/linux/ubcd2iso/ ==> rebuilding dos iso
/ubcd/tools/win32/ubcd2iso/ ==> rebuilding dos iso

Or a version with less subdirectories?

I prefer the 'complex' version because of its similarities.
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Victor Chew
Posts: 1359
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#15 Post by Victor Chew » Tue May 11, 2010 3:01 pm

What I did was I created a bootable fdubcd.iso that looks like:

Code: Select all

/dosapps
fdubcd.img


then use memdisk from UBCD to launch fdubcd.iso.

The funny thing is FreeDOS can't see the emulated CDROM drive. It can only see the physical CDROM drive.

I tried "cdrom" and its various options (including "identify all drives") but to no avail.

Any idea?

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#16 Post by Icecube » Wed May 12, 2010 2:12 am

@ Victor
Did you change the batch files, so ubcd.ini is searched in /dosapps/ and not in /ubcd/dosapps/?

isolinux.cfg (small iso)

Code: Select all

DEFAULT fdubcd

LABEL fdubcd
LINUX memdisk
INITRD fdubcd.img
APPEND raw

==> gzip the iso
From UBCD50, syslinux.cfg and isolinux.cfg:

Code: Select all

LABEL fdubcd
MENU LABEL FreeDOS with dosapps
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/fdubcd.iso.gz
APPEND iso raw


The following will boot xbios directly:

Code: Select all

LABEL xbios
MENU LABEL XBIOS
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/fdubcd.iso.gz
APPEND iso raw ubcdcmd=xbios

Note: I need to change the sed script to generate the right code for grub4dos.

I don't have ubcd50 at this location, but I will make the image for you this evening.
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Victor Chew
Posts: 1359
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#17 Post by Victor Chew » Wed May 12, 2010 12:02 pm

Did you change the batch files, so ubcd.ini is searched in /dosapps/ and not in /ubcd/dosapps/?


Yes I did. But under FreeDOS, "T:" displays the content of the physical CDROM drive, not the content of fdubcd.iso.

I use (eg):

Code: Select all

LABEL -
MENU LABEL HDDErase V4.0
TEXT HELP
 Securely erases all data on ATA hard disk drives. It offers the option to run
 the drive internal secure erase command, security erase unit, based on the ATA
 specification by the T13 technical committee.
ENDTEXT
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/fdubcd.iso
APPEND iso raw ubcdcmd=hdderase


If memdisk documentation is correct, I should get two drive letters, one for the physical CDROM drive, and one for the emulated CDROM drive. That's not what I see.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#18 Post by Icecube » Wed May 12, 2010 2:53 pm

It works fine for me in qemu and VirtualBox. I don't need to select anything special. But I am not able to see the qemu/VirtualBox CD drive.
Here is the ISO I use:
http://ubcd.stopspazzing.com/downloads/ ... bcd.iso.gz

I found a bug in the implementation of mdiskchk.com in autoexec.bat:

Code: Select all

mdiskchk.com -b>>%ramdrv%\bin\setargs.bat

should be:

Code: Select all

mdiskchk.com -b -m>>%ramdrv%\bin\setargs.bat

Else the ubcdcmd= parameter passed to the ISO isn't detected (only if ubcdcmd= is passed to the floppy image itself)

I didn't change the batch files to look for ubcd.ini in \dosapps\, but it seems to find it automatically.
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Victor Chew
Posts: 1359
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

#19 Post by Victor Chew » Wed May 12, 2010 9:52 pm

It works fine for me in qemu and VirtualBox. I don't need to select anything special. But I am not able to see the qemu/VirtualBox CD drive.


Thanks for fdubcd.iso.gz. Got it working under VMWare (Player 3.0.1) with the same behaviour (T: => emulated CDROM drive; cannot see physical CDROM drive).

I can see the difference is that fdubcd.iso.gz uses isolinux as the bootloader, which in turn boots fdubcd.img using memdisk, whereas my fdubcd.iso uses fdubcd.img as the boot image. My tiny brain is exploding under all this complexity. :D Do you know why the former assigns T: => emulated CDROM drive, while the latter assigns T: => physical CDROM drive?

I found a bug in the implementation of mdiskchk.com in autoexec.bat


Got it! Updated autoexec.bat.

Anyway, I think this approach has potential for those booting from USB CDROM drives or memory stick but have problems getting their source devices recognized under FreeDOS. There might be side effects though that will require further testing, plus we need to write scripts to generate fdubcd.iso.gz, plus we need to settle on the steps to add customized FreeDOS apps so that upgrading to a new version of UBCD is as easy as possible, so let's explore this in the next release.

Icecube
Posts: 1278
Joined: Fri Jan 11, 2008 2:52 pm
Contact:

#20 Post by Icecube » Thu May 13, 2010 4:19 am

Victor Chew wrote:I can see the difference is that fdubcd.iso.gz uses isolinux as the bootloader, which in turn boots fdubcd.img using memdisk, whereas my fdubcd.iso uses fdubcd.img as the boot image. My tiny brain is exploding under all this complexity. :D Do you know why the former assigns T: => emulated CDROM drive, while the latter assigns T: => physical CDROM drive?

When you make an ISO with floppy or hard disk emulation, the floppy or hard disk will be booted end the rest of the ISO will be invisible. AFAIK this is by design. When you use no-emulation on your ISO, you see the full iso (ISOLINUX, GRUB(4DOS)).
Victor Chew wrote:Anyway, I think this approach has potential for those booting from USB CDROM drives or memory stick but have problems getting their source devices recognized under FreeDOS. There might be side effects though that will require further testing, plus we need to write scripts to generate fdubcd.iso.gz, plus we need to settle on the steps to add customized FreeDOS apps so that upgrading to a new version of UBCD is as easy as possible, so let's explore this in the next release.

The script won't be to difficult to write, I guess.
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/

Post Reply