Doc is Disk on Chip
Following your advice I run fdisk on my smartphone(pxa271)'s DOC to make a partition, then using mkdosfs on this partition(mkdosfs -F 16 /dev/tffsa1), Now there is a disk driver appear, but it is write-protect. But I could mount as vfat to read/write file on it.
There remains several problems(insmod g_file_storage.o file=/dev/tffsa)
1) it is write-protect, printk shows open_backing_file set ro=1 as checking IS_RDONLY(inode) is true, Is it because of ill use of fdisk and mkdosfs?
2) I can't see the file on the disk file. But I could see the files by mount it on /truefs/, and could r/w file on it. Is the problem of mkdosfs(v2.8)? or there is some issue with pxa271 driver.
I tried hard without any success Thanks


From: Alan Stern <[EMAIL PROTECTED]>
To: tong changda <[EMAIL PROTECTED]>
CC: linux-usb-devel@lists.sourceforge.net
Subject: Re: [linux-usb-devel] how to format backup media for mass-storage
Date: Fri, 18 Feb 2005 10:13:45 -0500 (EST)

On Fri, 18 Feb 2005, tong changda wrote:

> Hi,
> Build Mass-storage based on pxa271, Now I want to format DOC as
fat32
> filesystem.

What is DOC?

>  First I run fdisk on Mobile on /dev/tffsa ,

What is Mobile?

> add a new partition,
> change filesystem type as 0xb(fat32) then write, Now I could mount vfat
on
> mobile

How could you mount a vfat filesystem without creating one (mkdosfs)
first?

>  and read/write file on it, but connect with windows , No disk drive
> appear. The only way to appear a disk driver is first mkdosfs -F 32
> /dev/tffsa, then fdisk it.

No.  If you use fdisk, it must be done before using mkdosfs.

> But choose the disk driver indicate that it need
> to be format,

That's because you ran fdisk _after_ mkdosfs instead of _before_.

> But format result in "Disk is write-protect".
> What is the requirement of the dos image to work as mass-storage
media?

The requirement is that the media not be write-protected.

> What is the correct way to format it? Do I need mkdosfs?

Yes.  Use fdisk to create one partition, then use mkdosfs to format that
partition.

Alan Stern



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to