[SOLVED] How to copy files from failing HDD using installation disk etc?
Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,503
Rep:
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.