Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: delete "lost+found" with root permissions?????

  1. #1
    Join Date
    Apr 2009
    Beans
    7

    delete "lost+found" with root permissions?????

    Hi I installed a hard drive to my box and it has got a lost+found folder in it. The hard drive was from my old system that crashed!
    Iv tried every thing I can think of and I just cant get it removed?
    Iv tried to wipe the disk several times and format it but that still doesnt work? What do I do?

  2. #2
    Join Date
    Jul 2007
    Location
    Reykjavík, Iceland
    Beans
    1,555
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: delete "lost+found" with root permissions?????

    This is normal, you may want to try to ignore that directory.
    Also drinking green tea is good, so ignore the directory AND drink green tea is what you should do.

  3. #3
    Join Date
    Apr 2009
    Beans
    7

    Re: delete "lost+found" with root permissions?????

    Ok but it wont let me do anything with the hard drive? I cant save anything to the harddrive?

  4. #4
    Join Date
    Jul 2007
    Location
    Burlington, NC
    Beans
    1,995
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: delete "lost+found" with root permissions?????

    Quote Originally Posted by Ddog8877 View Post
    Hi I installed a hard drive to my box and it has got a lost+found folder in it. The hard drive was from my old system that crashed!
    Iv tried every thing I can think of and I just cant get it removed?
    Iv tried to wipe the disk several times and format it but that still doesnt work? What do I do?
    "lost+found" is in every ext3 filesystem;
    even if you delete it, subsequent filesystem checks with re-create it.

  5. #5
    Join Date
    Oct 2008
    Location
    New Jersey
    Beans
    515
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: delete "lost+found" with root permissions?????

    Quote Originally Posted by Ddog8877 View Post
    Hi I installed a hard drive to my box and it has got a lost+found folder in it. The hard drive was from my old system that crashed!
    Iv tried every thing I can think of and I just cant get it removed?
    Iv tried to wipe the disk several times and format it but that still doesnt work? What do I do?
    lost+found is a folder that contains all the data on a filesystem if it crashes. It is readable only by root as it was designed so that if the system crashed the system admin would be the only one capable of repairing the damage.

    THESE COMMANDS CAN KILL YOUR FILE SYSTEM! RUN AT YOUR OWN RISK AFTER CAREFULLY READING THROUGH THEM!!! :O

    IF THIS IS ON YOUR MAIN PARTITION:
    Do not delete it. DO NOT DELETE IT. It is a very important system file that should not be messed with. IT MAY OR MAY NOT BE REPLACED BY FILE SYSTEM CHECKS

    IF THIS IS ON AN OLDER FILESYSTEM:

    IF THIS FILESYSTEM IS FORMATTED AS EXT2, EXT3, DO NOT DELETE THE FILE
    All ext filesystems keep a lost+found directory in the root of the filesystem. (e.g. if your filesystem is mounted to /media/drive, then it would be /media/drive/lost+found.). DO NOT DELETE IF THIS DRIVE IS CURRENTLY FORMATTED AS EXT!1

    IF OTHERWISE:
    Well, if otherwise... (durr... i forgot )run gksudo nautilus to start nautilus as root. see if there are any files you want to keep, then you can delete the folder.
    Last edited by rhcm123; April 4th, 2009 at 03:29 AM. Reason: forgot the "if otherwise"
    OH NOES!!! I HAZ CRASHED SERVER!! WHY ON EARTH WOULD YOU DO THAT?!?! CAUSE ITS FUNNY!!!!
    Running either 7.04, 8.04, 8.10, 9.04, it varies.
    You talkin' to me? - Taxi Driver (1976)

  6. #6
    Join Date
    Apr 2009
    Beans
    7

    Re: delete "lost+found" with root permissions?????

    Ok but is there any way that I could use the hard drive so I can save file to it?

  7. #7
    Join Date
    Jun 2005
    Beans
    6,115

    Re: delete "lost+found" with root permissions?????

    Quote Originally Posted by Ddog8877 View Post
    Ok but it wont let me do anything with the hard drive? I cant save anything to the harddrive?
    By default Ubuntu locks the user out of the core folders of the system, only your home directory is where you are allowed to edit and add files without root permission.
    There is a logic to this, on XP the default user is the administrator and therefore vulnerable to attack.
    Ubuntu bypasses this by disabling the root account, its better for you and your computer trust me.
    If you really need to edit core files you can enable root access by using sudo in a terminal but its not advised for new users.
    HOME BUILT SYSTEM! http://brainstorm.ubuntu.com/idea/22804/ Please vote up!
    remember kiddies: sudo rm -rf= BAD!, if someone tells you to do this, please ignore them unless YOU WANT YOUR SYSTEM WIPED

  8. #8
    Join Date
    Apr 2009
    Beans
    7

    Re: delete "lost+found" with root permissions?????

    Ok its a second hard drive. and I want to use it for extra storage! How do I run nautilus?

  9. #9
    Join Date
    Jul 2007
    Location
    Burlington, NC
    Beans
    1,995
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: delete "lost+found" with root permissions?????

    Quote Originally Posted by Ddog8877 View Post
    Ok its a second hard drive. and I want to use it for extra storage! How do I run nautilus?
    to give yourself/everyone access to the drive,
    while it is mounted and assuming it's mounted at /media/drive:
    Code:
    sudo chmod 1777 /media/drive
    alternatively, you might want to give yourself a single folder on the drive
    and only grant access to that folder:
    Code:
    sudo mkdir /media/drive/$USER
    sudo chown $USER:$USER /media/drive/$USER
    sudo chmod 0750 /media/drive/$USER
    of course you could also make these changes from a root instance of nautilus:
    Code:
    gksudo nautilus
    and right-click -> Properties -> permissions
    Last edited by asmoore82; April 4th, 2009 at 03:44 AM.

  10. #10
    Join Date
    Jun 2005
    Beans
    6,115

    Re: delete "lost+found" with root permissions?????

    as suggested if you want admin access open a terminal and copy and paste this:
    gksudo nautilus

    Just take caution
    HOME BUILT SYSTEM! http://brainstorm.ubuntu.com/idea/22804/ Please vote up!
    remember kiddies: sudo rm -rf= BAD!, if someone tells you to do this, please ignore them unless YOU WANT YOUR SYSTEM WIPED

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •