LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-03-2017, 11:20 AM   #1
joad4f4
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Not new computer, tried to move files over, lost them.


So I took my old hard drive (It was not the hard drive that my OS was on, just data drive) and using a USB to IDE chord I tried to move files over to my new computer. Both were running mint - old one XFCE, new one KDE. I recently noticed that only my folders had moved with nothing in them. When I went back there was nothing on old drive. When I check properties it says the right number/size of files are still there, but nothing shows up. I have tested the drive and it is fine. I ran Photorec/testdisk and managed to get most of my files back, but some (tifs) are messed up. They are also now unsorted and a huge pile of mish mash. If anyone knows a way I might recover my disk/files as they were I will love you forever and name my next child after you.
 
Old 05-03-2017, 02:03 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Is there a possibility that the files were moved over but that because the permissions were for a different user, that is the reason you can't see them? Have you tried looking at them as root?
 
1 members found this post helpful.
Old 05-03-2017, 03:20 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by joad4f4 View Post
I tried to move files over to my new computer. When I went back there was nothing on old drive.
Did you run afoul of the difference between the move and copy commands? move deletes the original files and copy leaves the original files in place.

------------------------
Steve Stites
 
Old 05-03-2017, 08:54 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Let's hope hydrurga is correct.
Using mv is a very bad practice - use cp/rsync/... then go back and delete later when you have verified things. Have a look in lost+found for any missing (bits of) files - how to incorporate them correctly is a bigger problem.
As for the naming problem, there are several examples out on the web of scripts to do this - usually requires some analyzing of the files to pull out known data; say exif data from photos. Complicated, prone to error and imprecise generally.
 
Old 05-11-2017, 05:18 PM   #5
joad4f4
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the feedback. Sorry it took me so long to get back to this, I was out of town. Unfortunately I did try viewing as root. I also tried putting the drive back in the old computer. I thought I copied and not moved, but as most folders are still there and only one is gone (the important one), I assume I must have accidentally moved that one instead of copied. Let me know if anyone thinks of anything else to try.
 
Old 05-11-2017, 06:58 PM   #6
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I'd still run S.M.A.R.T. on both drives because I had a similar thing happen where I moved a bunch of files onto the hdd and the next day they where bum bum bummmm gone. even though it showed size being used. Then I ran smart on it and it told me to back them up off that hdd because it only 24hrs to live. thing was I couldn't even see the files on that drive. files lost, gone.. no more...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
lost computer login password for computer model d250-1958, S.O.S.teenager Linux - Newbie 5 01-05-2010 07:55 PM
cannot using FTP move command to move files adrianmak Linux - Networking 4 04-21-2009 12:01 PM
How to move open office doc from Linux computer to Windows computer Phoenixink Linux - Software 6 02-15-2007 07:09 AM
USB Storage lost from 2.4 to 2.6 kernal move vonst Slackware 7 05-14-2004 08:48 PM
Lost files during move. spacedoubtman General 3 03-12-2004 03:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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