NOTE: 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:
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
- Main screen
- 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
- Define a special behavior
- 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 needC. 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.- 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-reload
sudo apt update
sudo 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”
- A “Perform MOK management” screen
- You’ll see the following prompts:
- 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
Last edited: