Lost + found?
The hdd (500GB SATA) of my new Ubuntu 8.04 install is set up:
Primary partitions: sda1 46.7 GB NTFS (Cannot for the life of me remember why I formated sda1 as NTFS.) sda2 1.86 /swap sda3 7.45 / Extended: sda4 409.88 sda5 37.25 /home sda6 372.66 /media/disk Under "Places" there appear two (slightly different icons, presumeably having to do with the different formatting): 50 GB Media and 400.1 GB Media. These appear to be sda1 and sda6 respectively. When I click on the 400 GB icon, it shows only one folder: Lost + Found, size 0, with properties as: contents unreadable and 350.9GB of free disk space. One forum post says: Quote: lost+found is a directory that fsck uses to store any unconnected files or directories it finds after a dirty shutdown Don't recall any traumatic shutdowns, but I found all of this as a result of trying to copy files from my windows computer into this partition and got a "no permission to write to this.." denial. And when I right click into the empty space below the "Lost + Found" the Create Folder, Create Document, and Paste options are all greyed out. Also cannot delete the Lost + Found folder. Any ideas how to figure out what, if anything, is in Lost + Found (doubt it), how to delete it, and what to do about restoring permissions? |
Open up a terminal like konsole or gterm and use "sudo ls lost+found". It might be empty. If there are files in it, they will be named after the inode numbers. These are files and directories that were found but the directory entries for them were damaged, so you don't know the filenames. The file command will examine the contents of a file to determine what it is. Then you will have an idea what application you can use to examine them.
The lost+found directory should have rwx permissions for root. |
Hi,
I would use the ; 'sudo ls -al lost+found' from the cli. That way you will get the directory/file permissions with these options. You could 'man ls' to get a better understanding of the command. |
First, I should say that it looks like things are fine. You aren't running as root, which is great. However, the mount point under which you're trying to copy files doesn't allow your user to do so.
So, you'll want to:
Quote:
If problems persist, run these and post the output: fdisk -l | grep ^/dev mount df -h - NVRAM It's rare with on Linux (especially with a journalled file system) installation to have any files under the 'lost+found' directory. As an aside: quoting output from GUI clients for system can make it nearly impossible for some of us (who aren't running Ubuntu) to help you. Please learn and love the CLI tools: the core ones are almost always the same between distros so we can more easily help, plus it means cut/paste will work, too. That said, here is a list of CLI programs you may wish to read about, and which may help here: du df mount find fdisk chown chgrp Oh, if you use Ctrl+Alt+F2 to get a console prompt, use Ctrl+F7 or Ctrl+F8 (or similar) to get back to X11. |
Misery. I just spent an enormous amount of time composing a response and inadvertently deleted it. Argggggg! Here goes again.
NVRAM, Thanks for yours. Quote:
Thanks again. Quote:
Anyway, I have managed to get into /device/disk and using: sudo ls -al lost+found: Thanks again. drwx------ 2 root root 16384 2008-09-23 13:03 . drwxr-xr-x 3 root root 4096 2008-09-23 13:03 . so these are directories, not files, no? If so, then there does not appear to be a problem associated with them and now I just need to work through the permissions thing. So will work on that and come back with questions. If any of the above (partition stuff?) warrants your further comments, they are very welcome. Thanks again. |
Hi,
Quote:
|
Onebuck, Thanks for yours. In the deleted post, I had included a thank you for the URLs which were in your earlier post, but forgot to mention it in the reconstructed one. I am not only reading them but have committed them to my bookmarks and will copy bits into my desktop reference files.
NVRAM, your code worked like a charm, thanks again. Copying files over now. I'm astonished at how slow it is though. |
Quote:
My point was that given the discrepancy between the numbers and the name of the "400.01GB" icon you mentioned might be another partition. But if there's only one HD and it's ~500GB, then that's not possible. Quote:
And yes, the very first character indicates what type of file it is ('d' = directory, '-' = regular file, 'l' = symbolic link, etc.). the next 9 characters, taken in 3 triplets (sets of 3), show the permissions for owner, group and other, respectively. The second line ("..") shows the parent directory, in this case the mount point, is indeed writable only by root -- the 1st "root" tells the owner/UID, and the only 'w' is in the first (owner) triplet. Quote:
|
The Lost+found folder is created when the partiotion is formatted to ext2/3 (the most common linux filesystem) generally noting will be in it and everthing will be fine, but if somthing has gone AWOL after a messy powerdown (eg power outage) then its a good place to look
|
All times are GMT -5. The time now is 05:01 AM. |