LinuxQuestions.org
Help answer threads with 0 replies.
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 05-25-2020, 01:31 AM   #1
3Focus1
LQ Newbie
 
Registered: May 2020
Location: Chiang Mai, Thailand/ Texas
Distribution: LM 19.3 Cinnamon
Posts: 7

Rep: Reputation: Disabled
Spinrite on a Dual Boot, Error: not a regular file


Hello !

My wife and I are overseas looking at a humanitarian organization and there's a pile of external drives which need help. I've heard good things about Spinrite and would like to get it going on my dual-boot laptop. Here's what I have, which I saw on RDANNER's post, which has been adapted close to my situation, but not quite, because it does not work.:

Rev 6

menuentry "Bootable ISO Image: SpinRite" {
insmod part_msdos
insmod ext2
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
}

Another user's input got me to thinking and I went back and corrected an image problem. There is now an authentic SpinRite.iso in the /boot/images folder. Somehow, Windows has been using it, but it wasn't an iso image. Upon sudo update-grub, grub now, for the first time, finds the iso. Exciting !
  1. Now, however, there are two instances of "Bootable ISO Image: SpinRite" in the startup Grub menu. Selecting either just gives a blank dark screen. Hard-drive light stays lit.
  1. So, to test, I deleted everything in 40_custom which I put into that document and rebooted. This time only one copy of "Bootable ISO Image: SpinRite" appeared in the Grub menu. Though, still a dark screen. Hard-drive light stays lit.
  2. I assume, the OS-prober must now be finding SpinRite.iso and Grub is also loading from 40_custom? Is either looking at the Insmod's so that Grub will know what to do with it?
  3. Feeling encouraged as it seems some progress is being made. Though, not fast. Wondering if grub-imageboot package and OS-prober conflict a bit?

Actually enjoying the mystery of it all. Linux is seems very logical. Would love to get things working; though, impressed nonetheless.

Last edited by 3Focus1; 05-28-2020 at 02:43 AM. Reason: updated code
 
Old 05-25-2020, 06:16 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,059

Rep: Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937Reputation: 1937
The Spinrite site indicates that it is a windows executable file when downloaded and you need to use windows to create a bootable CD/DVD/USB. Which software did you use to do this.

Quote:
I saw on RDANNER's post
What or who is 'RDANNER'? Is that a web site with instructions? A post on some forum? You should post a link to it so we know what you are referring to.
If you are using a USB, what filesystem do you have on it? If the drive(s) are the older Legacy/msdos then I expect you would need to change the entries you have from ''hd0,ext6' to 'hd0,msdos6' if that is the correct partition. Also make sure you have the correct UUID. Posting a link to the instructions you used would likely be helpful.

You indicate you have a 'dual-boot', dual-boot with what? Doesn't work isn't helpful so post specific information on exactly what happens when you try to boot.

Last edited by yancek; 05-25-2020 at 06:17 AM.
 
Old 05-25-2020, 07:04 AM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,750

Rep: Reputation: Disabled
Quote:
Originally Posted by 3Focus1 View Post
My wife and I are overseas looking at a humanitarian organization and there's a pile of external drives which need help. I've heard good things about Spinrite
I'm going to stop you right there, because SpinRite is probably (no, almost definitely) not the right tool for this job.

I've used SpinRite many times, and it has one fatal flaw: It writes the data it believes it has "rescued" back to the damaged drive; it provides no mechanism for copying the data somewhere else.

This may have made some sense back when SpinRite was first created, because hard drive data density was much lower and often a "bad sector" wasn't necessarily physically bad, or at least it wasn't an indication that the entire drive was failing. Writing the data back would typically either restore the sector, or the S.M.A.R.T. automatic reallocation feature would kick in and use one of the reserved sectors instead.

Today, a drive with more than one or two bad sectors needs to be replaced ASAP, no exceptions. Writing data back to such a drive is just lunacy; you're practically begging for your data to be corrupted.

Also, leaving a defective drive on for hours or even days while SpinRite attempts to do its thing is quite likely to cause further damage to the drive.

If all this wasn't enough, consider that SpinRite doesn't know about USB interfaces at all (it's a DOS application), and will be relying on BIOS functions to read and write data to the drive. That means it most likely won't be able to read the S.M.A.R.T. status of the drive, and any sectors it believes it has "partially" recovered may actually just be random noise.
 
Old 05-25-2020, 08:16 AM   #4
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 19.2 MATE, MX-19, antiX, Manjaro
Posts: 2,967
Blog Entries: 17

Rep: Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097
3Focus1,

Ser Olmy is correct. SpinRite is not the tool for this job.

I would recommend connecting each drive to a USB/SATA adapter and then use either PhotoRec in Linux or, probably more simply, the GUI version, QPhotoRec, in Windows. It recognizes more than 480 file formats.
Save the recovered data to an external drive.

QPhotoRec:
https://www.ghacks.net/2015/04/20/ho...tos-and-files/

QphotoRec 7.2:
https://codecpack.co/download/QPhotoRec.html

Tutorial:
https://fstoppers.com/originals/revi...comment-thread

QphotoRec download:
https://www.cgsecurity.org/wiki/TestDisk_Download

Info:
https://www.linuxquestions.org/quest...hotorec-37712/
 
Old 05-25-2020, 08:20 AM   #5
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 19.2 MATE, MX-19, antiX, Manjaro
Posts: 2,967
Blog Entries: 17

Rep: Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097
yancek,

rdanner3's post:
https://www.linuxquestions.org/quest...le-4175546458/
 
Old 05-25-2020, 08:06 PM   #6
3Focus1
LQ Newbie
 
Registered: May 2020
Location: Chiang Mai, Thailand/ Texas
Distribution: LM 19.3 Cinnamon
Posts: 7

Original Poster
Rep: Reputation: Disabled
Wink

I am a retired mechanic, not a programmer, and readily admit that there's a bit to learn. You all are pioneers and Linux Mint has been A HUGE blessing, as it reads both PC and MAC drives. We have made it through roughly 20, yet there are likely more than a dozen remaining with various maladies which external drives incur, -with needed materials residing on them. You all are AWESOME!!!

Ser Olmy/ BeachBoy2, I appreciate your time and look forward to examining your materials. I want to hear other's experience in this realm and will keep your thoughts in the back of my mind.

Someone else's post to add to our discussion about Spinnrite.

https://github.com/jackwasey/linuxrite

I heard lately on a podcast that Steve Gibson is working on a new update even as we speak.

The ISO is in /boot/images and on an external DVD drive, and neither are working just yet, though I do now have a menu option in Grub2. The iso is downloaded, then formed onto an ISO DVD by Windows, it works on Windows singular boot machines. Lately, ISO has been copied, from the same DVD, to sda6 /boot/images.

RDANNER's post:

https://www.linuxquestions.org/quest...le-4175546458/

Thank you all for your interest. I am humbled.

There is actually another drive here which does need actual file recovery from an accidental format. Between Testdisk, Autopsy, and Sleuthkit I have had no joy as of yet, because this obviously is not (yet) my area of expertise. Back in the day, I would have pulled out trusty Pctools.exe, figured out the 1st character of every file (Lord willing), recovered the original directory/ folders/ files and been back in action. Testdisk (will be possible option) doesn't give me comfort in my ignorance and Autopsy (GUI which uses Testdisk/photorec) for Linux, from the LM repository is an old version which wants an image, and there isn't the free-space for all that here. Autopsy for Windows will not open the disk in question, because it is a Mac format external drive.
That dual-boot Linux Mint/ Win 8.1 will not open the Spinrite without effort is a separate, yet connected issue. Spinrite will likely only get a couple. I know from being a mechanic for many years that what the mechanic knows is half the solution, the other half is his tools. I am hoping to get (updated) Spinrite back, as is Testdisk also is Spinrite, a peculiar and useful too.

I also plan to break the drives open and mess with the magnets as someone else advised, if all else fails.

Gratefully, 3Focus1

Latest Grub2 40_custom:

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_V6_BOOT.iso
}


Disk identifier: C4DB441B-C4F4-11E3-8028-C67EAAF5D749
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 ntfs System 7AF0D2F4F0D2B59B

└─sda6 ext4 02081086-2c98-430f-abf2-f0ffd08e62d4 /
sr0 iso9660 SPINRITE_V6_BOOT 2020-03-18-02-47-27-00 /media/scot

/dev/sda6 1729804288 1934604287 204800000 97.7G Linux filesystem

scottb@scottb-Satellite-S55t-B:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 931.5G 0 disk
├─sda1 8:1 0 1G 0 part
├─sda2 8:2 0 100M 0 part /boot/efi
├─sda3 8:3 0 128M 0 part
├─sda4 8:4 0 823.6G 0 part
├─sda5 8:5 0 9G 0 part
└─sda6 8:6 0 97.7G 0 part /
sr0 11:0 1 1.8M 0 rom /media/scottb/SPINRITE_V6_BOOT



scottb@scottb-Satellite-S55t-B:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint/theme.txt
Found linux image: /boot/vmlinuz-5.3.0-53-generic
Found initrd image: /boot/initrd.img-5.3.0-53-generic
Found linux image: /boot/vmlinuz-5.3.0-51-generic
Found initrd image: /boot/initrd.img-5.3.0-51-generic
Found linux image: /boot/vmlinuz-5.3.0-46-generic
Found initrd image: /boot/initrd.img-5.3.0-46-generic
Found linux image: /boot/vmlinuz-5.0.0-32-generic
Found initrd image: /boot/initrd.img-5.0.0-32-generic
Found Windows Boot Manager on /dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for EFI firmware configuration
Found memdisk: /boot/memdisk
done

Last edited by 3Focus1; 05-26-2020 at 02:49 AM.
 
Old 05-26-2020, 12:15 AM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,750

Rep: Reputation: Disabled
Quote:
Originally Posted by 3Focus1 View Post
I heard lately on a podcast that Steve Gibson is working on a new update even as we speak.
He's been saying that for the last 15 years. I hope he gets around to doing a rewrite eventually, but I'm not holding my breath.
Quote:
Originally Posted by 3Focus1 View Post
I also plan to break the drives open and mess with the magnets as someone else advised, if all else fails.
There's a good chance that simply opening the drive will instantly break it and make data recovery next to impossible.

The heads on modern drives fly so close to the platter that a single speck of dust is enough to damage both the head and the platter surface. Such work must be done in an environment with filtered air.

There are some really good YouTube channels that deal with hard drive data recovery, such as these:

Louis Rossman: https://www.youtube.com/user/rossmanngroup/videos
ACS Data Recovery: https://www.youtube.com/user/acsdata/videos

When they do work that requires them to open a drive, you will hear considerable fan noise in the background. That's because they work under a hood that constantly receives a stream or highly filtered air, pushing any pollutants out.

Since you're working with external USB drives, there's a good chance some of them are Seagate Rosewoods. You may want to take a look at this video first, as it tells you why it's an extremely bad idea to leave these drives powered on for an extended period of time if there's a problem with them: https://www.youtube.com/watch?v=6b0JcNqkZrk

I believe it was another user on this forum that once said: "No important data is ever lost in a hard drive crash. Because if the data was important, it would have been backed up." Harsh, but true.

By the way, the magnets inside a drive are just there to create a magnetic field for the voice coils that move the heads. Moving the magnets will accomplish absolutely nothing.
 
Old 05-26-2020, 11:27 AM   #8
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 19.2 MATE, MX-19, antiX, Manjaro
Posts: 2,967
Blog Entries: 17

Rep: Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097Reputation: 1097
3Focus1,

I have also successfully used the commercial ($14.99) version of Diskdigger on Windows:
https://diskdigger.org/

NB The free version in Windows recovers files one at a time and takes for ever. That is why I paid for the commercial version which recovers all the files in one go and quickly.
I have not used the Linux version.

Quote:
Is DiskDigger free?

When using it in Windows, DiskDigger is free for downloading, scanning your disk, and previewing any recoverable files. However, when saving the recoverable files, the program strongly encourages you to purchase a personal license. To use the program for commercial purposes, you must purchase a commercial license.

When using DiskDigger in Linux, it's completely free.

Last edited by beachboy2; 05-26-2020 at 11:56 AM.
 
Old 05-27-2020, 08:29 PM   #9
3Focus1
LQ Newbie
 
Registered: May 2020
Location: Chiang Mai, Thailand/ Texas
Distribution: LM 19.3 Cinnamon
Posts: 7

Original Poster
Rep: Reputation: Disabled
Wink Ser Olmy, You are Wise

Quote:
Originally Posted by Ser Olmy View Post
There's a good chance that simply opening the drive will instantly break it and make data recovery next to impossible.
Sailor's often transit through the Straights of Gibraltar which, the island of Gibraltar, incidentally appears to be the last remaining realm of wild monkeys in Europe? Many of the newbies, on the ship, were sent out on deck as we transited near the high tension lines, which cross high above the straights, to watch for falling monkeys who might leap from the heights above the ship and land on the deck.
As a simpleton, I know there is a simpleton who is made the wiser as a result.
I think the person who asked that I "play with the magnets" was sending me out on to the deck to watch for "monkeys". He doesn't know that I am a mechanic, who is also an idiot, I am pondering what he just said, already. I would like to watch your videos and see what might be learned.
After all has has failed, -if the drive is truly broken already...? What might a cautious soul find possible?
Lord of Providence, have mercy... for all of us, give us your wisdom and your uncanny creativity.

Last edited by 3Focus1; 05-27-2020 at 10:13 PM.
 
Old 05-27-2020, 10:57 PM   #10
3Focus1
LQ Newbie
 
Registered: May 2020
Location: Chiang Mai, Thailand/ Texas
Distribution: LM 19.3 Cinnamon
Posts: 7

Original Poster
Rep: Reputation: Disabled
Cool Adding Disk Digger to My Box of Tools, NOW

Quote:
Originally Posted by beachboy2 View Post
3Focus1,

I have also successfully used the commercial ($14.99) version of Diskdigger on Windows:
https://diskdigger.org/

NB The free version in Windows recovers files one at a time and takes for ever. That is why I paid for the commercial version which recovers all the files in one go and quickly.
I have not used the Linux version.
Minitool and Diskdigger, a great duo?

INTERESTED ! I bet this would be a GREAT tool in my box. Preparing to download the one for Linux. $14.99 is is not a bad price either.

Last edited by 3Focus1; 05-28-2020 at 12:01 AM.
 
Old 06-03-2020, 09:25 PM   #11
3Focus1
LQ Newbie
 
Registered: May 2020
Location: Chiang Mai, Thailand/ Texas
Distribution: LM 19.3 Cinnamon
Posts: 7

Original Poster
Rep: Reputation: Disabled
Spinrite Still? [Solved]

Everyone,

None of the problems I have had operating Spinrite from a Linux dual-boot appear to be problems which arise from Linux Mint.
  • It appears, the problems are between Grub, Spinnrite and my own laptop at home, as I was able to get Spinrite working, with a genuine ISO formatted CD after installing the grub-imageboot package, to get the program working on a dual-boot old core-duo desktop and another HP laptop at the office.
  • Spinrite would not work on a Windows 10, all-in-one machine, as FreeDOS/ Spinrite were having trouble with AHCI drives. -Some similar issue on my home laptop?

Anyway, I am reading through the Grub manual and looking for ways to enable Spinrite to operate, then to be able to find ailing drives, which then perhaps make us able to solve similar problems with other programs/ apps. I like those guys/ gals at Grub.

Similar to the Grub community, I enjoy the Linux guys/ gals too. Both small and purely talented; yet loyal, good-hearted, and resourceful.

Gratefully,
3Focus1
 
  


Reply


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] Need a way to run Spinrite 6 via GRUB2. Can do either ISO or image file rdanner3 Linux - Newbie 11 05-28-2020 07:49 PM
question about using Spinrite newbiesforever General 5 08-17-2019 10:30 AM
[SOLVED] Running SpinRite 6.0 in Virtualbox Linux OS TedCleggett Linux - Virtualization and Cloud 1 10-23-2013 04:08 PM
Dual boot Dual hdds, Download of ubuntu 10.1, no vista or dual boot jim d Linux - Newbie 4 11-25-2010 04:18 PM
Dual partition, dual OS, but not dual boot. mikalee Linux - General 7 12-20-2009 10:42 AM

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

All times are GMT -5. The time now is 08:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration