Author Topic: Clearing "lost+found" File from USB  (Read 883 times)

Offline moresouth

  • New Friend
  • *
  • Posts: 4
Clearing "lost+found" File from USB
« on: February 07, 2012, 07:53:26 PM »
Somehow or another I have the aforementioned file locked onto a USB stick and this is stopping me from using it. I was planning to put LXDE 2012 on it and install on a newer netbook I now have.

Unfortunately, this odd ball file seems to be locked in some way. I can't access it to see what it may have lost or found, I can't delete it as I'm unauthorized to do so and overwriting the USB still leaves it there. GParted shows it but won't remove or overwrite it. I can't even get to it as "root". Clicking "Root" in file manager gives me a long list of files on the HDD. The USB is ignored.

I have no idea where it came from or why it's refusing to depart. How can I permanently erase this and get my USB stick back in use?

moresouth

Offline Old-Polack

  • Administrator
  • Super Villain
  • *****
  • Posts: 11532
  • ----IOFLU----
Re: Clearing "lost+found" File from USB
« Reply #1 on: February 07, 2012, 07:59:51 PM »
Somehow or another I have the aforementioned file locked onto a USB stick and this is stopping me from using it. I was planning to put LXDE 2012 on it and install on a newer netbook I now have.

Unfortunately, this odd ball file seems to be locked in some way. I can't access it to see what it may have lost or found, I can't delete it as I'm unauthorized to do so and overwriting the USB still leaves it there. GParted shows it but won't remove or overwrite it. I can't even get to it as "root". Clicking "Root" in file manager gives me a long list of files on the HDD. The USB is ignored.

I have no idea where it came from or why it's refusing to depart. How can I permanently erase this and get my USB stick back in use?

moresouth

lost+found is a product of formatting the partition. If you want to remove it you have to do that as root, but it hurts nothing being there.
Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...

Offline TerryH

  • Hero Member
  • *****
  • Posts: 559
Re: Clearing "lost+found" File from USB
« Reply #2 on: February 07, 2012, 08:11:27 PM »
I can't even get to it as "root". Clicking "Root" in file manager gives me a long list of files on the HDD. The USB is ignored.


Clicking "Root" is not doing something as root, it is just accessing the "/ " root partition directory.  You must actually complete the required action as the root user.
https://linuxcounter.net/cert/542348.png

Aussie, Aussie, Aussie........Eh!,  Eh!,  Eh!

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Clearing "lost+found" File from USB
« Reply #3 on: February 07, 2012, 08:18:45 PM »
"lost+found" is supposed to be a folder and it is created by ext family file systems when the partition is formatted.

Are you sure it is a file and not a folder?.

.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Clearing "lost+found" File from USB
« Reply #4 on: February 08, 2012, 04:07:52 AM »
Somehow or another I have the aforementioned file locked onto a USB stick and this is stopping me from using it. I was planning to put LXDE 2012 on it and install on a newer netbook I now have.

>snip<

moresouth
     
Is the stick formatted as ext4? Reformat it as ext3 and then install LXDE 2012.     

Offline cyrwyn

  • Hero Member
  • *****
  • Posts: 832
Re: Clearing "lost+found" File from USB
« Reply #5 on: February 10, 2012, 09:47:58 AM »
Any version of ext filesystem will recreate the lost+found folder when mounted. You can't get rid of it, but it should be an empty folder, taking little space.
Using Linux for over 18 years and still counting.

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10612
  • MLUs Forever!
Re: Clearing "lost+found" File from USB
« Reply #6 on: February 10, 2012, 03:47:07 PM »
Any version of ext filesystem will recreate the lost+found folder when mounted. You can't get rid of it, but it should be an empty folder, taking little space.

IIRC, ext2 does not ....  as it has no journalling .... 
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Clearing "lost+found" File from USB
« Reply #7 on: February 10, 2012, 05:10:44 PM »
Any version of ext filesystem will recreate the lost+found folder when mounted. You can't get rid of it, but it should be an empty folder, taking little space.

IIRC, ext2 does not ....  as it has no journalling .... 

lost+found exists on nearly every *nix filesystem, including ext2, its purpose is to allow the "recover"  "lost files" because of an unclean unmount of a filesystem, when "files are found" from fsck.

The purpose of the journal is different, in that when present the latest write operations (possibly not completed at time of a crash) will be re-applied upon remount of the filesystem, thus decreasing the possibility of inconsistent behavior.



Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10612
  • MLUs Forever!
Re: Clearing "lost+found" File from USB
« Reply #8 on: February 10, 2012, 05:30:55 PM »
Any version of ext filesystem will recreate the lost+found folder when mounted. You can't get rid of it, but it should be an empty folder, taking little space.

IIRC, ext2 does not ....  as it has no journalling .... 

lost+found exists on nearly every *nix filesystem, including ext2, its purpose is to allow the "recover"  "lost files" because of an unclean unmount of a filesystem, when "files are found" from fsck.

The purpose of the journal is different, in that when present the latest write operations (possibly not completed at time of a crash) will be re-applied upon remount of the filesystem, thus decreasing the possibility of inconsistent behavior.




mis-remembering .....  again .....  :(  :(

Thanks for the correction  ;)  and apology to cyrwyn
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Xenaflux

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3834
Re: Clearing "lost+found" File from USB
« Reply #9 on: February 11, 2012, 05:05:26 AM »
Quote
mis-remembering .....  again .....

I use " Sermion 10mg 2x a day ". It helps a great deal   ;D
The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10612
  • MLUs Forever!
Re: Clearing "lost+found" File from USB
« Reply #10 on: February 11, 2012, 05:17:43 AM »
Quote
mis-remembering .....  again .....

I use " Sermion 10mg 2x a day ". It helps a great deal   ;D

do I know you?






:D
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Xenaflux

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3834
Re: Clearing "lost+found" File from USB
« Reply #11 on: February 11, 2012, 05:46:55 AM »
Quote
do I know you?

We met yesterday on that other page !  Remember ?
The great thing in this world is not so much where we stand,
as in what direction we are moving.
                                                    (Oliver Wendell Holmes )

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10612
  • MLUs Forever!
Re: Clearing "lost+found" File from USB
« Reply #12 on: February 11, 2012, 05:59:39 AM »
Quote
do I know you?

We met yesterday on that other page !  Remember ?

oh dear .......  what was the name of that stuff again ?
MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8583
  • Aurum nostrum non est aurum vulgi.
Re: Clearing "lost+found" File from USB
« Reply #13 on: February 11, 2012, 06:34:00 AM »
Back on topic ... ;)

As the OP mentioned:
Somehow or another I have the aforementioned file locked onto a USB stick and this is stopping me from using it. I was planning to put LXDE 2012 on it and install on a newer netbook I now have.

I am guessing that the OP is convinced that lost+found is stopping him from using the USB stick. And stopping means what?? Saving files on the USB stick? Running LiveUSB Creator? Mounting the darn blasted thing?
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15845
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Clearing "lost+found" File from USB
« Reply #14 on: February 11, 2012, 06:58:27 AM »
For using PCLinuxOS LiveUSB Creator, ext3 would be the best file system to use. If only saving files is wanted, either ext3 or ext4 could be used.     

lost+found will not prevent the use of the stick. The problem may be one of ownership. Open / in your file manager superuser mode (root mode) and look for your stick's folder. Right click it and check to see if it is owned by root. If it is, change it so that it is owned by you.