LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-31-2014, 03: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, 05:48 PM   #2
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,711
Blog Entries: 8

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
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 05:49 PM.
 
Old 07-31-2014, 07:08 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
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, 08: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, 08:35 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
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, 08:46 PM   #6
Lakeshow32
LQ Newbie
 
Registered: Jul 2014
Distribution: Ubuntu Server 14.04 LTS
Posts: 12

Original Poster
Rep: Reputation: Disabled
Thanks.
 
  


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

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

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