Re: ntfs usb drive fail to mount

2008-04-27 Thread Lord Sporkton
2008/4/25 Siju George [EMAIL PROTECTED]:
 On Fri, Apr 25, 2008 at 3:47 AM, Lord Sporkton [EMAIL PROTECTED] wrote:
   My appologies, i am indeed using GENERIC,
I did think that perhaps it did not support ntfs, but then i also
thought it would be rather absent minded to have included mount_ntfs
if support was not included, thus since i had mount_ntfs, i assumed i
had support for it.
  

  Rather than calling people absent minded don't you think you should
  be thankful that they put mount_ntfs in its place so that you can
  straight away mount NTFS filesystems once you complie the kernel with
  the option enabled which is not very difficult if you have the
  sources. If they hadn't put it there, after you compiled the kernel
  you will have to go looking for it.

  Don't call other people absent minded because you assumed the wrong things.
  What happened here is that you failed to read the Documentation and
  just assumed things.
  This happens to many of us once in a while but going to the extreme of
  calling people absent minded and names like that when the mistake is
  actually on your part will be looked upon as a direct insult in this
  list. :-)

  --Siju



Personally i feel it is wrong to include a controlling mechanism for a
feature that is not included. I feel if i have to go so far as to
rebuild my kernel, then i can certainly take a few more steps to add
mount_ntfs.


2008/4/26 Ivo van der Sangen [EMAIL PROTECTED]:

 On Thu, Apr 24, 2008 at 06:03:13PM -0400, jmc wrote:
   --- Lord Sporkton [Thu, Apr 24, 2008 at 02:32:37PM -0700]: ---7
I have an NTFS drive attached via USB that was previously attached to
an XP home system
  
   [ ... ]
  
 #  mount -t ntfs -r /dev/sd0i /mnt/usb2
mount_ntfs: /dev/sd0i on /mnt/usb2: Operation not supported
  
   you don't say if7you're using a GENERIC kernel or not, but from:
  
   http://www.openbsd.org/faq/faq14.html#foreignfs
  
Once you have determined which partition it is you want to use, you can
move to the final step: mounting the filesystem contained in it. Most
filesystems are supported in the GENERIC kernel: just have a look at the
kernel configuration file, located in the /usr/src/sys/arch/arch/conf
directory. However, some are not, e.g. the NTFS support is experimental
and therefore not included in GENERIC. If you want to use one of the
filesystems not supported in GENERIC, you will need to build a custom
kernel.
  

  Would it be a good idea to note the lack of support for NTFS
  filesystems in a GENERIC kerel in mount_ntfs(8)? If it is appreciated
  I will send a diff.

  Regards,

  Ivo van der Sangen




I would most certainly appreciate that, because THAT was the
documention i read when i was trying to make this happen.



-- 
-Lawrence



Re: ntfs usb drive fail to mount

2008-04-27 Thread Stuart Henderson
On 2008-04-27, Lord Sporkton [EMAIL PROTECTED] wrote:
 Personally i feel it is wrong to include a controlling mechanism for a
 feature that is not included. I feel if i have to go so far as to
 rebuild my kernel, then i can certainly take a few more steps to add
 mount_ntfs.

Sounds like an easy way to end up with kernel and userland out-of-sync...



Re: ntfs usb drive fail to mount

2008-04-27 Thread Amarendra Godbole
On Sun, Apr 27, 2008 at 12:48 AM, Ivo van der Sangen [EMAIL PROTECTED] wrote:
  Would it be a good idea to note the lack of support for NTFS
  filesystems in a GENERIC kerel in mount_ntfs(8)? If it is appreciated
  I will send a diff.
[...]

But then it has to be removed *when* NTFS becomes a part of GENERIC.
One place where this can be put up is the FAQ, but I'm still
skeptical. IMHO, things as of now are fine.

-Amarendra



Re: ntfs usb drive fail to mount

2008-04-26 Thread Ivo van der Sangen
On Thu, Apr 24, 2008 at 06:03:13PM -0400, jmc wrote:
 --- Lord Sporkton [Thu, Apr 24, 2008 at 02:32:37PM -0700]: ---7
  I have an NTFS drive attached via USB that was previously attached to
  an XP home system
 
 [ ... ]
 
   #  mount -t ntfs -r /dev/sd0i /mnt/usb2
  mount_ntfs: /dev/sd0i on /mnt/usb2: Operation not supported
 
 you don't say if7you're using a GENERIC kernel or not, but from:
 
 http://www.openbsd.org/faq/faq14.html#foreignfs
 
  Once you have determined which partition it is you want to use, you can
  move to the final step: mounting the filesystem contained in it. Most
  filesystems are supported in the GENERIC kernel: just have a look at the
  kernel configuration file, located in the /usr/src/sys/arch/arch/conf
  directory. However, some are not, e.g. the NTFS support is experimental
  and therefore not included in GENERIC. If you want to use one of the
  filesystems not supported in GENERIC, you will need to build a custom
  kernel.
 

Would it be a good idea to note the lack of support for NTFS
filesystems in a GENERIC kerel in mount_ntfs(8)? If it is appreciated
I will send a diff.

Regards,

Ivo van der Sangen



ntfs usb drive fail to mount

