Announcement

Collapse
No announcement yet.

FAT drive connection problems

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    FAT drive connection problems

    I am attempting to configure a FAT32 partition which is on my S-ATA drive along with my Linux ext3 and other partitions. I am running AMD64 as this is a 64 bit machine.

    A sudo fdisk -l produces:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    240 heads, 63 sectors/track, 64601 cylinders
    Units = cylinders of 15120 * 512 = 7741440 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 9481 71676328+ 7 HPFS/NTFS
    /dev/sda2 9482 16254 51203880 83 Linux
    /dev/sda3 16255 64601 365503289 f W95 Ext'd (LBA)
    /dev/sda5 16255 16532 2101648+ 82 Linux swap / Solaris
    /dev/sda6 16533 26272 73625863+ b W95 FAT32
    /dev/sda7 43163 64601 162078808+ 7 HPFS/NTFS
    /dev/sda8 * 26272 42815 125065993+ 83 Linux
    /dev/sda9 42815 43162 2626596 82 Linux swap / Solaris

    I have set up a mount point /media/FatDrive and set the permissions to "Can view and Modify" for owner, group, others.

    I have added a line to the fstab file as follows:
    /dev/sda6 /media/FatDrive vfat iocharset=utf,unmask=000 0 0

    When I do a ~$ sudo mount -a I get the following:

    mount: wrong fs type, bad option, bad superblock on /dev/sda6,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so

    I am able to write files to this partition from Kubuntu AND also from WinXP however non of the files written in Kubuntu are visible in WinXP and those written in WinXP are not visible in Linux.

    Any ideas would be appreciated.

    Ray

    #2
    Re: FAT drive connection problems

    Originally posted by Rayson
    I have added a line to the fstab file as follows:
    /dev/sda6 /media/FatDrive vfat iocharset=utf,unmask=000 0 0

    When I do a ~$ sudo mount -a I get the following:

    mount: wrong fs type, bad option, bad superblock on /dev/sda6,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so
    The file type vfat is okay. You are missing the auto or noauto mounting option, and for a fixed disk (hd) you want auto, and unmask= isn't correct - umask= is.

    Try:

    /dev/sda6 /media/FatDrive vfat defaults,nls=utf,umask=000 0 0
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: FAT drive connection problems

      Thanks, I just tried each of the following but still get the same "wrong fs type, bad option...." message. The lines I tried are:

      /dev/sda6 /media/FatDrive vfat defaults,nls=utf,umask=000 0 0

      AND

      /dev/sda6 /media/FatDrive vfat defaults,nls=utf,auto,umask=000 0 0

      Do you have any other ideas?

      Is there something wrong with my partitioning (see below)?

      Device Boot Start End Blocks Id System
      /dev/sda1 * 1 9481 71676328+ 7 HPFS/NTFS
      /dev/sda2 9482 16254 51203880 83 Linux
      /dev/sda3 16255 64601 365503289 f W95 Ext'd (LBA)
      /dev/sda5 16255 16532 2101648+ 82 Linux swap / Solaris
      /dev/sda6 16533 26272 73625863+ b W95 FAT32
      /dev/sda7 43163 64601 162078808+ 7 HPFS/NTFS
      /dev/sda8 * 26272 42815 125065993+ 83 Linux
      /dev/sda9 42815 43162 2626596 82 Linux swap / Solaris

      Thanks,

      Ray

      Comment


        #4
        Re: FAT drive connection problems

        Open a console and type:
        Code:
        sudo fdisk -l
        You'll have to provide your user password.
        Post the results.This will let us see what the system says your drives are setup to.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: FAT drive connection problems

          Thanks Paul,

          My fstab and fdisk -l are below:

          # /etc/fstab: static file system information.
          #
          # <file system> <mount point> <type> <options> <dump> <pass>
          proc /proc proc defaults 0 0
          # /dev/sda8
          UUID=c85f5c6e-1080-4540-93e7-66080b3108cf / ext3 nouser,defaults,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
          # /dev/sda9
          UUID=77403883-1286-427c-83f1-4f8321110feb none swap sw 0 0
          /dev/hdb /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
          #/dev/sda6 /media/FatDrive vfat iocharset=utf,unmask=000,uid=0,gid=0,auto,rw,nouse r 0 0
          #/dev/sda6 /media/FatDrive vfat auto rw,user,noauto 0 0
          # /dev/sda6 /media/FatDrive vfat iocharset=utf,unmask=000,uid=0,gid=0,auto,rw,nouse r 0 0
          #/dev/sda6 /media/FatDrive vfat defaults,nls=utf,umask=000 0 0
          /dev/sda6 /media/FatDrive vfat defaults,nls=utf,auto,umask=000 0 0


          Result of fdisk -l
          Disk /dev/sda: 500.1 GB, 500107862016 bytes
          240 heads, 63 sectors/track, 64601 cylinders
          Units = cylinders of 15120 * 512 = 7741440 bytes

          Device Boot Start End Blocks Id System
          /dev/sda1 * 1 9481 71676328+ 7 HPFS/NTFS
          /dev/sda2 9482 16254 51203880 83 Linux
          /dev/sda3 16255 64601 365503289 f W95 Ext'd (LBA)
          /dev/sda5 16255 16532 2101648+ 82 Linux swap / Solaris
          /dev/sda6 16533 26272 73625863+ b W95 FAT32
          /dev/sda7 43163 64601 162078808+ 7 HPFS/NTFS
          /dev/sda8 * 26272 42815 125065993+ 83 Linux
          /dev/sda9 42815 43162 2626596 82 Linux swap / Solaris

          Partition table entries are not in disk order

          I noticed per the forum, there are some problems with AMD64 bit machines and S-ATA drives when working with NTFS partitions. Could there be a problem with FAT32 partitions?

          Ray

          Comment


            #6
            Re: FAT drive connection problems

            Read and then adjust your fstab for your /dev/sda6 entry based on this link.
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: FAT drive connection problems

              Thanks Paul!

              That fixed the FatDrive problem. Now it works like it should - both from Linux and WinXP.

              Ray

              Comment


                #8
                Re: FAT drive connection problems

                Very good!

                Aren't those pscychocats something? 8)
                Windows no longer obstructs my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #9
                  Re: FAT drive connection problems

                  They are really good stuff. I will use them more!

                  Ray

                  Comment

                  Working...
                  X