Re: Large msdosfs disk will not mount on RELENG_6



James Wyatt wrote:
James Wyatt wrote:
I had the same issue with a Fry's $99 special 320GB USB2/FW exernal HDD.
Since I need to mount it with WinXP, Linux, and "GENERIC" FreeBSD, I was
somewhat stuck. The way I got around it was to reformat it to ext2 and use
the Win32 ext2fs driver from SourceForge. I considered NTFS, but the FreeBSD
support for NTFS didn't look practical to use at the time - Jy@

Sorry to reply to myself, but I forgot to mention that if you're doing
tar/zip backups, then FAT32 may be worth the extra memory. If you are
doing file backups, then ext2 will better preserve the metadata you want
like UID, GID, permissions, etc... as well as avoiding the waste of small
files stored in mega-clusters.

What do you mean, mega-clusters? You can specify the size
of the clusters when formatting the media. For a 160 giga-
byte disk (149 GB) you can make the cluster size as small
as 1024 bytes:

# truncate -s 160000000000 testhd.img
# mdconfig -a -t vnode -f testhd.img
md1
# newfs_msdos -N -s 312500000 -c 2 /dev/md1 minimum
/dev/md1: 310077486 sectors in 155038743 FAT32 clusters (1024 bytes/cluster)

When you make the cluster size that small, the FATs (there
are two of them by default) will take up much space, of
course. It might make sense to use only one FAT, though
(option -n). With a larger cluster size, the FATs get
smaller so you have more space for actual data:

# newfs_msdos -N -s 312500000 -c 32 /dev/md1 minimum
/dev/md1: 312347424 sectors in 9760857 FAT32 clusters (16384 bytes/cluster)

So, changing the cluster size from 1 KB to 32 KB will shrink
each FAT by more than 0.5 GB, so you get about 1.1 GB more
space for actual file data. That's acceptable if you intend
to store few large files (archives, multimedia files etc.).
To store a large number of small files, it is advisable to
use the smaller cluster size, of course.

That's actually quite similar (although a bit simpler) to
the selection of bsize/fsize parameters and the inode density
for UFS/FFS.

Best regards
Oliver

--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"C is quirky, flawed, and an enormous success."
-- Dennis M. Ritchie.
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: using FreeBSD within a cluster
    ... using FreeBSD within a cluster ... I can't find an answer to it in any FreeBSD FAQ, ... of FreeBSD AND Linux servers. ... If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ...
    (freebsd-questions)
  • Re: High Availability FreeBSD www cluster
    ... I would like to set up the servers so if one server falls over the other will take over the services automatically, load balanceing would be good as well. ... I have googled, I could be looking in the wrong place, there seems not to be much in regard to seting up freebsd in a cluster, lots on linux. ... So I am a bit lost and i am wanting to learn how to cluster freebsd web and mail servers, I have looked at Beowulf clusters, which seem to give computers more grunt, Can some on on the list please advise me on what clustering softwhere i need to get started and if the High Availability Linux project softwhere will do the job. ...
    (freebsd-questions)
  • High Availability FreeBSD www cluster
    ... I would like to set up the servers so if one server falls over the other will take over the services automatically, load balanceing would be good as well. ... I have googled, I could be looking in the wrong place, there seems not to be much in regard to seting up freebsd in a cluster, lots on linux. ... So I am a bit lost and i am wanting to learn how to cluster freebsd web and mail servers, I have looked at Beowulf clusters, which seem to give computers more grunt, Can some on on the list please advise me on what clustering softwhere i need to get started and if the High Availability Linux project softwhere will do the job. ...
    (freebsd-questions)
  • Re: High Availability FreeBSD www cluster
    ... I would like to set up the servers so if one server falls over the other will take over the services automatically, load balanceing would be good as well. ... I have googled, I could be looking in the wrong place, there seems not to be much in regard to seting up freebsd in a cluster, lots on linux. ... So I am a bit lost and i am wanting to learn how to cluster freebsd web and mail servers, I have looked at Beowulf clusters, which seem to give computers more grunt, Can some on on the list please advise me on what clustering softwhere i need to get started and if the High Availability Linux project softwhere will do the job. ...
    (freebsd-questions)
  • Re: HD Mirroring
    ... >> I'm just curious if there's any other solution that will work on FreeBSD. ... > hours I was able to set up a cluster consisting of a management process ... > and data node running in one jail, and a MySQL server and another data ... Nuking either of the data node ...
    (freebsd-hackers)