LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 05-18-2007, 09:29 PM   #1
ErrantZephyr
LQ Newbie
 
Registered: May 2007
Posts: 8

Rep: Reputation: 0
Partition Contents Invisible


Hello.

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.
 
Old 05-18-2007, 09:34 PM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
We need -

cat /etc/fstab
sudo fdisk -l
ls -al /media

have you tried manually unmounting and then mounting these?
 
Old 05-18-2007, 11:42 PM   #3
ErrantZephyr
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
cat /etc/fstab
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc /proc proc defaults 0 0
# /dev/sdc1
UUID=a6b25d60-b88b-4251-88f7-2b5adff3f623 / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
# /dev/sdc4
UUID=826b394f-c8d9-4fea-9232-02670e144360 /media/data ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
# /dev/sda1
UUID=def9b059-2552-46e1-9f74-2137e01c622c /media/media ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
# /dev/sdb1
UUID=19c59c1f-345c-41e8-91e1-ca084f513340 /media/video ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
# /dev/sdc2
UUID=C0380F9A380F8E9A /windows ntfs defaults,nls=utf8,umask=007,uid=0,gid=46,auto,rw,nouser 0 1
# /dev/sdc3
UUID=634fae39-b1e8-455a-9390-3427c1f2853b none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,atime,noauto,rw,dev,exec,suid 0 0
/dev/fd0 /media/floppy0 auto user,atime,noauto,rw,dev,exec,suid 0 0


sudo fdisk -l
Code:
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       30401   244196001   83  Linux

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       38913   312568641   83  Linux

Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        3264    26218048+  83  Linux
/dev/sdc2   *        3265        4569    10482412+   7  HPFS/NTFS
/dev/sdc3            4570        4700     1052257+  82  Linux swap / Solaris
/dev/sdc4            4701       19457   118535602+  83  Linux

Disk /dev/sdd: 1992 MB, 1992294400 bytes
64 heads, 63 sectors/track, 965 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1         966     1945568+   b  W95 FAT32
Partition 1 has different physical/logical endings:
     phys=(964, 63, 63) logical=(965, 5, 5)

ls -al /media
Code:
total 40
drwxr-xr-x  8 root   root 4096 2007-05-18 19:10 .
drwxr-xr-x 22 root   root 4096 2007-05-18 08:02 ..
lrwxrwxrwx  1 root   root    6 2007-05-18 07:50 cdrom -> cdrom0
drwxr-xr-x  2 root   root 4096 2007-05-18 07:50 cdrom0
drwxrwxrwx  4 root   root 4096 2007-05-18 13:41 data
drwxr-xr-x 19 shaper root 8192 1969-12-31 16:00 DATABOAT
lrwxrwxrwx  1 root   root   45 2007-05-18 07:51 .directory -> /etc/kubuntu-default-settings/directory-media
lrwxrwxrwx  1 root   root    7 2007-05-18 07:50 floppy -> floppy0
drwxr-xr-x  2 root   root 4096 2007-05-18 07:50 floppy0
-rw-r--r--  1 root   root   96 2007-05-18 19:10 .hal-mtab
--wS--s--T  1 root   root    0 2007-04-16 22:25 .hal-mtab-lock
lrwxrwxrwx  1 root   root   42 2007-05-18 07:51 .hidden -> /etc/kubuntu-default-settings/hidden-media
drwxrwxrwx 13 root   root 4096 2007-05-18 16:29 media
drwxrwxrwx  7 root   root 4096 2007-04-06 19:29 video
Quote:
have you tried manually unmounting and then mounting these?
Them seem to mount and unmount successfully.

The partition in question is sdc4.

Last edited by ErrantZephyr; 05-18-2007 at 11:48 PM.
 
Old 05-19-2007, 12:06 AM   #4
ErrantZephyr
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
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
 
Old 05-19-2007, 04:53 AM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Device to unmount is not in /media/.hal-mtab so it is not mounted by HAL
... unmount from console. Then you can remount with different permissions and control what is happening.

sudo umount /media/data
sudo mount -t ext3 /dev/sdc4 /media/data
ls -al /media/data

Quote:
drwxrwxrwx 4 root root 4096 2007-05-18 13:41 data
drwxrwxrwx 13 root root 4096 2007-05-18 16:29 media
drwxrwxrwx 7 root root 4096 2007-04-06 19:29 video

/dev/sdc4 /media/data ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
/dev/sda1 /media/media ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
/dev/sdb1 /media/video ext3 nouser,defaults,atime,auto,rw,dev,exec,suid 0 2
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.
 
Old 05-19-2007, 11:01 AM   #6
ErrantZephyr
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
I've simplified fstab. Thanks.
Quote:
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.

