LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-06-2007, 11:30 AM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie stretch
Posts: 1,593

Rep: Reputation: 97
USB memory, cd <dir> is ok, but ls cannot see.


Hi Penguins.

My penguin (Debian sarge) ran into this problem. In short, directory is not visible by ls, but can change into. This is on USB memory stick, which has fat16 filesystem.

Following is what happens:
Code:
/mnt/mem>ls -a | grep P
AppleShare PDS
PDPB.pdf
0 /mnt/mem>cd PP2
0 /mnt/mem/PP2>ls
f1    f2         
0 /mnt/mem/PP2>
PP2 directory is not seen by "ls", but cd PP2 works, and has correct files in it.

File system looks like
Code:
# fdisk -l /dev/sda

Disk /dev/sda: 1014 MB, 1014497280 bytes
17 heads, 32 sectors/track, 3642 cylinders
Units = cylinders of 544 * 512 = 278528 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3643      990703+   6  FAT16
#
For some reason, fsck goes with fat32 and detects no error.(even with -t fat16)
Code:
# fsck /dev/sda1
fsck 1.37 (21-Mar-2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda1: 3111 files, 44938/61902 clusters
# fsck -t fat16 /dev/sda1
fsck 1.37 (21-Mar-2005)
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda1: 3111 files, 44938/61902 clusters
#
The directory is seen on other machine (Macintosh).
How can I get straighten out?

Any idea will be appreciated.

Happy Penguins!

Last edited by kaz2100; 02-06-2007 at 11:31 AM.
 
Old 02-08-2007, 02:47 AM   #2
bobdevis
Member
 
Registered: Nov 2006
Distribution: Ubuntu 64bit
Posts: 49

Rep: Reputation: 15
try "ls -sla". It shows you all the stuff.
 
Old 02-08-2007, 03:04 AM   #3
wahming
Member
 
Registered: Jan 2007
Posts: 133

Rep: Reputation: 15
ls -a, which is what he typed, will show you everything. Though not in this case, apparently
 
  


Reply

Tags
filesystem


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
USB memory, Compact Flash, Memory Stick energiza Linux - Hardware 2 08-22-2006 10:29 PM
Missing memory in USB stick, flash memory, removable hd etc bamboo_spider Linux - Newbie 3 06-14-2006 06:39 PM
Q. moving /bin dir files to /dev dir?? Texas_student Linux - Software 2 03-27-2006 12:42 AM
Share configuratin dir (.dir) for 3 accounts on local computer LiNuXkOlOnIe Linux - Software 5 01-08-2006 04:36 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 08:54 PM


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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration