the simple steps - more details below

1)  create the live boot USB (details below)
2)  disconnect all internal drives (if on a desktop, otherwise note all drives in step 5)
3)  boot up to the USB stick, open a KONSOLE window
4)  in the Konsole window, type:     sudo su -
5)  type:    fdisk -l
    (note the device - that's the boot USB)
6)  CONNECT your rescue drive
7)  type:  fdisk -l
    (find the new device - note the device info:  e.g.  /dev/sdb1 (or largest partition)
8) type:  mkdir /root/rescue
9) type:  mount /dev/sdb1 /root/rescue
10) type:  ls -al /root/rescue
    (you should see files on the rescue drive)
11) type:  mkdir /root/rescue/RESCUED
12) type:  df -h
     (you should see space available on the attached drive)
13) type:  mkdir /root/damaged
14) NOW, take the damaged drive and CONNECT THE DRIVE
15)  type:  fdisk -l
    (find the new device and note the "/dev/sd...."  likely /dev/sdc1
16) type:  mount /dev/sdc1 /root/damaged
17) type:  df -h
     (you should see the thumb drive, the rescue drive and the damaged drive)
18) type:  rsync -rth --progress /root/damaged/ /root/rescue/RESCUED/
19) when it is done (could take a while), type:  ls -AlR /root/rescue/RESCUED/
        (you should see your recovered files and directories - if so, you are done!)
20) go to the "LM" icon/menu, select QUIT, then SHUT DOWN. 
       or in the Konsole window type:   init 0
21)  disconnect the two drives and thumb drive, reconnect your system, boot up, and attach the rescue drive in windows
22) you've done it.


SIMPLE OVERVIEW:

1) boot live linux (or use an existing Linux system)
2) mount drive to copy rescued files to
3) mount damaged drive
4) rsync files from damaged to rescue drive
5) shut down the live linux by typing "init 0" or selecting "QUIT" and "Shut down" from the "LM" icon/menu

slightly more detailed entire process outline:
download iso for Linux Mint Mate (select that version only)
download sketcher (link below)
burn the linux mint mate iso to the USB thumb drive (or DVD)
Before powering up Live Linux, you might disconnect all internal drives on your PC
Do NOT connect the damaged drive or the rescue drive
boot your pc to the USB drive or DVD - select START Linux Mint Mate
once booted open a Konsole window (it'll be black background, change the colors in preference: black on light yellow)
after the Konsole window is open you will be logged in as "mint", password is also "mint"
you will execute commands that require root privileges. this is done using "sudo"
you can execute each command as shown prefacing the command with "sudo", or you can switch to root user. recommend that.
so, at the command prompt in the KONSOLE window, type: sudo su -
the prompt should show "root" as your user name
we're going to type "fdisk -l" to see the drives in your system (you'll see the boot media and any drives you left connected)
then we're going to plug in the RECOVERY disk and mount it to your system - check to make sure you can read/write to it.
then we'll plug in the DAMAGED drive and mount it... and WORK FAST to get the files off

(YOU HAVE THREE OPTIONS: using "dd", "cp" or recommended, "rsync"

rsync is the best option - once the DAMAGED DRIVE is mounted and readable it should work until you've copied all files...
if it's in a bad way and starts overheating it might stop working... if so, don't shut off the linux system, but umount the drive
and REFREEZE for a few hours, then remount and execute the rsync command as before and it'll pick up where it left off.

once both drives are mounted, type "df -h" and you will see the space available on all mounted drives.

from the KONSOLE window you will copy files FROM the damaged drive to the RESCUE drive.
When done, just shut it all down from the command line, disconnect the drives
take the RESCUE DRIVE and connect it to your windows machine and see if your files are all there.

You can use that LIVE boot USB anytime to play with Linux or rescue other drives.

when done you can properly umount the drives, or safely shut the system down with the command "init 0"
or select shutdown from the menu...

STEP BY STEP


1) download that iso image for Linux MINT MATE (recommended over the other versions) from a mirror closest to you

2) while waiting for the download: RTM

Linux Mint Installation Guide

_images/qr.png

Linux Mint comes in the form of an ISO image (an .iso file) which can be used to make a bootable DVD or a bootable USB stick.

This guide will help you download the right ISO image, create your bootable media and install Linux Mint on your computer.

Create the BOOT USB stick or DVD