sudo ls -al /media/data
Code:
total 16
drwxrwxrwx 4 root root 4096 2007-05-18 13:41 .
drwxr-xr-x 8 root root 4096 2007-05-19 08:35 ..
drwx------ 2 root root 4096 2007-05-18 17:12 lost+found
drwx------ 3 root root 4096 2007-05-18 13:41 .Trash-0

Last edited by ErrantZephyr; 05-19-2007 at 07:57 PM.
 
Old 05-19-2007, 11:28 PM   #7
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
drwx------ 2 root root 4096 2007-05-18 17:12 lost+found
drwx------ 3 root root 4096 2007-05-18 13:41 .Trash-0

OK... the two subfolders are there. We are not surprised to see no files there. Lets look at the others the same way.

sudo -al /media/media
sudo -al /media/video
 
Old 05-20-2007, 12:28 PM   #8
ErrantZephyr
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
sudo ls -al /media/media
Code:
total 5881636
drwxrwxrwx 15 root   root         4096 2007-05-19 14:00 .
drwxr-xr-x  8 root   root         4096 2007-05-20 10:21 ..
drwxrwxrwx  4 root   root         4096 2007-04-03 10:02 Audio
drwxrwxrwx  9 root   root         4096 2007-05-17 15:10 Comics
drwxr-xr-x  9 shaper shaper       4096 2007-05-17 16:49 DL
-rw-r--r--  1 shaper shaper     152337 2007-05-19 00:11 indoeuro.jpg
drwxr-xr-x 21 shaper shaper       4096 2007-05-18 08:02 LINUXBACKUP
-rw-r--r--  1 shaper shaper 6016550287 2007-05-19 00:02 linuxbackup.tgz
drwx------  2 root   root         4096 2007-05-18 12:13 lost+found
drwxrwxrwx 53 root   root        73728 2007-05-17 12:24 Music
drwxrwxrwx 21 root   root        49152 2007-05-15 17:58 Pictures
drwxr-xr-x  3 shaper shaper      12288 2007-03-20 15:57 Pictures from thumbdrive
drwxr-xr-x  3 shaper shaper       4096 2007-02-22 20:36 Random Media
drwxr-xr-x  3 shaper shaper       4096 2007-05-18 22:48 RESTORE BACKUP
drwxrwxrwx  4 root   root         4096 2007-04-04 11:41 .Trash-0
drwx------  4 shaper shaper       4096 2007-04-04 22:07 .Trash-1000
drwxr-xr-x  5 shaper shaper       4096 2007-05-17 15:54 Video
-rw-r--r--  1 shaper shaper       3752 2007-05-18 14:46 xorg.conf
sudo ls -al /media/video
Code:
total 40
drwxrwxrwx  7 root   root    4096 2007-04-06 19:29 .
drwxr-xr-x  8 root   root    4096 2007-05-20 10:21 ..
drwxrwxrwx  2 root   root   16384 2007-04-04 09:55 lost+found
drwxrwxrwx 25 root   root    4096 2007-05-17 15:19 Movies
drwxrwxrwx  6 root   root    4096 2007-04-04 14:37 Series
drwxrwxrwx  4 root   root    4096 2007-04-04 11:37 .Trash-0
drwxrwxrwx  4 shaper shaper  4096 2007-04-04 13:49 .Trash-1000
These are correct.
 
Old 05-22-2007, 04:49 AM   #9
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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.
 
Old 05-24-2007, 07:39 PM   #10
ErrantZephyr
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Simon Bridge
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.
 
Old 05-24-2007, 08:41 PM   #11
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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?
 
Old 05-24-2007, 09:59 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,118

Rep: Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985Reputation: 985
I be thinking a fsck has moved all the files to lost+found - what's there ???.
 
Old 05-25-2007, 02:38 PM   #13
ErrantZephyr
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Simon Bridge
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 ???.
Nothing.
 
Old 05-26-2007, 04:37 AM   #14
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
Quote:
Properties shows the size of the partition to be 12.0KB while Free disk space shows 50GB out of 111.3GB (56% used).
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
 
Old 05-26-2007, 06:49 PM   #15
ErrantZephyr
LQ Newbie
 
Registered: May 2007
Posts: 8

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Simon Bridge
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.
 
  


Reply

Tags
partition, partitions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost FAT partition contents fuelinux Linux - Hardware 5 08-25-2005 06:04 AM
remaining partition invisible?? wrangler Linux - Newbie 2 03-01-2005 06:26 AM
Moving contents of /var to separate partition TexasDex Linux - Software 2 03-01-2004 08:30 PM
Copy contents of one partition to another. cparker15 Linux - Software 1 06-26-2003 01:17 PM
view contents in mounted partition macshark Linux - General 3 01-20-2003 10:13 PM


All times are GMT -5. The time now is 10:43 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration