Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vfat and file corruption issues
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CougarX
n00b
n00b


Joined: 18 Dec 2003
Posts: 15
Location: Pennsylvania, US

PostPosted: Mon Jan 19, 2004 8:23 pm    Post subject: vfat and file corruption issues Reply with quote

Hi all,

I've been having problems with my vfat partition. It seems that every time I try to write a large file to the drive, the file get corrupted. I installed dosfstools, and I use fsck.vfat to check the drive that gives me an error saying that the number of free clusters is incorrect. Basically I am wondering if there is some sort of size limit built into linux (specifically kernel 2.4.23 ck-sources) that would cause this problem. The drive is 200 gig (formatted at about 189 gig with vfat) and this problem only seemed to start once I passed the 150 gig mark (yeah, the drive is pretty full). Also I don't really want to convert out of vfat because I need the compatibility with windows. Speaking of which, windows doesn't seem to have this problem :?.

btw, reading and writing work fine otherwise...

Thanks for your help,
_________________
CougarX
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Mon Jan 19, 2004 8:45 pm    Post subject: Reply with quote

what blocksize did you use in making the partition (-F option)
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
CougarX
n00b
n00b


Joined: 18 Dec 2003
Posts: 15
Location: Pennsylvania, US

PostPosted: Mon Jan 19, 2004 10:47 pm    Post subject: Reply with quote

well when I made the partition I used partition magic, so I don't know the blocksize off hand but maybe this will help

Code:

dosfsck 2.10 (22 Sep 2003)
dosfsck 2.10, 22 Sep 2003, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSWIN4.1"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     32768 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
  24887296 bytes per FAT (= 48608 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 49790976 (sector 97248)
   6221658 data clusters (203871289344 bytes)
63 sectors/track, 255 heads
        63 hidden sectors
 398283417 sectors total
Checking for unused clusters.
Checking free cluster summary.
/dev/sda1: 4651 files, 5263474/6221658 clusters



or maybe this

Code:


Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda6             36868008  23308784  13559224  64% /
/dev/hda3             20602692  19055232   1547460  93% /home
none                    257616         0    257616   0% /dev/shm
/dev/sda1            199093056 168431168  30661888  85% /mnt/storage


hope that helps :)

Thanks Again!
_________________
CougarX
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Mon Jan 19, 2004 11:06 pm    Post subject: Reply with quote

I mean was it fat16 or fat32?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
CougarX
n00b
n00b


Joined: 18 Dec 2003
Posts: 15
Location: Pennsylvania, US

PostPosted: Tue Jan 20, 2004 12:00 am    Post subject: Reply with quote

ahh okay, it was fat32
_________________
CougarX
Back to top
View user's profile Send private message
CougarX
n00b
n00b


Joined: 18 Dec 2003
Posts: 15
Location: Pennsylvania, US

PostPosted: Tue Jan 20, 2004 7:00 am    Post subject: Reply with quote

humm... I just looked around on google and found some very discouraging information. I also tried to add the sync option to my fstab file hoping that would help, it didn't. Looks like i'm almost out of options.

two links, this first one explains exactly what is happening to my drive.
http://www.knoppix.net/forum/viewtopic.php?t=6326&view=previous

this one gives some filesystem descriptions and a limit of fat32
http://linux.org.mt/article/filesystems#N10059

From the above page here is the quote

Quote:
Comparison matrix
FAT16 FAT32 NTFS (WindowsNT) HPFS (OS/2)
Windows 9x Compatibility Yes Windows 95SE onwards No No
Windows NT Compatibility Yes Windows 2000 onwards Windows NT 4 onwards Windows NT 3.1-3.51 only
Linux Compatibility Yes Yes Read-only Yes
Maximum Partition Size 2Gb 128Gb 2Tb 2Tb
Maximum File Size 2Gb 4Gb volume size 2Gb

(visiting the website gives a much better layout, this one is very hard to read)

This sucks, I don't really have a way to back up the data on this drive an repartition, does anyone know if the 2.6 kernel fixes this limitation? Also if I switch to the 2.6 Kernel, is the compatibility better with ntfs, ie read and write safely?

Thanks Again
_________________
CougarX
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum