
BootAble – FreeDOS boot testing freeware
To obtain direct, low-level access to a system's mass storage drives, SpinRite runs under a GRC-customized version of FreeDOS which has been modified to add compatibility with all file systems. In order to run SpinRite it must first be possible to boot FreeDOS.
GRC's “BootAble” freeware allows anyone to easily create BIOS-bootable media in order to workout and confirm the details of getting a machine to boot FreeDOS through a BIOS. Once the means of doing that has been determined, the media created by SpinRite can be booted and run in the same way.
The participants here, who have taken the time to share their knowledge and experience, their successes and some frustrations with booting their computers into FreeDOS, have created a valuable knowledgebase which will benefit everyone who follows.
You may click on the image to the right to obtain your own copy of BootAble. Then use the knowledge and experience documented here to boot your computer(s) into FreeDOS. And please do not hesitate to ask questions – nowhere else can better answers be found.
(You may permanently close this reminder with the 'X' in the upper right.)
Try or Install Kubuntusudo snap refresh<mydist> with noble .pwd/home/kubuntumkdir 'VirtualBox VMs'sudo systemctl daemon-reloadsudo apt updatesudo apt upgradesudo apt install virtualbox/home/kubuntu/VirtualBox VMsdearmor, otherwise gpg complains "can't open '-dearmor'". Unfortunately, the error message ends with the word "(success)". I suggest people double check if the keyring file is actually created using the following command:ls -l /usr/share/keyrings/oracle-virtualbox-2016.gpg
U after %, otherwise KDE complains "invalid syntax".Hi @leonfeng, if those two items were my only mistakes, I’m happy! I’ve fixed them both, and thanks for finding them.Thank you so much, Scott, for these incredible instructions! I just successfully ran SpinRite 6.1 on my UEFI-only laptop following your guide
Two small corrections:
7.1. There should be two dashes in front ofdearmor, otherwise gpg complains "can't open '-dearmor'". Unfortunately, the error message ends with the word "(success)". I suggest people double check if the keyring file is actually created using the following command:
Code:ls -l /usr/share/keyrings/oracle-virtualbox-2016.gpg
17.5.1. There should be aUafter%, otherwise KDE complains "invalid syntax".
Cheers~
I downloaded your pre-built VM because I'm lazy. And I turned off Secure Boot beforehand to keep things a little simpler.Hi @leonfeng, if those two items were my only mistakes, I’m happy! I’ve fixed them both, and thanks for finding them.
Did you create your own Virtual Machine or download my pre-built one? And did your laptop have Secure Boot on?
I have a 2 years old Dell Precision 7750, Zeon Processor, 64GB RAM, Mobile Workstation. I was working through Parts 3A and 3B to run SpinRite through Kubuntu. I started trying to install to a 64GB flash drive (USB 3.0 on a USB 3.1 port. When I started rufus I did not see any way to load the Kubuntu iso. The only options available were a list of stck bootable images provided by Kubuntu. The same thing happened when I tried to install to a 2TB SSD external drive. I tried doing the install with the rufus anf Kubuntu in the c:| root directory but that made no difference. What am I missing. Thank - pakalNOTE: These steps will create a portable Linux environment on a USB flash drive that can be moved from machine to machine as needed.
As noted in Part 1 of this series, one can create a VirtualBox environment suitable for SpinRite within a Linux OS environment. That Linux boot drive must be setup in a particular way. This article will outline how to setup that drive, and how to run VirtualBox and then SpinRite from that drive.
This article is split into multiple parts:
- Introduction
- Using Windows to Go as the base OS for your bootable VirtualBox system:
- Using Kubuntu Linux as the base OS for your bootable VirtualBox system
- Part 3A - Setting up the Linux drive, Installing VirtualBox (this article)
- Part 3B - Creating a SpinRite Virtual Machine, Mapping the Host drives to the SR Virtual Machine, Steps to take when moving your Linux drive to a new Target Machine
- Using MacOS as the base OS for your bootable VirtualBox system
- Downloading or Creating your VM and moving files in and out of the virtual drive
On your Prep PC (which is running Windows 10 or 11):
NOTE: Instructions have been updated (as of May 9 2024) for Kubuntu 24.04.1 LTS instead of 22.04.4
- Download and install (or use Portable) version of Rufus; MUST USE AT LEAST VERSION 4.5:
- Download the Kubuntu flavour of Ubuntu Linux. Get the LTS version 24.04.1 or higher
- https://kubuntu.org/getkubuntu/
- Get ISO or use the Torrent file to get the ISO
- NOTE: versions earlier than 24.04.1 may give an SBAT error if Secure Boot is enabled
- Insert your USB drive
- Use Rufus with the following options:
- Main screen
- If your drive is NOT a flash drive, but is an External USB SSD drive, click on "List USB Hard Drives"
- Select your USB drive and the Kubuntu ISO
- Partition Scheme: GPT
- Set Persistent Partition Size to at least 12 GB
- The drive will be split between the Persistent Partition and the Partition for the ISO, which needs be at least 10 GB
- All other options default, press Start
- Rufus will now make your flash drive
- Now, go to GRC.com and download your personal copy of SpinRite
- Run the SpinRite executable
- Use the option to create an IMG file.
- By default it's called SpinRite.img, change the name to SPINRITE-FD.img
- Copy that file to your 2nd flash drive and put it aside, you'll use it later
On your Target PC (on which you will eventually run SpinRite against its drives)
A. Getting the OS up to date
- Boot into your firmware settings:
- Ensure Virtualization is turned on, if there is a firmware setting for it (might be called VT-X or AMD-V)
- Your Secure Boot settings do not have to change, just make a note of whether Secure Boot is On or Off
- Boot your PC from the USB using your particular PC's boot option key
- You should see at least one entry for the USB
- You will boot to the main Kubuntu boot menu; select the first entry from the Kubuntu boot menu,
Try or Install Kubuntu- The next screen is a graphical menu to allow WiFi network connection, and for you to decide to Try or Install Kubuntu.
- Connect to your WIFi network or select wired Ethernet, whatever is appropriate
- You obviously want to Try Kubuntu, not install it!
- Once you get to the desktop, ensure you are connected to your WiFi network (or ensure you have Ethernet plugged in and working)
- Go to System Settings | Regional Settings and set:
- Date and Time, set your Time Zone
- Region and Language, set your Language to American English and hit Apply
- Change Power settings so that the system NEVER suspends, goes to sleep or turns itself off
- Go to System Settings | Power Management
- Energy Saving section
- Turn OFF "Screen Energy Saving"
- Turn OFF "Suspend session"
- Click the "Apply" button
- Activity Power Settings section
- Define a special behavior
- Turn ON "Never turn off the screen"
- Turn ON "Never shut down the computer or let it go to sleep"
- Click the "Apply" button
- Reboot. If the system remembered your settings (WiFi network, etc.), then persistence is working, which is required to proceed
- Open the Discover app and click on the bottom left of the menu where it says “Fetching updates”
- You should see a list of Updates to apply. Click on Update All in the top right of the window
- After all updates are installed, Reboot the system
- After reboot, open a Terminal window (called Konsole in Kubuntu)
- Enter the following:
sudo snap refresh- Your system is now up to date
- Open Firefox and ensure it’s working
B. I have a Mac, is there anything else I need to do?
My limited testing is that Macs can work from the base Linux drivers; there are no Linux drivers from Apple, but feel free to read up on running Linux on your particular Mac (or any PC!!) to ensure that you have the drivers you need
C. Installing VirtualBox
Unlike installing on Windows or MacOS, installing VirtualBox on Linux is not straightforward, and varies among the different distributions, mainly due to differing prerequisites (which are not well documented). These instructions are specifically for this Kubuntu release. Virtualbox installation for Kubuntu 24.04 is MUCH easier than it was for version 22.04.
And now VirtualBox is installed. On to Part 3B, setting up the Virtual Machine and installing SpinRite
- Reference:
- Open a Terminal window (called Konsole in Kubuntu)
- You should be in the home directory for the kubuntu user; enter the command:
pwd- Should show:
/home/kubuntu- Make the Virtual Machine directory:
mkdir 'VirtualBox VMs'- From the terminal command line:
sudo systemctl daemon-reloadsudo apt updatesudo apt upgrade
- There will probably be no upgrades to apply but it's fine either way
sudo apt install virtualbox- Enter Y when prompted to proceed
- If you have Secure Boot On:
- The system will throw up a text dialog box telling you that you need a password (at least 8 characters) to generate a signing key. That password must be entered on special screens on the next reboot in order to have VirtualBox work with SecureBoot On.
- I used something simple like “spinrite”; whatever you choose, remember it!!
- After the install finished, exit the terminal
- If you have Secure Boot On, you must now Reboot:
- You’ll see the following prompts:
- A “Perform MOK management” screen
- You may have to press Enter to proceed into MOK Management
- Select “Enroll MOK”
- At the “Enroll MOK” screen
- Select “Continue”
- At the “Enroll the key(s)?” screen
- Select “Yes”
- You’ll be prompted for the password from before; enter it
- At the final screen
- Select “Reboot”
- Now we need to edit the VirtualBox entry on the Application Menu
- Find the “VirtualBox” entry in the Application list menu
- Right click on it, select “Edit Application”
- Select the Application tab
- Click on the Advanced User button
- In the User section, click the box that says "Run as a different user":
- Username: root
- Click OK
- Click OK
- Start VirtualBox by selecting it off the Application Menu
- Go to the File | Preferences menu
- Change Default Machine Folder to:
/home/kubuntu/VirtualBox VMs- Exit VirtualBox
I forgot to mention that I am running Windows 10 Pro Workstation (UEFI Only) and just finished a complete reinstall of everything on the laptop so its all up to date. I also downloaded all of your recommended versions for rufus and Kubuntu. Thanks.I have a 2 years old Dell Precision 7750, Zeon Processor, 64GB RAM, Mobile Workstation. I was working through Parts 3A and 3B to run SpinRite through Kubuntu. I started trying to install to a 64GB flash drive (USB 3.0 on a USB 3.1 port. When I started rufus I did not see any way to load the Kubuntu iso. The only options available were a list of stck bootable images provided by Kubuntu. The same thing happened when I tried to install to a 2TB SSD external drive. I tried doing the install with the rufus anf Kubuntu in the c:| root directory but that made no difference. What am I missing. Thank - pakal
From the Rufus UI click the Select button, it opens a standard Windows file picker dialogue box and you can select the ISO fileI forgot to mention that I am running Windows 10 Pro Workstation (UEFI Only) and just finished a complete reinstall of everything on the laptop so its all up to date. I also downloaded all of your recommended versions for rufus and Kubuntu. Thanks.
That’s odd and I’m not sure where you’ve gone wrongThanks Scott. I must have been "click challenged" when I first tried that. I could have sworn that I clicked on "SELECT" but nothing happened - i.e. no DownArrow for additional selections. Anyway, it worked properly when I went back in and did it again. So, everything was proceeding along as expected until I got to the step in Part 5C where (for Linux) you open Konsol and change to the 'VirtualBox VMs' directory with the command:
cd ~/'VirtualBox VMs'
where I recieve the response - "Permission Denied"
I'm guessing it has something to do with "root" being the owner and maybe the password the was set up earlier but I don't know how to procceed from here.
Thanks.
cd ~pwdls -alYou go here, Part 5C: https://forums.grc.com/threads/how-...ing-files-to-and-from-the-vm-hard-drive.1659/Assuming that is all correct, the last issue I have is how to get Spinrite into the system. …. Where to go from here? Thanks.
Hmm. Not sure why that’s happening for you. I’ll revisit my directions in the next few days and ensure they still work for meOK - I didn't realize that Kubuntu would recognize a flash drive and its contents as soon as it was plugged in - made file tansfer of spinrite.img a breeze to where ever you want. In SRDOS VM I was able to copy spinrite.exe from the a:\ drive (spinrite.img) to the c:\ drive (after deleting dummy spinrite.exe from SRDOS.ova). I'm now at Part 3B, Steps D.3.1 through D.3.4 - "Configuring Access to Target Drives". I was in Konsol and ran "lsblk". The listing that came back was a bunch of Loop0 thru Loop13 (installed apps it looks like) devices but only one drive (sda - disk0 with two partitions) which is the flash drive. Neither one of my laptop drives (2 - 1TB Kioxia NVMe SSD) show up. Does this mean that the actual SSDs I wanted to run spinrite on are not recognizable by Kubuntu? Or do I have to do some kind of extended search? Thanks.
Well that’s a Mac only command, you need to only do the Linux commandsOne other indication that may help - I tried using the "DiskUtlil List" command in Konsol (from your Mac OS Section 4A, 4B) and recieved an error message - "Not found".
Glad you got it to work! I tried to be thorough in my instructions but it doesn’t surprise me that I missed some of the smaller steps. I’ll (eventually) add them to the documentation, thanks!Hi Scott - Quick uodate. While I was waiting for a possible resolution for my internal drives not being recognized by Kubuntu, I went ahead set up (successfully) the Windows OS version of using SpinRite in VirtualBox. …
Hi @pakal , I ran through my Linux instructions from scratch and everything worked as I previously documented. I did not have a permissions problem with theP.S. - if you are able to figure out the issue with Kubuntu not recognizing internal drives, please let me know. I kinda like playing with Linux.
Thanks.
'VirtualBox VMs' directory, and the lsblk command showed the internal drives on my test system. I did clarify some of the instructions (like noting that when prompted for a password, you should just leave it blank and click OK), but otherwise the instructions worked. Maybe try it again, and be very careful of what you type / click? I'll get around to checking the Windows instructions and updating them with your findings later today or tomorrow.Hi @pakal , I went through the Windows instructions and hopefully clarified things. Thanks again!Hi Scott - Quick update. While I was waiting for a possible resolution for my internal drives not being recognized by Kubuntu, I went ahead set up (successfully) the Windows OS version of using SpinRite in VirtualBox.
1. I was used to Debian based distros and I thought Kubuntu had the most intuitive UI. Additionally the persistent partition setup from Rufus doesn’t work with every distro’s Live CD, but it does with Ubuntu and its offshoots.I had a couple of questions for you:
1. Was there anything special about Kubuntu that led you to use it?
2. What is the significance of setting the Persistent Partition Size to at least 12 GB, when VirtualBox only requires ~300MB?
Github handles markdown, and you can create an account there to host content. Post it there, then post a link to that here...post my Linux-only setup guide
Hi @PotatoCakes:Thanks for your response, @Scott. I was going to post my Linux-only setup guide, but the lack of markdown and text formatting support here really made me second guess the ROI on reformatting my notes.
The TLDR is that I found the ParrotOS Live Home ISO to be smaller than Kubuntu (2.4GB vs 4.4GB) and seems to have wider hardware support, enabling the possibility of doing more with less. ParrotOS also published a helpful illustrated Persistent partition guide, which eliminates the need for a Windows PC and Rufus and covers pretty much the first half of the operation. Most of the remaining steps are the same. ParrotOS's MATE Desktop Environment has a few minor differences that cut out several extra steps that kubuntu seems to require and you don't have to upgrade all of the packages to get it operational.
In my testing, I was able to do everything from an 8GB thumb drive, although the recommendation to use a proper SSD makes a lot of sense from a speed perspective. All told, my ISO partition only needed 2.4GB and my persistence partition only needed 592MB. It wasn't until I upgraded all of the packages that my persistence partition needs ballooned up to 2.4GB and I really felt the pain of operating off of a thumb drive.
I tried several other lightweight distros (PuppyLinux, DSL, Q4OS Aquarius, Trinity (1GB), antiX-base (1.2GB), Bodhi Linux (1.3GB), Q4OS Aquarius, Plasma (1.4GB), Peppermint OS (1.5GB), MX Linux (2.1GB)) and found ParrotOS had the best range of hardware support (particularly WiFi, but also as it relates to actually booting).
I had initially tried to do everything from the CLI, but ran into complications with the ISOHYBRID ISO format, which seemed to cause problems when manually-configuring partition tables. I noticed the dus app encounters many of the same errors I did, but it somehow gets everything working.
I hope this helps.
The short answer is, I don’t know. It worked for me on 4 different systems and that’s the extent of my system inventory.Thank you for these instructions. I think I found a new way to mess them up.
BLUF: Where can I read about resetting/changing MOK keys?
Well this is very interesting. Today, after the laptop I was trying to get going as the drive examination machine (and which wouldn't boot kubuntu yesterday) booted just fine this morning after being fully shut down last night. What draining capacitors might have to do with this stumps me. Spinrite is now running and confirming bad sectors on a drive I was suspicious about.The short answer is, I don’t know. It worked for me on 4 different systems and that’s the extent of my system inventory.
If you’re unable to proceed with VirtualBox you can check out the instructions for QEMU that I wrote up for Apple silicon and try and adapt them for kubuntu
VirtualBox seems to be the neglected stepchild of Oracle... there are many times when their site seems to be half broken or worse, unfortunately. They also only ever seem to fix reported problems with it if a customer PAYING for support experiences them. I think the product only exists to allow them to have a way to entice customers into others of their products and platforms, so it doesn't seem to receive the true care or attention of their big earning products like the database or CRM systems.errors trying to use the https://www.virtualbox.org website
I’m traveling for a bit but I’ll update the instructions and URL sometime in the next month or so. Thanks for the info!I was using these instructions today and ran into a problem when installing VirtualBox. Well, okay, two.
….