LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-25-2015, 07:59 PM   #1
rdanner3
Member
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 18.2
Posts: 30

Rep: Reputation: 2
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.
 
Old 06-25-2015, 08:04 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
This may help: http://www.howtogeek.com/196933/how-...Speed=noscript
 
Old 06-26-2015, 10:34 AM   #3
rdanner3
Member
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 18.2
Posts: 30

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 06-26-2015, 11:29 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
In that case Syslinux' MEMDISK module (which should also work with Grub 2) can help, which can be used to start DOS based images.
 
Old 06-27-2015, 09:21 PM   #5
rdanner3
Member
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 18.2
Posts: 30

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by TobiSGD View Post
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.
 
Old 06-27-2015, 09:56 PM   #6
rdanner3
Member
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 18.2
Posts: 30

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by rdanner3 View Post
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
}
 
Old 06-28-2015, 03:19 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Whci errors do you get? Also, have you tried it with the ISO instead of the image?
 
Old 06-28-2015, 06:52 PM   #8
rdanner3
Member
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 18.2
Posts: 30

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by TobiSGD View Post
Whci errors do you get? Also, have you tried it with the ISO instead of the image?
Will do that and see what happens. There is no error, just a black screen leading back to a reboot. Weird stuff.
 
Old 06-29-2015, 11:07 AM   #9
rdanner3
Member
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 18.2
Posts: 30

Original Poster
Rep: Reputation: 2
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.
 
2 members found this post helpful.
Old 06-29-2015, 11:20 AM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Nice that you worked that out. Thanks for posting back the solution!
 
Old 06-30-2015, 12:29 PM   #11
rdanner3
Member
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 18.2
Posts: 30

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by TobiSGD View Post
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.)
 
Old 05-28-2020, 07:49 PM   #12
3Focus1
LQ Newbie
 
Registered: May 2020
Location: Chiang Mai, Thailand/ Texas
Distribution: LM 19.3 Cinnamon
Posts: 7

Rep: Reputation: Disabled
Spinrite Still?

Quote:
Originally Posted by rdanner3 View Post
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
}
 
  


Reply

Tags
grub2, iso



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] GRUB2 and cpuid.iso image re_nelson Linux - General 1 11-22-2013 06:45 PM
Booting DSL iso image from grub2 on a usb mahkoe DamnSmallLinux 1 10-13-2011 07:14 PM
Install Grub2 on a disk image file henriquetft Linux - Virtualization and Cloud 2 11-11-2010 12:41 PM
Mount ISO as specific device (ie: /dev/sda1) with GRUB2 to boot KNOPPIX live cd iso BLuFeNiX Linux - General 2 12-23-2009 01:31 AM
mount .iso (image) file and read *.avi file smartdragonfly Linux - Software 2 12-21-2006 04:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration