Re: Mounting /c

2009-01-12 Thread Jerry McAllister
On Sun, Jan 11, 2009 at 02:23:25AM +, RW wrote:

 On Sat, 10 Jan 2009 20:09:57 +
 Chris Whitehouse cwhi...@onetel.com wrote:
 
  Why not as a matter of curiosity? It has its limitations (eg max file 
  size) but it's very cross platform.
 
 ntfs is much more robust than fat32, if you crash windows or pull the
 plug, you are more likely to lose data with fat32.

But, if your MS-Win slice is just there for occasional convenience and
is not especially significant, converting NTFS to FAT32 is an easy way
to be able to write to it directly from FreeBSD.   The alternative is
to create a 3rd slice that is FAT32 and use it as a communication stash.

FAT32 has its limitations, but it is quite usable under most circumstances
if those limitations are not important.

jerry


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


Re: Mounting /c

2009-01-10 Thread Jerry McAllister
On Sat, Jan 10, 2009 at 03:36:33AM +, RW wrote:

 On Fri, 9 Jan 2009 18:17:49 -0500
 Jerry McAllister jerr...@msu.edu wrote:
 
 
  In general, you should not expect to be able to write to an ntfs file
  system type.That is why I converted my MS-Win file system to
  FAT32. 
 
 Not a good idea.

I didn't need anything ntfs provided and it was convenient 
rather than further dividing the disk to have a write area.

jerry


 
  According to the man page, some limited writing can be done,
  but the list of limitations is long and they are not all immediately
  straightforward.
 
 You should be able to write to ntfs if you use the fuse version
 sysutils/fusefs-ntfs - it just works in my experience. 
 
 The last time I checked it required some (well-documented) adjustment
 to make it mount from fstab as FreeBSD uses a hard-coded list of mount_*
 commands rather than simply converting mount -t foo to mount_foo. I'm
 not sure if this is fixed in 7.1 - but it's about time it was.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mounting /c

2009-01-10 Thread Chris Whitehouse

RW wrote:

On Fri, 9 Jan 2009 18:17:49 -0500
Jerry McAllister jerr...@msu.edu wrote:



In general, you should not expect to be able to write to an ntfs file
system type.That is why I converted my MS-Win file system to
FAT32. 


Not a good idea.


Why not as a matter of curiosity? It has its limitations (eg max file 
size) but it's very cross platform.





According to the man page, some limited writing can be done,
but the list of limitations is long and they are not all immediately
straightforward.


You should be able to write to ntfs if you use the fuse version
sysutils/fusefs-ntfs - it just works in my experience. 


I would suggest lots of testing, I did by copying bunches of files  from 
UFS to ntfs then md5-ing the originals and the copies and there were 
plenty of differences. I decided I wasn't ready to trust it yet.


Chris




The last time I checked it required some (well-documented) adjustment
to make it mount from fstab as FreeBSD uses a hard-coded list of mount_*
commands rather than simply converting mount -t foo to mount_foo. I'm
not sure if this is fixed in 7.1 - but it's about time it was.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



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


Re: Mounting /c

2009-01-10 Thread RW
On Sat, 10 Jan 2009 20:09:57 +
Chris Whitehouse cwhi...@onetel.com wrote:

 Why not as a matter of curiosity? It has its limitations (eg max file 
 size) but it's very cross platform.

ntfs is much more robust than fat32, if you crash windows or pull the
plug, you are more likely to lose data with fat32.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Mounting /c

2009-01-09 Thread Rem P Roberti

Question 1)

I have this alias that allows me to mount my windoze drive at /c:

alias mdc='mount_ntfs /dev/ad1s1 /c'

It works fine.  I thought that I could automate the process further by
mounting /c at boot-up time, so I added this to fstab:

# DeviceMountpoint  FStype  Options Dump
Pass#
/dev/ad1s1  /c  ntfs
rw 1   0


That doesn't work.  What is wrong there?

Question 2)

I know that it is possible to copy files from /c to my freebsd drive, but
is it possible to do that in reverse?

TIA...

Rem

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


Re: Mounting /c

2009-01-09 Thread Jerry McAllister
On Fri, Jan 09, 2009 at 01:43:45PM -0800, Rem P Roberti wrote:

 Question 1)
 
 I have this alias that allows me to mount my windoze drive at /c:
 
 alias mdc='mount_ntfs /dev/ad1s1 /c'
 
 It works fine.  I thought that I could automate the process further by
 mounting /c at boot-up time, so I added this to fstab:
 
 # DeviceMountpoint  FStype  Options Dump
 Pass#
 /dev/ad1s1  /c  ntfs
 rw 1   0
 
 That doesn't work.  What is wrong there?

