Re: fat32 question

2015-09-20 Thread Tomoaki AOKI
According to "Real Hardware Gotchas" section in [1], FAT32 fs creation
of FreeBSD seems to have some problems.

Try formatting by the hardware you're going to transfer files from
FreeBSD, if available. Once formatted by other OS, read/write/delete
files in FAT32 formatted media would be OK with FreeBSD.

If not, and if the file you want to transfer is small enough, partition
the media and use FAT16. (The safest maximum is 32MB, but maybe under
2GB would be OK.)

[1] https://wiki.freebsd.org/UEFI


On Sun, 20 Sep 2015 06:55:19 +0200
Zoran Kolic  wrote:

> I have a device to which I'd like to connect otg cable
> and insert 16gb usb stick. Tried "newfs_msdos -F32 /dev/da0".
> Mounted, copied files. The device does not see the file
> system at all.
> Any idea what to do further? Another option might be extfs.
> Best regards
> 
>   Zoran
> 
> ___
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
> 


-- 
Tomoaki AOKIjunch...@dec.sakura.ne.jp
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: fat32 question

2015-09-20 Thread Erich Dollansky
Hi,

On Sun, 20 Sep 2015 16:23:42 +0200
Zoran Kolic  wrote:

> > Zoran, re Brandon's "won't understand it any more."
> > Dont despair & discard stick, you can rebuild the MBR: man fdisk
> > from memory start with fdisk -i -B /dev/da0 
> 
> First, thanks all for replies!
> After a bit of puzzling, I found that the problem was every Transcend
> usb stick I have. They are all fine for mundane tasks and newfs_msdos
> makes it able to work on freebsd. My music player was picky and has
> something to say against. When I inserted old and forgoten Verbatim
> drive, without making f32, it presented itself and files were ready
> to play. Unbelievable.
> Yep, I did fdisk step after I posted the question. No go on Transcend.
> Might be hardware incompatibility or else. Btw, I always do just newfs
> on back up usb disks and never had any problem, so far, on freebsd.
> Once again, thank you for help.
> 
FreeBSD has no problem when the file system is directly on the device.
Other operating system have problems with it as they expect partitions.

fdisk is a bit outdated. Use gpart for partitioning.

Erich
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: fat32 question

2015-09-20 Thread Zoran Kolic
> Zoran, re Brandon's "won't understand it any more."
> Dont despair & discard stick, you can rebuild the MBR: man fdisk
> from memory start with fdisk -i -B /dev/da0 

First, thanks all for replies!
After a bit of puzzling, I found that the problem was every Transcend
usb stick I have. They are all fine for mundane tasks and newfs_msdos
makes it able to work on freebsd. My music player was picky and has
something to say against. When I inserted old and forgoten Verbatim
drive, without making f32, it presented itself and files were ready
to play. Unbelievable.
Yep, I did fdisk step after I posted the question. No go on Transcend.
Might be hardware incompatibility or else. Btw, I always do just newfs
on back up usb disks and never had any problem, so far, on freebsd.
Once again, thank you for help.

  Zoran

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: fat32 question

2015-09-20 Thread Julian H. Stacey
Tomoaki AOKI wrote:
> According to "Real Hardware Gotchas" section in [1], FAT32 fs creation
> of FreeBSD seems to have some problems.
> 
> Try formatting by the hardware you're going to transfer files from
> FreeBSD, if available. Once formatted by other OS, read/write/delete
> files in FAT32 formatted media would be OK with FreeBSD.
> 
> If not, and if the file you want to transfer is small enough, partition
> the media and use FAT16. (The safest maximum is 32MB, but maybe under
> 2GB would be OK.)
> 
> [1] https://wiki.freebsd.org/UEFI

Zoran, re Brandon's "won't understand it any more."
Dont despair & discard stick, you can rebuild the MBR: man fdisk
from memory start with fdisk -i -B /dev/da0 

sometimes I then remove & reinsert or even reboot, to make certain
the OS has the new numbers.  I don't recall I've needed to reduce
from FAT32 to FAT16.

Ive not read the uefi page as happily no boxes are uefi here,
but I've often created FAT32 partitions, my notes at
http://www.berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/jhs/etc/devd/berklix.conf

The advice about letting the other native MS FAT device format if it will,
is quickest solution though.

PS Max size of FAT32 = 2TB
https://en.wikipedia.org/wiki/File_Allocation_Table#FAT32

> 
> 
> On Sun, 20 Sep 2015 06:55:19 +0200
> Zoran Kolic  wrote:
> 
> > I have a device to which I'd like to connect otg cable
> > and insert 16gb usb stick. Tried "newfs_msdos -F32 /dev/da0".
> > Mounted, copied files. The device does not see the file
> > system at all.
> > Any idea what to do further? Another option might be extfs.
> > Best regards
> > 
> >   Zoran




Cheers,
Julian
--
Julian Stacey, BSD Linux Unix C Sys Eng Consultant Munich http://berklix.com
 Reply after previous text, like a play - Not before, which looses context.
 Indent previous text with "> " Insert new lines before 80 chars.
 Send plain text, Not quoted-printable, Not HTML, Not ms.doc, Not base64.
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: fat32 question

2015-09-19 Thread Brandon Allbery
On Sun, Sep 20, 2015 at 12:55 AM, Zoran Kolic  wrote:

> I have a device to which I'd like to connect otg cable
> and insert 16gb usb stick. Tried "newfs_msdos -F32 /dev/da0".
>

This was probably a mistake; USB sticks are partitioned, and you wiped out
the partition table by using da0 instead of e.g. da0s1. Most other systems
--- and automount utilities even for FreeBSD --- won't understand it any
more.

-- 
brandon s allbery kf8nh   sine nomine associates
allber...@gmail.com  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonadhttp://sinenomine.net
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: fat32 question

2015-09-19 Thread Bruce Burden

When I mount a FAT32 fs, it is /dev/daXs1, where X is 0, 1, etc.

I would not expect to see /dev/da0.

>From my fstab file:

/dev/da0s1  /usb_flash  msdosfs rw,noauto   0   0
/dev/da1s1  /usb_flash2 msdosfs rw,noauto   0   0

FWIW, this is 10.0 STABLE.

Bruce

On Sun, Sep 20, 2015 at 06:55:19AM +0200, Zoran Kolic wrote:
> I have a device to which I'd like to connect otg cable
> and insert 16gb usb stick. Tried "newfs_msdos -F32 /dev/da0".
> Mounted, copied files. The device does not see the file
> system at all.
> Any idea what to do further? Another option might be extfs.
> Best regards
> 
>   Zoran
> 
> ___
> freebsd-stable@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

-- 

  "I like bad!" Bruce BurdenAustin, TX.
- Thuganlitha
The Power and the Prophet
Robert Don Hughes

___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"