[SOLVED] Can't see files/folder on a formatted ext4 hard drive.
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Can't see files/folder on a formatted ext4 hard drive.
Hi,
I formatted (ext4) my sda (250gb) drive using gparted. Next I created a folder on it an moved some files from my ext HD to this folder. Next boot, I go on the HD (sda) and I don't see my folder just "lost+fund" folder is present. According to gparted and "df -h" the HD is not empty and the percentage used represent the total size of files transferred.
Any suggestion how to recover the folder; make it "visible" ?
What I see different is that the free space increased and now I have just 3gb used on the Hard drive. Very weird stuff.
Anything else I can try before reformat and try to copy again.
Quote:
Can you connect the drive to a different machine and see if they are visiable there?
No changes
Quote:
Can you boot a live-cd/usb-stick and see if you can see them? I use System-Rescue-CD
No changes
Quote:
Did you try commenting out the entry in your fstab, restart and then mount it manually with something like as root # mount /dev/sd?? /mnt/250a (replace /sd?? with your drive/partition info)
One thing you should know is that, if this drive is the same as you are installed on, you should not be doing any kind of formating or partitioning from your install. Could be that you already know this but I thought I should mention it before you do anything again.
If it is the case that they are on the same drive then you should do what ever it is you decide to do from the Live CD.
The entire drive should be unmounted. I currently have 3 drives so all I need to do is switch to an install on another drive.
Guys I really appreciate the help, this drive is used to store data, the system is installed on different one. Just want to add, using PartedMagic live-cd I did test on the drive and there were no issues found. I'll post the result after my format.
What size is this drive? There have been some instances where large drives (2TB) have been troublesome in this way.
Breaking it up into smaller partitions seems to help matters.
I use a dual HDD external enclosure for some storage and as a test platform for dev release OS's. Has 2 320gig sata drives in it and I have never had trouble with the thing.
A thought: How did you move the directory and files? (Specifically, did you use a mv or cp command? If you used cp, did you use the -p option to preserve [most of] the file and directory attributes?)
Have you tried to look at the mounted file system as root?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.