LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 01: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, 01:33 PM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 13.1
Posts: 1,326

Rep: Reputation: 253Reputation: 253Reputation: 253
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, 05: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, 05:30 AM   #4
bubuntu
LQ Newbie
 
Registered: Nov 2009
Location: Huntsville, Al
Distribution: Ubuntu
Posts: 26

Rep: Reputation: 1
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, 07:55 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
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, 05:53 PM   #6
bubuntu
LQ Newbie
 
Registered: Nov 2009
Location: Huntsville, Al
Distribution: Ubuntu
Posts: 26

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


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


All times are GMT -5. The time now is 10:45 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration