UbuntuThis forum is for the discussion of Ubuntu 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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was having (unrelated) problems with Kubuntu 6.10, so I used the opportunity to upgrade to 7.04. Of three storage partitions mounted in /media/ which were working fine previously, one (the "data" partition) appears to mount, but displays no files when I open it. Properties shows the size of the partition to be 12.0KB while Free disk space shows 50GB out of 111.3GB (56% used). I mucked about in the system settings endlessly, as well as reformating the linux partition and reinstalling to no effect. It seems my files are still there, but I can't access them.
Last edited by ErrantZephyr; 05-18-2007 at 09:32 PM.
When I try to unmount a partition by the right click menu it in KDE I get the following error:
Quote:
Unfortunately, the device system:/media/sdc4 (/dev/sdc4) named '121G Media' and currently mounted at /media/data could not be unmounted. Unmounting failed due to the following error:
Device to unmount is not in /media/.hal-mtab so it is not mounted by HAL
You have 4 files in data, 13 in media, and 7 in video... is this as you expect?
mount options in fstab are overkill... try:
/dev/sdc4 /media/data ext3 auto,defaults 0 2
defaults = rw, suid, dev, exec, auto, nouser, and async. So there is no need to specify them explicitly.
atime makes sure the inodes are updated - this is the normal behavior.
dev is only needed if you have character or block-special devices in there.
exec is only needed if you have binary executables in there.
The directories are rwx by everyone, but the content may not be. You could try explicitly writing a file there and see if you can see that, or
sudo ls -al /media/data
Last edited by Simon Bridge; 05-19-2007 at 05:07 AM.
You have 4 files in data, 13 in media, and 7 in video... is this as you expect?
No. Checking the partition properties from KDE shows (more accurately):
Data: 0 Files, 2 Subfolders
media: 11552 Files, 301 Subfolders
video: 1001 Files, 92 Subfolders
Again, the same properties show that data is 56% used out of 111.3GBs.
OK... so now you can see the correct content of the partitions. What was your problem again? Oh yes... konqueror won't display them?
You can try invoking konqueror from the cli ... as a normal user and under sudo.
If you have another browser, firefox say, then try browsing the directory with that.
Or...
w3m file:///media/media
Last edited by Simon Bridge; 05-22-2007 at 04:50 AM.
OK... so now you can see the correct content of the partitions. What was your problem again? Oh yes... konqueror won't display them?
You can try invoking konqueror from the cli ... as a normal user and under sudo.
If you have another browser, firefox say, then try browsing the directory with that.
Or...
w3m file:///media/media
No, the output for sudo ls -al /media/data is incorrect. The other two partitions are fine.
You reported that the content of /media/data is two directories (sub-folders) and no other files. This is what is being displayed. The folders are ".lost+found" and ".Trash-0". Were you expecting anything else?
You reported that the content of /media/data is two directories (sub-folders) and no other files. This is what is being displayed. The folders are ".lost+found" and ".Trash-0". Were you expecting anything else?
Yes, those are the contents reported - incorrectly. There are over 60GBs worth of files not being displayed.
Quote:
I be thinking a fsck has moved all the files to lost+found - what's there ???.
How did you put the files in there after you reformatted?
How did you get the above statistics?
sudo ls -al /media/data/lost+found
touch dummy
cp dummy /media/data
ls /media/data
du /media/data
I didn't reformat this drive, only the dedicated linux partition.
I get this (correct) information by right clicking the partition in KDE and selecting properties:
Quote:
Originally Posted by ErrantZephyr
Checking the partition properties from KDE shows (more accurately):
Data: 0 Files, 2 Subfolders
media: 11552 Files, 301 Subfolders
video: 1001 Files, 92 Subfolders
Again, the same properties show that data is 56% used out of 111.3GBs.
___
Code:
user@arc:~$ sudo ls -al /media/data/lost+found
total 8
drwx------ 2 root root 4096 2007-05-18 17:12 .
drwxrwxrwx 4 root root 4096 2007-05-18 13:41 ..
user@arc:~$ touch dummy
user@arc:~$ cp dummy /media/data
user@arc:~$ ls /media/data
dummy lost+found
user@arc:~$ du /media/data
du: `/media/data/lost+found': Permission denied
du: `/media/data/.Trash-0': Permission denied
4 /media/data
user@arc:~$
Ok, I retried 'du /media/data' with sudo and it's listing my files. Thanks.
Last edited by ErrantZephyr; 05-26-2007 at 08:00 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.