2008-04-24 Thread Lord Sporkton
I have an NTFS drive attached via USB that was previously attached to
an XP home system

I am trying to now attach this drive to my OpenBSD server

I get the following error however im unsure what im doing wrong
also, why does it show as a scsi device, its a pata drive in a usb enclosure?
I created a very small partition from some remaining space and made it
ffs, that partition works and will mount no problem, it seems to be
filesystem specific

THank you
Lawrence

 #  mount -t ntfs -r /dev/sd0i /mnt/usb2
mount_ntfs: /dev/sd0i on /mnt/usb2: Operation not supported


# disklabel sd0
disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: 2A
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 36481
total sectors: 586072368
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0   # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0

16 partitions:
#size   offset  fstype [fsize bsize  cpg]
  a: 5103586067265  4.2BSD   2048 163841
  c:5860723680  unused  0 0
  i:586067202   63 unknown
#


Apr 24 11:43:40 fire /bsd: umass0 detached
Apr 24 11:43:43 fire /bsd: umass0 at uhub0 port 1 configuration 1 interface 0
Apr 24 11:43:43 fire /bsd:
Apr 24 11:43:43 fire /bsd: umass0: Cypress Semiconductor Cypress
AT2LP, rev 2.00/2.40, addr 2
Apr 24 11:43:43 fire /bsd: umass0: using SCSI over Bulk-Only
Apr 24 11:43:43 fire /bsd: scsibus1 at umass0: 2 targets
Apr 24 11:43:43 fire /bsd: sd0 at scsibus1 targ 1 lun 0: ST330062,
2A,  SCSI0 0/direct fixed
Apr 24 11:43:43 fire /bsd: sd0: 286168MB, 36481 cyl, 255 head, 63 sec,
512 bytes/sec, 586072368 sec total


-- 
-Lawrence



Re: ntfs usb drive fail to mount

2008-04-24 Thread jmc
--- Lord Sporkton [Thu, Apr 24, 2008 at 02:32:37PM -0700]: ---7
 I have an NTFS drive attached via USB that was previously attached to
 an XP home system

[ ... ]

  #  mount -t ntfs -r /dev/sd0i /mnt/usb2
 mount_ntfs: /dev/sd0i on /mnt/usb2: Operation not supported

you don't say if7you're using a GENERIC kernel or not, but from:

http://www.openbsd.org/faq/faq14.html#foreignfs

 Once you have determined which partition it is you want to use, you can
 move to the final step: mounting the filesystem contained in it. Most
 filesystems are supported in the GENERIC kernel: just have a look at the
 kernel configuration file, located in the /usr/src/sys/arch/arch/conf
 directory. However, some are not, e.g. the NTFS support is experimental
 and therefore not included in GENERIC. If you want to use one of the
 filesystems not supported in GENERIC, you will need to build a custom
 kernel.



Re: ntfs usb drive fail to mount

2008-04-24 Thread Lord Sporkton
My appologies, i am indeed using GENERIC,
I did think that perhaps it did not support ntfs, but then i also
thought it would be rather absent minded to have included mount_ntfs
if support was not included, thus since i had mount_ntfs, i assumed i
had support for it.

I will look into adding ntfs support to my kernel

On 24/04/2008, jmc [EMAIL PROTECTED] wrote:
 --- Lord Sporkton [Thu, Apr 24, 2008 at 02:32:37PM -0700]: ---7

  I have an NTFS drive attached via USB that was previously attached to
   an XP home system


 [ ... ]


#  mount -t ntfs -r /dev/sd0i /mnt/usb2
   mount_ntfs: /dev/sd0i on /mnt/usb2: Operation not supported


 you don't say if7you're using a GENERIC kernel or not, but from:

  http://www.openbsd.org/faq/faq14.html#foreignfs

   Once you have determined which partition it is you want to use, you can
   move to the final step: mounting the filesystem contained in it. Most
   filesystems are supported in the GENERIC kernel: just have a look at the
   kernel configuration file, located in the /usr/src/sys/arch/arch/conf
   directory. However, some are not, e.g. the NTFS support is experimental
   and therefore not included in GENERIC. If you want to use one of the
   filesystems not supported in GENERIC, you will need to build a custom
   kernel.




-- 
-Lawrence



Re: ntfs usb drive fail to mount

2008-04-24 Thread Stuart Henderson
On 2008-04-24, Lord Sporkton [EMAIL PROTECTED] wrote:
 I get the following error however im unsure what im doing wrong
 also, why does it show as a scsi device, its a pata drive in a usb enclosure?

USB mass storage devices use the SCSI protocol in a USB wrapper.
The bridge chip in the enclosure converts this to the ATA protocol.



Re: ntfs usb drive fail to mount

2008-04-24 Thread jmc
--- Lord Sporkton [Thu, Apr 24, 2008 at 03:17:16PM -0700]: --- 
 My appologies, i am indeed using GENERIC,
 I did think that perhaps it did not support ntfs, but then i also
 thought it would be rather absent minded to have included mount_ntfs
 if support was not included, thus since i had mount_ntfs, i assumed i
 had support for it.
 
 I will look into adding ntfs support to my kernel

should just be a matter of uncommenting:

#option NTFS# Experimental NTFS support

and rebuilding.