RE: The Linux FAT issue on SD Cards.. maintainer support please

From: Mukund JB`. (mukundjb_at_esntechnologies.co.in)
Date: 08/18/05

  • Next message: Mukund JB`.: "RE: The Linux FAT issue on SD Cards.. maintainer support please"
    Date:	Thu, 18 Aug 2005 18:21:39 +0530
    To: "Lennart Sorensen" <lsorense@csclub.uwaterloo.ca>
    
    
    

    Dear all,

    I have few updates in this issue.
    I have attached the Images as well as the mount-log to this mail.
    Please see the comments inline.

    >If the partition starts at sector 57 and is 28743 sectors long, then
    >that matches 28800 sectors total. No problem there.
    >
    >If on the other hand fdisk reports 28672 sectors total then there is a
    >problem somewhere.

    I think, fdisk it trying to portray that n/o cylinders 448. So, it also
    takes care of displaying the relevant n/o sector & NO more or NO less.

    >Well then you have to implement full partition support and present a
    >seperate device for each partition in /dev so that mount can access
    each
    >partition.

    I have implemented the partition support in the driver but some HOW I am
    NOT able to get the driver working with all the sockets. It is just
    working with the socket 0 and NO other socket.
    I mean I am able to mount windows & linux formatted SD card with new
    driver present from socket 0.

    >> There is a partition table in the CAM formatted device & it looks
    like
    >> there is also a partition table in the win formatted device.
    >> The details of there at offset 0x1BE are below.

    I have an update on this.

    I found some common things between the windows formatted SD & Linux
    formatted SD.
    I found that both of then do NOT have the partition table.
    I found that both of them have FAT12 FS in the sector 0 starting at
    offset 0.
    Why? I am NOT able to guess.

    For Windows formatted SD there is NO partition table at all.
    I went on more R&D and tried to get to format the USB-Thumb drive.
    Even that did NOT have a partition table.
    It looks like windows treats all removable media device as devices with
    NO partitions.

    Even on Linux formatted SD there is NO partition table present.

    Please have a look at the images I am attaching to this mail.
    I have attached CAM-MS, WIN-Ms & Linux-MS first 512 byte length Images.
    These are the Images of first 512 bytes of sector 0.
    You can find the FS there on Lin & Win Images.

    I have verified this by keeping some DEBUG messages in the FAT layer &
    seeing what data is being passed to this fat_boot_sector structure when
    mount call is issued.
    I am also attaching those LOG messages. please Have a LOOK at them too &
    you will have a fair understanding.

    >That one looks more like random numbers. Maybe the partition entry
    that
    >it really uses is not number 1, but number 2 3 or 4, or no partition
    >table at all.
    I have verified it with fdisk -l -u /dev/tfa0
    It has shown that it is the partition 0 & nothing else.

    >Could you do dd if=/dev/sda bs=512 count=1 | xxd
    Please see the Images-All-MS-512.tar.gz.

    Regards,
    Mukund Jampala

    
    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/




  • Next message: Mukund JB`.: "RE: The Linux FAT issue on SD Cards.. maintainer support please"

    Relevant Pages

    • Re: restore SD card capacity
      ... The layout says "partition", but when I right click on the drive, the "delete partition" option is grayed out. ... The first sector contains the MBR. ... I've done a copy of a 1440KB floppy diskette, sector by sector, to a 1GB flash ... Since your drive is currently formatted in some FATxx format, ...
      (microsoft.public.windowsxp.general)
    • Re: int13 func05 >8G
      ... no need to format the sector. ... I were the "format" the partition to a FAT partition: ... Create and write the boot sector to the 1st sector ... My guess is you have software that actually called the BIOS format ...
      (comp.lang.asm.x86)
    • Swap Partition First? Something is still Wrong.
      ... parameters extracted from in-core disklabel are: ... BIOS sector numbering starts with sector 1 ... The data for partition 1 is: ... does format just fine if I manually set it up via sysinstall. ...
      (freebsd-questions)
    • Re: ATA support for 4k sector size
      ... fs/partitions/ that only ibm.c and msdos.c care about a sector size. ... Looking at the UEFI spec for one, the GPT partition table format ... definitely has a logical sector size dependency. ...
      (Linux-Kernel)
    • Re: 6 in 1 Reader & writer
      ... Did you partition and format the new drive? ... | images from my camera memory card, ...
      (microsoft.public.windowsxp.hardware)