LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2012, 12:20 PM   #1
thallium
Member
 
Registered: Oct 2012
Location: Austin, TX
Distribution: Ubuntu Server 12.04
Posts: 33

Rep: Reputation: Disabled
USB Stick only has lost+found after opening on new server


I was attempting to migrate some users to a new server, that is I reinstalled the OS on the same box. Made a rookie mistake with some file permissions...

Anyways, I copied various user directories to a ext2 formatted thumb drive while preserving file systems. After installing the OS, I connect the drive, the OS detects it, giving [sdb] Assuming Drive cache: write through, [sdd] No Caching mode page present...etc.

Looked suspicious. I mount -t ext2 /dev/sdb1 /media/USB1GB

However, all the files are gone and there is only a lost+found directory with nothing in it. I am working from the command line.

Any suggestions? Are my users info gone forever?
 
Old 10-27-2012, 12:33 PM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Did you check before whether the copy was successful, i.e. unmount and mount r/o again and compute any checksum? How much space is left on the USB stick by df?
 
Old 10-29-2012, 04:02 AM   #3
thallium
Member
 
Registered: Oct 2012
Location: Austin, TX
Distribution: Ubuntu Server 12.04
Posts: 33

Original Poster
Rep: Reputation: Disabled
It looks like the copy was not successful. Though, when I did the copy, I checked the USB stick with DIR to make sure files were copied. Command df only shows 1% of the stick was used, which probably means something went really bad with copying.
 
Old 10-29-2012, 04:30 AM   #4
bubuntu
Member
 
Registered: Nov 2009
Location: Huntsville, Al
Distribution: Ubuntu
Posts: 34

Rep: Reputation: 2
I've gotten so I always use two usb sticks when I copy. They seem to be 95% reliable but that 5% unreliability will eat your lunch.
 
Old 10-29-2012, 06:55 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Did you unmount the USB stick before removing it? Something like this usually happens when the files are still in cache and not physically present on the USB device and it is removed before the cache can be written out to the USB device.
 
Old 10-29-2012, 04:53 PM   #6
bubuntu
Member
 
Registered: Nov 2009
Location: Huntsville, Al
Distribution: Ubuntu
Posts: 34

Rep: Reputation: 2
Duh! I pull em all the time no wonder I keep loosing files!
 
  


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] how to retrieve lost data on a usb stick zenofronia Linux - General 14 07-28-2013 08:49 PM
The 'Lost+Found' folder on usb HD clifford227 Linux - Newbie 3 08-23-2010 08:21 PM
Lost data on USB Memory Stick mallangong Linux - Hardware 1 03-08-2008 04:39 PM
Atmel based USB stick found, but no HW description? Recirqie Linux - Wireless Networking 0 01-05-2005 04:25 PM
lost settings for usb camera (memory stick) Slack 10 tireseas Linux - Hardware 2 12-03-2004 11:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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