reference only, instructions needed on this page: https://linuxmint-installation-guide.readthedocs.io/en/latest/burn.html

Create the bootable media

The easiest way to install Linux Mint is with a USB stick.

If you cannot boot from USB, you can use a blank DVD.

How to make a bootable USB stick

In Windows, Mac OS, or other Linux distributions

Download Etcher, install it and run it.

_images/etcher.png

Using Etcher

Click Select image and select your ISO file.

Click Select drive and select your USB stick.

Click Flash!.

In Windows

Right-click the ISO file and select Burn disk image.

To make sure the ISO was burned without any errors, select Verify disc after burning.

4) BOOT TO THE LIVE VERSION OF LINUX

(do NOT click on "install", unless you want to install, it will guide you to dual boot with Windows)

Screen shots from a previous dual-boot install with Linux Mint MATE here: http://johnmeister.com/linux/MINT-MATE-dualboot-Win10/tindex.html


Boot Linux Mint

AT THIS POINT the damaged drive and the drive you plan to copy files are NOT connected.
SATA connections can be made safely made with power on.

Now that you have Linux Mint on a USB stick (or DVD) boot the computer from it.

  1. Insert your USB stick (or DVD) into the computer.
  2. Restart the computer.
  3. Before your computer boots your current operating system (Windows, Mac, Linux) you should see your BIOS loading screen.
    Check the screen or your computer's documentation to know which key to press to boot to USB (or DVD).

Note

Most BIOS have a special key you can press to select the boot device and all of them have a special key to enter the BIOS configuration screen (from which you can define the boot order). Depending on the BIOS, these special keys can be Escape, F1, F2, F8, F10, F11, F12, or Delete. That information is usually briefly written on the screen during the boot sequence.

WHEN YOU SEE THE MENU - select START LINUX
The Linux Mint ISO can be booted both in EFI or BIOS mode. In EFI mode it shows a grub menu. In BIOS mode it shows an isolinux menu.
https://linuxmint-installation-guide.readthedocs.io/en/latest/install.html


5) YOU ARE NOW IN A LIVE LINUX SESSION

The live session

When you boot the computer from the USB stick (or DVD), Linux Mint starts a live session. It logs you in automatically as a user called mint and shows you a desktop with the installer on it:

_images/cinnamon.png

The Linux Mint live session

The live session is similar to a normal session (i.e. to Linux Mint once it is permanently installed on the computer), but with the following exceptions:

  • The Live session is slower (it is loaded from a USB stick or DVD as opposed to a SSD or HDD).
  • Changes you make in the live session are not permanent. They are not written to the USB stick (or DVD) and they do not impact the system installed by the installer.

6) NOW THE EASY PART - PREPARING to SAVE FILES


Open a KONSOLE window - it's the little black box 4th down with the $ sign (that's a prompt)
your user name is "mint", I believe the password is also mint. You will use the "sudo" command to execute the commands.

NOTHING YOU DO AT THIS POINT AFFECTS the hard drives on your system, they are NOT mounted yet to this Operating System

Personal preference: change KONSOLE profile to "black on Light Yellow" - easiest to see...

After you've adjusted your KONSOLE window so you can see better, then type
the following command:

sudo fdisk -l

this command identifies the drives on the system.

all drives will be mounted in the /dev directory (devices) TAKE NOTE of what is there and by the size
you should see your internal drives. (or you could unplug all of them for this and then it'll be very simple to
see the damaged drive and the drive you're going to mount to... YOUR CHOICE)

The drives you plug in to save to, and to rescue will likely be /dev/sdb and /dev/sdc if you only have
the thumbdrive in... easy to see the order and SIZE.

Because your damaged drive is already formatted you will just look for it and it'll show up however it is formatted,
if it's still readable.

The rescue device may already be formatted as windows or linux, and should be able to mount without challenges.


AT THIS POINT in your KONSOLE WINDOW, switch to ROOT user.

At the Konsole prompt type:

sudo su -

(the password for mint user should be mint)

Your prompt should have "root" as the user; you can type "whoami"
(the prompt could be $ or some other character or string.

--> whoami

root

you are now ready to copy files...

-----------------------------------

7) CONNECT THE RESCUE DRIVE


Connect the rescue drive and mount it.

type:
fdisk -l

(note the /dev/sdb1 (guessing, ymmv, look at fdisk -l to find it) )

find the designator for the part of the drive you wish to mount if it has multiple partitions

type:
mkdir /root/rescue
mount /dev/sdb1 /root/rescue
ls -al /root/rescue
you should see whatever is on that drive... but create a NEW DIRECTORY on that drive for the FILES:
mkdir /root/rescue/RESCUED
touch /root/rescue/RESCUED/files-go-here.txt
ls -al /root/rescue/RESCUED/
(you should see "files-go-here.txt" (0 bytes) - if you do, you are READY to mount the FAILED drive)
df -h
(you should see your original thumb drive and the rescue drive listed with space used, etc.)


8) CONNECT THE DAMAGED DRIVE and COPY FILES


