LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-08-2014, 09:22 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 751

Rep: Reputation: 156Reputation: 156
where did my files go?


Hi,

I am planning to migrate from Centos6.5 to 7 shortly. Before that I wanted to move the contents of my backup disk to a new location.
  • I plugged in the disk and formatted it. In my fstab I have a commented mount point /mnt/extend which I use for new disks.
  • I added the UUID of the new disk to this and mounted.
  • I kicked off the rsync from old mount point to new and it crashed after a while. I didn't bother to note down the error.
  • Hmmm, I didn't remove the comments in fstab so /mnt/extend was still in limbo.
  • I removed the comment, mounted and I could see a fresh disk with just lost+found. Started to rsync again and all was good.
Now, I am curious to know...where did the files go when I originally used rsync to copy from old mount point to new mount point (which at the time was not pointing anywhere)? I can't see them on the system anywhere.

Cheers
 
Old 08-08-2014, 09:30 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,635
Blog Entries: 28

Rep: Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231Reputation: 6231
It sounds as if they went to /dev/null.

If you remember the name of one of the files, you could try using the locate command. You might have to run updatedb (as root) first. See man locate for details.
 
1 members found this post helpful.
Old 08-08-2014, 09:30 PM   #3
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,882

Rep: Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644Reputation: 644
Quote:
Originally Posted by timl View Post
where did the files go when I originally used rsync to copy from old mount point to new mount point (which at the time was not pointing anywhere)?
...but still existing as a regular directory - so that's where they went - likely filling your root partition and causing the abort.
Quote:
I can't see them on the system anywhere.
Because the external volume is now mounted "over the top" of them.
 
1 members found this post helpful.
Old 08-09-2014, 01:13 AM   #4
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 751

Original Poster
Rep: Reputation: 156Reputation: 156
thanks for the responses. locate doesn't find the files but as descendant_command highlights, that is because I have mounted a volume over the top of them. If I "umount" the volume then I can see the files in /mnt/extend and, yeah, root does look quite full.

So I umounted the volume on /mnt/extend and then deleted the files on what is now /mnt/extend. Bingo, a bit more free space.

And all the files are still present when I mount the volume again
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Configure mysql InnoDB to use data files or log files on NFS volumes?? novice32 Linux - Software 4 04-15-2010 09:15 PM
need to rsync only selected files (--files-from) also need to delete files on dest. ? BrianK Linux - General 5 10-22-2009 10:52 PM
in copy files or ls files the command want to invert select some files how to?? hocheetiong Linux - Newbie 3 06-27-2008 07:32 AM
How program to read files with extension .dat y .cfg files COMTRADE in fedora 1? ivonne Linux - Software 0 11-22-2004 12:42 PM
How to filter files in files and files which are in a sub-directory with "grep"? Piero Linux - Newbie 9 08-29-2003 03:38 AM

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

All times are GMT -5. The time now is 06: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