missing hdderase.bat file?
Moderators: Icecube, StopSpazzing
missing hdderase.bat file?
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?
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?
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
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/
Use Parted Magic for handling all partitioning task: http://partedmagic.com/
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?
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?
I tried changing some of the USB configuration options as suggested in this post: viewtopic.php?p=6307#6307, but I still get the same error. Any other things I can try?
-
- Posts: 1368
- Joined: Mon Feb 21, 2005 10:59 pm
- Contact:
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)?
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)?
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.
I tried activating the USB drivers under FreeDOS with various combinations of settings, but none of them worked.
-
- Posts: 1368
- Joined: Mon Feb 21, 2005 10:59 pm
- Contact:
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.
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.
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!
[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.
@ 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
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/
Use Parted Magic for handling all partitioning task: http://partedmagic.com/
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...
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...
@ Victor
You should change the error message to something else:
So a more accurate message would be nice.
You should change the error message to something else:
The batch files are generated on the fly from the content of ubcd.ini.UBCD: Error!!! missing hdderase.bat (check CD)
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/
Use Parted Magic for handling all partitioning task: http://partedmagic.com/
-
- Posts: 1368
- Joined: Mon Feb 21, 2005 10:59 pm
- Contact:
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):
Or a version with less subdirectories?
I prefer the 'complex' version because of its similarities.
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
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/
Use Parted Magic for handling all partitioning task: http://partedmagic.com/
-
- Posts: 1368
- Joined: Mon Feb 21, 2005 10:59 pm
- Contact:
What I did was I created a bootable fdubcd.iso that looks like:
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?
Code: Select all
/dosapps
fdubcd.img
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?
@ Victor
Did you change the batch files, so ubcd.ini is searched in /dosapps/ and not in /ubcd/dosapps/?
isolinux.cfg (small iso)
==> gzip the iso
From UBCD50, syslinux.cfg and isolinux.cfg:
The following will boot xbios directly:
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.
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
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
Code: Select all
LABEL xbios
MENU LABEL XBIOS
LINUX /boot/syslinux/memdisk
INITRD /ubcd/images/fdubcd.iso.gz
APPEND iso raw ubcdcmd=xbios
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/
Use Parted Magic for handling all partitioning task: http://partedmagic.com/
-
- Posts: 1368
- Joined: Mon Feb 21, 2005 10:59 pm
- Contact:
Yes I did. But under FreeDOS, "T:" displays the content of the physical CDROM drive, not the content of fdubcd.iso.Did you change the batch files, so ubcd.ini is searched in /dosapps/ and not in /ubcd/dosapps/?
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
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:
should be:
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.
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
Code: Select all
mdiskchk.com -b -m>>%ramdrv%\bin\setargs.bat
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/
Use Parted Magic for handling all partitioning task: http://partedmagic.com/
-
- Posts: 1368
- Joined: Mon Feb 21, 2005 10:59 pm
- Contact:
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).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.
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.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
Got it! Updated autoexec.bat.I found a bug in the implementation of mdiskchk.com in 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.
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: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.Do you know why the former assigns T: => emulated CDROM drive, while the latter assigns T: => physical CDROM drive?
The script won't be to difficult to write, I guess.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.
Download Ultimate Boot CD v5.0: http://www.ultimatebootcd.com/download.html
Use Parted Magic for handling all partitioning task: http://partedmagic.com/
Use Parted Magic for handling all partitioning task: http://partedmagic.com/