LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-23-2006, 09:59 AM   #1
eljefe7000
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
Cannot List Contents of USB Filesystem


Hi All,

I'm trying to list the contents of a USB filesystem in Slackware 2.4, but am having trouble.

I mounted the drive like so:

Code:
root@machine:/mnt# mount -t usbfs /proc/bus/usb usbdrive
But whenever I list the contents, I get the following:

Code:
root@machine:/mnt# ls usbdrive
001/  devices  drivers
I ran fdisk and got this output:

Code:
root@machine:/mnt# fdisk -l
Disk /dev/sda: 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/sda1               1       19457   156288321    b  W95 FAT32

Disk /dev/hda: 20.4 GB, 20419854336 bytes
255 heads, 63 sectors/track, 2482 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         973     7815591   83  Linux
/dev/hda2             974        2481    12113010    7  HPFS/NTFS
...so I tried to umount and remount it as a FAT32 system:

Code:
root@machine:/mnt# umount usbdrive

root@machine:/mnt# mount -t vfat /dev/sda1 usbdrive
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
This returned an error, so I followed the instructions:

Code:
root@machine:/mnt# dmesg | tail
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: shpc_init : shpc_cap_offset == 0
shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
pciehp: PCI Express Hot Plug Controller Driver version: 0.5
VFS: Can't find a valid FAT filesystem on dev 08:01.
NTFS driver v1.1.22 [Flags: R/O MODULE]
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find a valid FAT filesystem on dev 08:01.
It looks as though it cannot read my drive as a FAT32 system. I can view the drive in NT, so I think it's okay. Does anyone know what I'm doing wrong?

Regards,
Jeff
 
Old 05-23-2006, 10:15 AM   #2
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Rep: Reputation: 15
Is this usb device a 160GB hard disk?

according to fdisk sda = a 160GB hard disk. Just making sure that is your usb device not a sata/scsi disk.



Try this
Shut down.
Detach the disk.
Reboot and type 'modprobe usb-storage'
plug the usb disk into the machine.

then run
dmesg | tail

hopefully it will say something like "new usb storage device attached at /dev/sdb1" and then we can mount it.


Also can you explain this
VFS: Can't find a valid FAT filesystem on dev 08:01.
NTFS driver v1.1.22 [Flags: R/O MODULE]
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find a valid FAT filesystem on dev 08:01.

Did you try mount the disk as ntfs before hand or where you mounting other partitions? It looks from fdisk that the partition type is set as fat but the file system may actually be ntfs. Hopefully with more info I can help you more.
 
Old 05-23-2006, 10:46 AM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,508
Blog Entries: 2

Rep: Reputation: 68
I think FAT32 filesystem size is limited to 32Gbytes.
Can you check your usb disk is 160GB in size and it has a valid FAT32 filesystem ? You can plug this usb disk on a windows XP machine and check/fix the filesystem on it.
 
Old 05-23-2006, 01:45 PM   #4
eljefe7000
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Cannot List Contents of USB FileSystem

Thanks for your reply.

It is a USB device. However, when I follow your instructions, it does list as you say:

Code:
USB Mass Storage support registered.
hub.c: new USB device 00:1f.2-2.3, assigned address 3
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Seagate   Model: External Drive    Rev:     
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
 sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
After following the instructions, I tried to mount the drive again, but got the same error:

Code:
root@machine:/mnt# mount -t vfat /dev/sda1 usbdrive
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@machine:/mnt# dmesg | tail
scsi1 : SCSI emulation for USB Mass Storage devices
  Vendor: Seagate   Model: External Drive    Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
 sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find a valid FAT filesystem on dev 08:01.
Also, I did try mounting the filesystem as NTFS, but got the same error:

Code:
root@machine:/mnt# mount -t ntfs /dev/sda1 usbdrive
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@machine:/mnt# dmesg | tail
  Vendor: Seagate   Model: External Drive    Rev:
  Type:   Direct-Access                      ANSI SCSI revision: 02
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 312581808 512-byte hdwr sectors (160042 MB)
 sda: sda1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find a valid FAT filesystem on dev 08:01.
NTFS driver v1.1.22 [Flags: R/O MODULE]
I have read that Slackware 2.4 has FAT32 support built-in. Is this correct?

Regards,
Jeff

Quote:
Originally Posted by KarlosDaJackel
Is this usb device a 160GB hard disk?

according to fdisk sda = a 160GB hard disk. Just making sure that is your usb device not a sata/scsi disk.



Try this
Shut down.
Detach the disk.
Reboot and type 'modprobe usb-storage'
plug the usb disk into the machine.

then run
dmesg | tail

hopefully it will say something like "new usb storage device attached at /dev/sdb1" and then we can mount it.


Also can you explain this
VFS: Can't find a valid FAT filesystem on dev 08:01.
NTFS driver v1.1.22 [Flags: R/O MODULE]
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find a valid FAT filesystem on dev 08:01.
VFS: Can't find a valid FAT filesystem on dev 08:01.

Did you try mount the disk as ntfs before hand or where you mounting other partitions? It looks from fdisk that the partition type is set as fat but the file system may actually be ntfs. Hopefully with more info I can help you more.
 
Old 05-23-2006, 01:53 PM   #5
eljefe7000
LQ Newbie
 
Registered: May 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Cannot List Contents of USB FileSystem

Thanks for your reply.

I have been using it in Win2K Advanced Server and XP Pro. The Win2K OS lists it as a FAT32 system. Also, the info that I've found says that FAT32 supports up to 2 terabytes.

Quote:
Originally Posted by marozsas
I think FAT32 filesystem size is limited to 32Gbytes.
Can you check your usb disk is 160GB in size and it has a valid FAT32 filesystem ? You can plug this usb disk on a windows XP machine and check/fix the filesystem on it.
Regards,
Jeff
 
  


Reply


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
How to list contents of a .tar.gz without unzip? leontini Linux - General 14 04-21-2010 02:07 AM
cannot list directory contents kpachopoulos Linux - General 2 11-29-2005 05:24 PM
Samba - XP can't list folder contents p0tw0r Linux - Networking 1 05-31-2005 03:37 AM
won't list contents of cdrom gillmb Linux - Newbie 2 10-19-2004 02:09 PM
List the contents of a directory to a file MasterC Linux - General 19 11-26-2002 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:34 PM.

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
Open Source Consulting | Domain Registration