LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-31-2014, 04:47 PM   #1
Lakeshow32
LQ Newbie
 
Registered: Jul 2014
Distribution: Ubuntu Server 14.04 LTS
Posts: 12

Rep: Reputation: Disabled
lost+found folders created in external USB mounts (Ubuntu Server 14.04)


Hi,

I have three drives mounted in my Ubuntu Server 14.04. These are external USB drives that I use for backup, file sharing, and media storage:

Code:
/dev/sda1 on /mnt/fileshare type ext2 (rw,noexec,nosuid,nodev)
/dev/sda2 on /mnt/media type ext2 (rw,noexec,nosuid,nodev)
/dev/sdb1 on /mnt/backup type ext2 (rw,noexec,nosuid,nodev)
I recently had some issues with the way these drives were being mounted and had to unmount and reboot my server many times. At some point, once I got them mounted properly, I noticed that a "lost+found" folder had been created inside each mounted folder i.e. /mnt/fileshare/lost+found, even though there are actually no files in /mnt/fileshare.

Can someone please tell me:

1-What purpose do these folders serve?
2-What can I do to remove them? (or do I absolutely need to leave them there?)

Thanks for the help.
 
Old 07-31-2014, 06:48 PM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: OpenBSD
Posts: 1,644
Blog Entries: 8

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
Quote:
This is an important directory which is useful for recovering files which are not properly closed due to many reason such as power failure. Lost+Found is created by system at the time of Linux OS installation for each partition we create.
That is a quote from the short description of one of the results when I entered "lost+found directory on linux sysyems" into an ixquick search. The website the search result links to will have the details.

So it would be a good idea to leave those directories there. In my experience, when the system creates a directory, it usually has a use.

Last edited by Randicus Draco Albus; 07-31-2014 at 06:49 PM.
 
Old 07-31-2014, 08:08 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
also to reduce issues with external USB drives for backup you might want to use the UUID instead of /dev/sdX

that will drastically reduce issues
 
Old 07-31-2014, 09:23 PM   #4
Lakeshow32
LQ Newbie
 
Registered: Jul 2014
Distribution: Ubuntu Server 14.04 LTS
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks for the feedback.

If the system created those directories, does that necessarily mean that I have files that were " not properly closed" at some point? If so, do I need to do anything about that? Or does the system simply create those directories as a preventive measure?

I'm just trying to determine whether there is anything I need to address...
 
Old 07-31-2014, 09:35 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,934

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
No, as stated lost+found is created in each file system automatically. If fsck finds a corrupted file it will try recover the contents and put them in the directory.

http://www.tldp.org/LDP/Linux-Filesy...lostfound.html
 
Old 07-31-2014, 09:46 PM   #6
Lakeshow32
LQ Newbie
 
Registered: Jul 2014
Distribution: Ubuntu Server 14.04 LTS
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks.
 
  


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
USB Stick only has lost+found after opening on new server thallium Linux - Newbie 5 10-29-2012 05:53 PM
When mounting an IOMega e-go USB external drive, it mounts read-only jonnas Linux - Hardware 2 09-09-2010 02:15 PM
Maxtor OneTouch II External - Lost+Found and Locked me out?! Plastech Linux - Newbie 18 09-11-2008 08:41 PM
uSB External Hard Drive Mounts Very Slowly rahulthewall3000 Linux - Hardware 0 01-20-2008 06:37 AM
External "mybook" drive only mounts thru usb slacard Linux - Hardware 3 07-06-2007 12:58 PM


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