Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 106Reputation: 106
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:
/mnt/mem>ls -a | grep P
AppleShare PDS
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
# 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)
# 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
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
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



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 > Forums > Linux Forums > Linux - Newbie

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

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