Connect the damaged drive and we'll mount it to damaged
type:
fdisk -l
(look for the latest drive, likely will be /dev/sdc1 (look for the largest partition, might be sdc2)
mkdir /root/damaged
mount /dev/sdc1 /root/damaged
ls -al /root/damaged
(you should see what is on that drive... if you see files, START COPYING RIGHT AWAY, you're on BORROWED TIME!

TWO OPTIONS: if there's a lot of files you want to use rsync,
if just a few files, "cp" will work, both work the same but rsync allows you to restart a copy

SIMPLE VERSION if there's not a lot of files:
cp -r /root/damaged/* /root/rescue/RESCUED/


BETTER, especially IF THERE ARE A LOT OF FILES AND DIRECTORIES use this command:

rsync -rth --progress /root/damaged/ /root/rescue/RESCUED/

(it will display the files as it copies them from the damaged drive to your other drive... IF the process is interrupted,
you can repeat the same command in the same location and it will pick up where it left off... this is the better approach)
(the "r" is for recursive, goes down the directory tree, "t" is for time, keeps the date/time stamp, "h" is for human readable sizes, "progress" shows what is going on)

WHEN it stops, type:
ls -al /root/rescue/RESCUED/
(are your files on the "good" drive? if so you are done (the next command shows how much space was used)
df -h

IF FILES TRANSFERRED properly then you can umount the drives:
umount /root/rescue
umount /root/damaged

or just type "init 0" in the Konsole...
or go to the menu, select "QUIT" and "shut down"


JohnMeister.com Today's Date:



fotomeister: john's fotos


Study the Bible on line

Bible Basics: an 8 section guide to understanding the Bible
on line here: HTML version Or view in PDF format.
Available at e-book retailers around the world in multiple formats.
Study Guide: The Art of LINUX Sys Admin
john's O'Reilly author info
e-books by john
published e-books by john:
Bible Basics  Full Size Jeep Buyer's Guide Simply Linux: Basics Linux Tackles Microsoft
Mac and Jack - the tail of two kitties Using BASH on Windows 10 Using BASH on Windows 10 - LITE VERSION
Practical Suggestions for Microsoft Windows

Linux Overview
-- bashrc and basics
The vi editor -- Linux notes
Scripting -- Filesystems
OS performance info -- Sys Admin

STUDY the Bible    ...in ONE year
Israel National News -- BBC: MidEast
Der Spiegel -- Voice of the Martyrs
News Links -- Jihadwatch.org
South East Asian Missions
Bible Basics - an e-book
these links updated: 2021-10-14
overview of mankind's history
"Promises and Prophets"

Study the Bible.
verse by verse teachings on MP3
Details of the Passover week

THURSDAY on the cross...

BibleTech: multiple languages in parallel
FULL SIZE JEEP

Buyer's Guide


SJ Jeeps

"Jeep is America's
only real sports car."
-Enzo Ferrari

Mercedes, VW, and other Diesels
Nikon cameras -- and other general tech info

Bibletech
NW pollen count
Seattle traffic
Bridge Christian Fellowship mp3 teachings
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983

purchase AMSOIL and have it installed locally in Western Washington at the following locations, CALL ahead to have your specific AMSOIL products made available at:

- Northland Diesel 360.676.1970 - Bellingham
- Dalton's 360.668.7111 - Snohomish & Marysville
- Fleet Services 425.355.4440 - Everett



SJ - 1962-1991

XJ - 1984-2001

WJ - 1999-2004

KJ - 2002-2007

WK - 2005-2010

Find the recommended
AMSOIL synthetics
for your Jeep

CJ-10A - 1984-1986

Jeepsters

MJ - 1984-1992

Willys - 1946-1965

Other Jeeps (FC)