Re: Trouble formatting flash disk

2009-08-18 Thread Eric Sandeen
Casimiro de Almeida Barreto wrote:
 Hello,
 
 I have a pendrive (flash memory) which lists in /proc/bus/usb/devices as:

...

 And I've tried to format it as ext2 (so I can backup my home directory).
 It happens that no matter what I do (and I've tried almost everything)
 it formats but no matter what I do when I record a large file (2GBytes)
 it generates file system inconsistencies.
 
 First I thought that perhaps the device was defective. But when I try to
 write and read it, everything seems to be OK. It even passes badblock -w ...
 
 Any suggestions on what may be wrong?

Could you take this to the linux-ext4 list?  It'd be the more
appropriate place for the discussion.

It'd be good to know the details of the errors you see, too.

Thanks,
-Eric

 Best regards,
 
 CdAB
 

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list


Re: Trouble formatting flash disk

2009-08-18 Thread Casimiro de Almeida Barreto
Em 18-08-2009 15:13, Eric Sandeen escreveu:
 (...)
 Could you take this to the linux-ext4 list?  It'd be the more
 appropriate place for the discussion.

 It'd be good to know the details of the errors you see, too.

 Thanks,
 -Eric

   
 Best regards,

 CdAB

 
   
Yes, if I know where I can subscribe this list.

Besides, when I format the device as Fat (F16 or F32) it works properly
only if I disable multibyte char encoding for directories (by doing:
LANG=pt_BR.ISO8859-1 and LC_ALL=pt_BR.ISO8859-1. That should be OK but
system should convert file names to proper encoding.

When I format as ext-2 and create a large file, after writing the file I
can't write anything else. If I unmount the fs, I am able to mount again
and even read the file, but I'm not able to write anything else. But if
I fsck it, I'm warned that system was uncleanly unmounted. Several
errors appear (I'll repeat the procedure and log the errors).

Basically what I do is:

# FILE_NAME_PREFIX=`date +%y%m%d%H%M`
# tar cjf - /home /opt /usr/local | gpg -c -a -z0 --cipher-algo=aes256
-o /media/kingston/${FILE_NAME_PREFIX}.asc
# md5sum ${FILE_NAME_PREFIX}.asc  ${FILE_NAME_PREFIX}.md5 (this won't
execute - cannot write to device).

But if I do:

# df -m /dev/sdd1

it is still plenty of free memory (64GBytes minus about 10GBytes)...

One thing I was thinking is that this flash memory stores data in blocks
of 512 bytes and minimum ext2 blocking is 1024 bytes...



signature.asc
Description: OpenPGP digital signature
-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

Re: Trouble formatting flash disk

2009-08-18 Thread Eric Sandeen
Casimiro de Almeida Barreto wrote:
 Em 18-08-2009 15:13, Eric Sandeen escreveu:
 (...)
 Could you take this to the linux-ext4 list?  It'd be the more
 appropriate place for the discussion.

 It'd be good to know the details of the errors you see, too.

 Thanks,
 -Eric

   
 Best regards,

 CdAB

 
   
 Yes, if I know where I can subscribe this list.

http://vger.kernel.org/vger-lists.html#linux-ext4


-Eric

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list