[SOLVED] Need a way to run Spinrite 6 via GRUB2. Can do either ISO or image file
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Need a way to run Spinrite 6 via GRUB2. Can do either ISO or image file
Basically, I want to be able to run Spinrite 6 (from GRC.com) when I need to without a CD or USB pendrive.
I do know a way to make it work in GRUB-Legacy, but Linux Mint uses GRUB2. Anyone with any insight here?
I know that it uses ramdisk and a couple other things in GRUB-Legacy, but want to use the modern methods, rather than unpacking the image (or ISO) to disk first. Unfortunately, I don't recall much more than that at this exact time.
Or it may not. Thanks for the link, though, because it does answer (partly) another question I had.
Spinrite (which is commercial software by Gibson Research Corporation) uses a MSDOS bootloader (it is OS-agnostic in its actual operation, which is HDD-error recovery) so the article, whilst helpful, isn't totally relevant.
In that case Syslinux' MEMDISK module (which should also work with Grub 2) can help, which can be used to start DOS based images.
Precisely. I've seen (somewhere) usage examples for MEMDISK and related modules, including one that fires up a copy of FreeDOS. This latter case would likely work 100% for Spinrite, since it uses a variant of FreeDOS as its OS loader. What's got me concerned is the fact I'm now getting k-panics that appear to be CPU-related in Linux Mint, which may mean that my time to correct all this is rapidly dwindling. Although I've not seen evidence the CPU's gotten hot enough to force thermal shutdown, I cannot rule it out, either.
Will be investigating the Syslinux wiki link you sent as soon as I finish this response, in fact.
Will be investigating the Syslinux wiki link you sent as soon as I finish this response, in fact.
Okay. I've tried two different approaches suggested by the Wiki; both fail. Below is the (unfortunately GRUB-Legacy or possibly Syslinux) entry that is known to work. Converting it to GRUB2 seems to be the key?
Code:
# SPINRITE
label SpinRite
menu label ^SpinRite 6.0
MENU INDENT 1
KERNEL memdisk
append initrd=/ISO_EXTRA/spinrite.img
Now, if I understand things correctly (see below for the current entry in my 40_custom file) I have things very similarly set up... yet it doesn't work.
Code:
menuentry "SpinRite 6.0" {
linux16 memdisk raw
initrd16 /boot/grub/IMG/SpinRite.img
}
Success!
Installing the grub-imageboot package and moving the image to the correct directory referenced by the package's scripts provided me with this working menu entry:
Code:
menuentry "Bootable ISO Image: SpinRite" {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 a80ddddf-9eb4-483d-8b86-2548c88e2898
else
search --no-floppy --fs-uuid --set=root a80ddddf-9eb4-483d-8b86-2548c88e2898
fi
linux16 /boot/memdisk iso
initrd16 /boot/images/SpinRite.iso
}
Yes, it's considerably more complex than it should be (IMHO), but it works properly. Currently have the scanner paused at 9.9% of the largest partition, to make this report.
Nice that you worked that out. Thanks for posting back the solution!
Now I still need to correct the nasty BSOD that is still there that requires me to run CHKDSK. There's only one problem. CHKDSK only runs in Windows. Can't get to Windows to let it run. (error code references NTFS.SYS, which indicates filesystem corruption.)
Basically, I want to be able to run Spinrite 6 (from GRC.com) when I need to without a CD or USB pendrive.
I do know a way to make it work in GRUB-Legacy, but Linux Mint uses GRUB2. Anyone with any insight here?
I know that it uses ramdisk and a couple other things in GRUB-Legacy, but want to use the modern methods, rather than unpacking the image (or ISO) to disk first. Unfortunately, I don't recall much more than that at this exact time.
Sir,
Have you tried to run Spinrite lately? I am at a humanitarian organization with a dozen drives to examine, I downloaded Spinnrite, but have yet to be able to boot. Wondering how it still goes for you.
Thanks,
3Focus1
Code:
menuentry "Bootable ISO Image: SpinRite" {
insmod part_msdos
insmod ext2
insmod iso9660
set root='hd0,gpt6'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt6 --hint-efi=hd0,gpt6 --hint baremetal=ahci0,gpt6 02081086-2c98-430f-abf2-f0ffd08e62d4
else
search --no-floppy --fs-uuid --set=root 02081086-2c98-430f-abf2-f0ffd08e62d4
fi
linux16 /boot/memdisk iso
initrd16 /boot/images/SpinRite.iso
}
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.