mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: lsorense@csclub.uwaterloo.ca (Lennart Sorensen)
To: "Mukund JB`." <mukundjb@esntechnologies.co.in>
Cc: hirofumi@mail.parknet.co.jp,
	linux-kernel-Mailing-list <linux-kernel@vger.kernel.org>
Subject: Re: The Linux FAT issue on SD Cards.. maintainer support please
Date: Thu, 18 Aug 2005 13:26:53 -0400	[thread overview]
Message-ID: <20050818172653.GV6714@csclub.uwaterloo.ca> (raw)
In-Reply-To: <3AEC1E10243A314391FE9C01CD65429B3886@mail.esn.co.in>

On Thu, Aug 18, 2005 at 06:21:39PM +0530, Mukund JB`. wrote:
> 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.
> 
> 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.
> 
> 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.
> 
> 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.

If you don't use fdisk to create a partition on the card, then you won't
have one.  If you mkdosfs on /dev/tfa0 then you loose the partition
table and get a filesystem on just the whole disk.  If you do it with
/dev/tfa0p1 then you do it on the first partition which would then have
the FAT filesystem starting at the offset of the first partition (as it
should).

> 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.

That is right.  Although I believe if windows sees one with a partition
table it will just use the first valid partition table entry it finds
and ignore the rest.

> 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.
> 
> I have verified it with fdisk -l -u /dev/tfa0 
> It has shown that it is the partition 0 & nothing else.
> 
> Please see the Images-All-MS-512.tar.gz.

Well to mount anything without a partition table, you would mount the
whole device (/dev/tfa0) and to mount one with a partition table on it,
you would mount /dev/tfa0p1 or tfa0p4 or whichever partition it is.

Zip drives used to be the same way.  Some were formated with 1 partition
(usually 1 or 4) and some had no partition table at all and used the
whole disk for the filesystem.  I always had a /zip and /zip4 mount
point I used depending on the particular disk I was looking at.

Len Sorensen

  reply	other threads:[~2005-08-18 17:26 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 12:51 Mukund JB`.
2005-08-18 17:26 ` Lennart Sorensen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-08-24 13:18 Mukund JB.
2005-08-24 13:28 ` Lennart Sorensen
2005-08-24  8:33 Mukund JB.
2005-08-24 13:13 ` Lennart Sorensen
2005-08-19 11:39 Mukund JB`.
2005-08-19 12:59 ` Lennart Sorensen
2005-08-18 12:56 Mukund JB`.
2005-08-17 17:02 Mukund JB`.
2005-08-17 18:50 ` Lennart Sorensen
2005-08-16 13:34 Mukund JB.
2005-08-16 13:59 ` Olivier Galibert
2005-08-16 16:09 ` Lennart Sorensen
2005-08-16 13:24 Mukund JB.
2005-08-16 16:08 ` Lennart Sorensen
2005-08-12 15:46 Mukund JB.
2005-08-12 16:00 ` Lennart Sorensen
2005-08-12 14:31 Mukund JB.
2005-08-12 14:22 Mukund JB.
2005-08-12 14:48 ` Lennart Sorensen
2005-08-11  5:27 Mukund JB.
2005-08-11  5:56 ` Marc Singer
2005-08-11 15:33 ` Lennart Sorensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050818172653.GV6714@csclub.uwaterloo.ca \
    --to=lsorense@csclub.uwaterloo.ca \
    --cc=hirofumi@mail.parknet.co.jp \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mukundjb@esntechnologies.co.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®