LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 01-22-2024, 05:45 AM   #1
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Rep: Reputation: Disabled
How to copy files from failing HDD using installation disk etc?


Linux Mint Cinnamon Victoria, OEM motherboard, OEM desktop computer.

My HDD will not boot despite using fsck etc. The boot files seem to be damaged, and I had previously noticed that it had a lot of bad sectors. I believe it needs replacing with a new HDD. Thankfully I have a guarantee.

Currently I am writing this using the installation disk from the DVD drive, but the operating system is only running in memory and I do not know how to get access to the physical HDD so that I can copy files.

Question: How do I get access to the physical HDD please? Ideally I would like to copy files to another HDD on the same computer.

I also have a Linux Mint Cinnamon Vanessa installation disk, and a few others. I can also download and burn dvd disks using an old laptop if necessary.

I recently bought this "new" desktop computer that is a mixture of new and old components, but the HDD is in bad condition.

Thanks.

Update: I have found some other SATA drives in my old non-working computers that I kept for spares. If I physically install one of these drives in the new computer would it at least be possible to see what files are on it before I destroy them by installing an OS over them?

Last edited by grumpyskeptic; 01-22-2024 at 06:29 AM.
 
Old 01-22-2024, 06:23 AM   #2
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 3,976
Blog Entries: 33

Rep: Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467Reputation: 1467
grumpyskeptic,

This should do the trick:
https://www.linuxquestions.org/quest...al-data-38094/

Look at the 3 screenshots just to familiarise yourself with the layout.

Regarding your update:

Yes, it should be possible to access data on those SATA drives in the same way as above.

I would concentrate on copying your personal data from your current drive first.

Last edited by beachboy2; 01-22-2024 at 06:26 AM.
 
Old 01-22-2024, 06:37 AM   #3
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,503

Rep: Reputation: Disabled
All you need do is mount your internal drive & copy files to an external drive - once you have your files, you could try adding/installing a superblock to it, to see if it will still function OK.

https://duckduckgo.com/?t=ftsa&q=ins...n+linux&ia=web

Regarding putting another drive into it, yes, again, you can mount it to see what is on it, (& save anything you want to external disk), before installing a new O/S onto it.
 
Old 01-22-2024, 07:23 AM   #4
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by beachboy2 View Post
grumpyskeptic,

This should do the trick:
https://www.linuxquestions.org/quest...al-data-38094/

Look at the 3 screenshots just to familiarise yourself with the layout.
Thanks, I have done all that, but I cannot get access to the physical HDD. I only ever get booted into a virtual computer running in the memory, with no access that I can find to the physical HDD.
 
Old 01-22-2024, 07:32 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
You should be able to mount the drive with a live mint. Does the output of lsblk show the internal drive?
 
Old 01-22-2024, 08:00 AM   #6
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
There is no mention or showing of the HDD anywhere, as I said it only boots into a virtual computer running in memory.

I've tried Puppy Linux with the same result - it boots into a virtual computer running in memory.
 
Old 01-22-2024, 08:01 AM   #7
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by fatmac View Post
All you need do is mount your internal drive & copy files ...
Of course, but I cannot find the HDD anywhere.
 
Old 01-22-2024, 08:25 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Code:
NAME            MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0             7:0    0  2.4G  1 loop /rofs
sda               8:0    0   22G  0 disk 
├─sda1            8:1    0    1G  0 part 
└─sda2            8:2    0   21G  0 part 
  ├─centos-swap 253:0    0    2G  0 lvm  
  └─centos-root 253:1    0   19G  0 lvm  
sr0              11:0    1  2.9G  0 rom  /cdrom
Output of the lsblk command running a live Mint on a CentOS 7 system. If you can not see the hard drive with output of lsblk or dmesg then it is possible the drive has completely failed. In this case it is an ISO file on a virtualBox VM so it is a DVD disk versus a USB drive.

Last edited by michaelk; 01-22-2024 at 08:26 AM.
 
Old 01-22-2024, 10:08 AM   #9
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
After some bother I have now found the HDD while running Linux Mint from the Live DVD, but trying to mount it gives this error message -

"Unable to mount 1000 GB Volume

Error mounting /dev/sda3 at /media/mint

93bbaf59-393a-40ef-82db-81b45577139c: can't read superblock on /dev/sda3"

I don't know what a superblock is.

What should I do now please?

Thanks.

Last edited by grumpyskeptic; 01-22-2024 at 10:22 AM.
 
Old 01-22-2024, 10:14 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
The superblock is the filesystem metadata i.e. inodes etc.

What type of filesystem is /dev/sda3? Is it a physical volume for LVM. Is it encrypted?
 
Old 01-22-2024, 10:19 AM   #11
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
What type of filesystem is /dev/sda3? Is it a physical volume for LVM. Is it encrypted?
1. Sorry don't know.

2. Sorry don't know that either. Don't know what LVM is, or what a physical volume is.

3. No, it is not encrypted.

I wonder if I should just run the "file repair" option in Disks.
 
Old 01-22-2024, 10:25 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
The output of the following command will show filesystem types:
lsblk -f

It will also show if the partition is a physical volume for a LVM as I posted in #8

Without knowing the filesystem type I would reluctant to run fsck at the moment.
 
Old 01-22-2024, 10:36 AM   #13
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
Thanks, I ran the command in the terminal and got -
Code:
lsblk -f
NAME FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
loop0
     squash 4.0                                                    0   100% /rofs
sda                                                                         
├─sda1
│                                                                           
├─sda2
│    vfat   FAT32       91AA-0EDD                                           
└─sda3
     ext4   1.0         93bbaf59-393a-40ef-82db-81b45577139c                
sr0  iso966 Jolie Linux Mint 21.2 Cinnamon 64-bit
                        2023-07-11-16-54-30-00                     0   100% /cdrom
 
Old 01-22-2024, 10:45 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921Reputation: 5921
Ok, just a regular partition. How did you try mounting it, Something like?

sudo mount -t ext4 /dev/sda3 /mnt
 
Old 01-22-2024, 10:48 AM   #15
grumpyskeptic
Member
 
Registered: Apr 2016
Posts: 472

Original Poster
Rep: Reputation: Disabled
I see that there is also a "Boot Repair" option in the applications menu. Should I try that?

Thanks to everyone for all help.
 
  


Reply



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] Copying over files from 1 hdd to another hdd - will CL transfer faster than "copy/paste" ? duupunisher2x Linux - Newbie 15 09-01-2020 10:30 PM
HDD Partition Failed Boot / ddrescue Operation Completed / Now What to Try and Restore Failing HDD/Partition? GNewbie Linux - Newbie 15 10-14-2016 03:42 PM
copy installation from one HDD to another, which directory NOT to copy? bfzhou Linux - Newbie 9 03-16-2016 11:59 AM
Want to change how pasted files are named "(copy)," "(another copy)," "(3rd copy)" L a r r y Linux - Desktop 3 08-24-2013 03:39 PM
Need to make working copy of failing HDD stoke city Linux - Newbie 19 06-02-2010 10:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 05:59 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
Open Source Consulting | Domain Registration