I think I must be missing something here.   This all seems like the hard
way to do things, or else you are trying to do something I don't understand.

It seems to me like just:
  mkdir /c:  (skip the : if you don't really want it)
  mount_ntfs /dev/as1s1 /c:

Should work.
And then, put this in your /etc/fstab:

# Device Mountpoint  FStype  OptionsDumpPass#
/dev/ad1s1/c: ntfs ro0   0

to get it to mount when the system comes up.

I do this with an  msdosfs  filesystem type with no problem and once
had a machine with ntfs and did it there.  (but that is gone so I 
can't go and check it now)

 
 Question 2)
 
 I know that it is possible to copy files from /c to my freebsd drive, but
 is it possible to do that in reverse?

In general, you should not expect to be able to write to an ntfs file
system type.That is why I converted my MS-Win file system to FAT32.
According to the man page, some limited writing can be done, but the 
list of limitations is long and they are not all immediately straightforward.
Seeman mount_ntfs   for more information on this.

If you really want to try writing to the ntfs file system from FreeBSD,
then you would have to change the mount option to 'rw' from 'ro'. 

jerry   
   
 
 TIA...
 
 Rem
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mounting /c

2009-01-09 Thread Roland Smith
On Fri, Jan 09, 2009 at 01:43:45PM -0800, Rem P Roberti wrote:
 Question 1)
 
 I have this alias that allows me to mount my windoze drive at /c:
 
  alias mdc='mount_ntfs /dev/ad1s1 /c'
 
 It works fine.  I thought that I could automate the process further by
 mounting /c at boot-up time, so I added this to fstab:
 
 # DeviceMountpoint  FStype  Options Dump
 Pass#
 /dev/ad1s1  /c  ntfs
 rw 1   0

When using the built-in mount_ntfs you should really mount read-only.
Maybe using the options 'ro' and 'late' will help.

 Question 2)
 
 I know that it is possible to copy files from /c to my freebsd drive, but
 is it possible to do that in reverse?

You should use the sysutils/fusefs-ntfs port if you want to mount ntfs
read/write. See /usr/ports/sysutils/fusefs-ntfs/files/README.FreeBSD

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgp2844b5DOrP.pgp
Description: PGP signature


Re: Mounting /c

2009-01-09 Thread Rem P Roberti

Roland Smith wrote:

On Fri, Jan 09, 2009 at 01:43:45PM -0800, Rem P Roberti wrote:
  

Question 1)

I have this alias that allows me to mount my windoze drive at /c:

 alias mdc='mount_ntfs /dev/ad1s1 /c'

It works fine.  I thought that I could automate the process further by
mounting /c at boot-up time, so I added this to fstab:

# DeviceMountpoint  FStype  Options Dump
Pass#

/dev/ad1s1  /c  ntfsrw 
1   0



When using the built-in mount_ntfs you should really mount read-only.
Maybe using the options 'ro' and 'late' will help.

  

I changed the fstab options to 'ro' and /c still won't mount at startup.
This is not a big deal since I can get /c mounted via the alias; I'm just
trying to understand why it doesn't work.  I recall that on an old system
of mine I had fstab set up as you indicate and it worked fine.

Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Mounting /c

2009-01-09 Thread Roland Smith
On Fri, Jan 09, 2009 at 04:05:20PM -0800, Rem P Roberti wrote:
 Roland Smith wrote:

  When using the built-in mount_ntfs you should really mount read-only.
  Maybe using the options 'ro' and 'late' will help.

 I changed the fstab options to 'ro' and /c still won't mount at startup.
 This is not a big deal since I can get /c mounted via the alias; I'm just
 trying to understand why it doesn't work.  I recall that on an old system
 of mine I had fstab set up as you indicate and it worked fine.

Check /var/log/messages or dmesg output to see if they contain any clues
as to why the mount command fails.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpooD6PFGzE7.pgp
Description: PGP signature


Re: Mounting /c

2009-01-09 Thread RW
On Fri, 9 Jan 2009 18:17:49 -0500
Jerry McAllister jerr...@msu.edu wrote:


 In general, you should not expect to be able to write to an ntfs file
 system type.That is why I converted my MS-Win file system to
 FAT32. 

Not a good idea.

 According to the man page, some limited writing can be done,
 but the list of limitations is long and they are not all immediately
 straightforward.

You should be able to write to ntfs if you use the fuse version
sysutils/fusefs-ntfs - it just works in my experience. 

The last time I checked it required some (well-documented) adjustment
to make it mount from fstab as FreeBSD uses a hard-coded list of mount_*
commands rather than simply converting mount -t foo to mount_foo. I'm
not sure if this is fixed in 7.1 - but it's about time it was.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org