LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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, 08:59 PM   #1
rdanner3
LQ Newbie
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 17.1
Posts: 29

Rep: Reputation: 1
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, 09:04 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
This may help: http://www.howtogeek.com/196933/how-...Speed=noscript
 
Old 06-26-2015, 11:34 AM   #3
rdanner3
LQ Newbie
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 17.1
Posts: 29

Original Poster
Rep: Reputation: 1
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, 12:29 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
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, 10:21 PM   #5
rdanner3
LQ Newbie
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 17.1
Posts: 29

Original Poster
Rep: Reputation: 1
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, 10:56 PM   #6
rdanner3
LQ Newbie
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 17.1
Posts: 29

Original Poster
Rep: Reputation: 1
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, 04:19 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
Whci errors do you get? Also, have you tried it with the ISO instead of the image?
 
Old 06-28-2015, 07:52 PM   #8
rdanner3
LQ Newbie
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 17.1
Posts: 29

Original Poster
Rep: Reputation: 1
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, 12:07 PM   #9
rdanner3
LQ Newbie
 
Registered: Mar 2011
Location: Alabama
Distribution: Linux Mint 17.1
Posts: 29

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

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

Original Poster
Rep: Reputation: 1
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.)
 
  


Reply

Tags
grub2, iso


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:45 PM
Booting DSL iso image from grub2 on a usb mahkoe DamnSmallLinux 1 10-13-2011 08:14 PM
Install Grub2 on a disk image file henriquetft Linux - Virtualization and Cloud 2 11-11-2010 01: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 02:31 AM
mount .iso (image) file and read *.avi file smartdragonfly Linux - Software 2 12-21-2006 05:48 AM


All times are GMT -5. The time now is 08:44 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration