Mounting NTFS, "Invalid argument"
Hi, When I attempt to mount a NTFS-formatted external drive, it fails: # mount -t ntfs /dev/sd2i /media/usb/ mount_ntfs: /dev/sd2i on /media/usb: Invalid argument There is a note about this under BUGS in mount_ntfs(8): If the attempt to mount NTFS gives you an error like this: # mount -t ntfs /dev/wd0k /mnt mount_ntfs: /dev/wd0k on /mnt: Invalid argument make sure that the appropriate partition has the correct entry in the disk label, particularly that the partition offset is correct. If the NTFS partition is the first partition on the disk, the offset should be '63' (see disklabel(8)). However, disklabel already says 63 for the argument, so this seems not to apply. Also, the size entry matches fdisk output and the type is (obviously) NTFS. Any ideas of what to debug? Is this a PEBKAC? fdisk: Disk: sd2 geometry: 14593/255/63 [234441648 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] --- 0: 07 0 1 1 - 14592 254 63 [ 63: 234436482 ] NTFS 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused disklabel: # /dev/rsd2c: type: SCSI disk: SCSI disk label: HM121HC duid: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 14593 total sectors: 234441648 boundstart: 0 boundend: 234441648 drivedata: 0 16 partitions: #size offset fstype [fsize bsize cpg] c:2344416480 unused i:234436482 63NTFS
Re: Mounting NTFS, "Invalid argument"
NTFS support is not enabled in the GENERIC kernel. -Otto On Sun, Mar 06, 2011 at 10:18:45PM -0700, Anthony J. Bentley wrote: > Hi, > > When I attempt to mount a NTFS-formatted external drive, it fails: > # mount -t ntfs /dev/sd2i /media/usb/ > mount_ntfs: /dev/sd2i on /media/usb: Invalid argument > > There is a note about this under BUGS in mount_ntfs(8): > > If the attempt to mount NTFS gives you an error like this: > > # mount -t ntfs /dev/wd0k /mnt > mount_ntfs: /dev/wd0k on /mnt: Invalid argument > > make sure that the appropriate partition has the correct entry in the > disk label, particularly that the partition offset is correct. If the > NTFS partition is the first partition on the disk, the offset should be > '63' (see disklabel(8)). > > However, disklabel already says 63 for the argument, so this seems > not to apply. Also, the size entry matches fdisk output and the type > is (obviously) NTFS. > > Any ideas of what to debug? Is this a PEBKAC? > > fdisk: > Disk: sd2 geometry: 14593/255/63 [234441648 Sectors] > Offset: 0 Signature: 0xAA55 > Starting Ending LBA Info: > #: id C H S - C H S [ start:size ] > --- > 0: 07 0 1 1 - 14592 254 63 [ 63: 234436482 ] NTFS > > 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > > disklabel: > # /dev/rsd2c: > type: SCSI > disk: SCSI disk > label: HM121HC > duid: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > cylinders: 14593 > total sectors: 234441648 > boundstart: 0 > boundend: 234441648 > drivedata: 0 > > 16 partitions: > #size offset fstype [fsize bsize cpg] > c:2344416480 unused > i:234436482 63NTFS
Re: Mounting NTFS, "Invalid argument"
On Mon, Mar 07, 2011 at 07:57:56AM +0100, Otto Moerbeek wrote: > NTFS support is not enabled in the GENERIC kernel. Oops, I may be wrong. It is enabled on recent i386 and amd64 kernels. But since you neglect to give us a dmesg, we cannot tell if it is actually enable on your machine. -Otto > > On Sun, Mar 06, 2011 at 10:18:45PM -0700, Anthony J. Bentley wrote: > > > Hi, > > > > When I attempt to mount a NTFS-formatted external drive, it fails: > > # mount -t ntfs /dev/sd2i /media/usb/ > > mount_ntfs: /dev/sd2i on /media/usb: Invalid argument > > > > There is a note about this under BUGS in mount_ntfs(8): > > > > If the attempt to mount NTFS gives you an error like this: > > > > # mount -t ntfs /dev/wd0k /mnt > > mount_ntfs: /dev/wd0k on /mnt: Invalid argument > > > > make sure that the appropriate partition has the correct entry in the > > disk label, particularly that the partition offset is correct. If the > > NTFS partition is the first partition on the disk, the offset should be > > '63' (see disklabel(8)). > > > > However, disklabel already says 63 for the argument, so this seems > > not to apply. Also, the size entry matches fdisk output and the type > > is (obviously) NTFS. > > > > Any ideas of what to debug? Is this a PEBKAC? > > > > fdisk: > > Disk: sd2 geometry: 14593/255/63 [234441648 Sectors] > > Offset: 0 Signature: 0xAA55 > > Starting Ending LBA Info: > > #: id C H S - C H S [ start:size ] > > --- > > 0: 07 0 1 1 - 14592 254 63 [ 63: 234436482 ] NTFS > > > > 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > > > 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > > > 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > > > > > disklabel: > > # /dev/rsd2c: > > type: SCSI > > disk: SCSI disk > > label: HM121HC > > duid: > > flags: > > bytes/sector: 512 > > sectors/track: 63 > > tracks/cylinder: 255 > > sectors/cylinder: 16065 > > cylinders: 14593 > > total sectors: 234441648 > > boundstart: 0 > > boundend: 234441648 > > drivedata: 0 > > > > 16 partitions: > > #size offset fstype [fsize bsize cpg] > > c:2344416480 unused > > i:234436482 63NTFS
Re: Mounting NTFS, "Invalid argument"
Am 07.03.2011 07:57, schrieb Otto Moerbeek: NTFS support is not enabled in the GENERIC kernel. CVS says that it is enabled. Kind regards, Markus
Re: Mounting NTFS, "Invalid argument"
On Mon, Mar 7, 2011 at 2:54 AM, Markus Hennecke wrote: > Am 07.03.2011 07:57, schrieb Otto Moerbeek: >> >> NTFS support is not enabled in the GENERIC kernel. > > CVS says that it is enabled. Not in any currently released version...
Re: Mounting NTFS, "Invalid argument"
> On Mon, Mar 07, 2011 at 07:57:56AM +0100, Otto Moerbeek wrote: > > > NTFS support is not enabled in the GENERIC kernel. > > Oops, I may be wrong. It is enabled on recent i386 and amd64 kernels. > But since you neglect to give us a dmesg, we cannot tell if it is > actually enable on your machine. That's true. Mitigating that now... I am running a 4.9 snapshot. OpenBSD 4.9-beta (GENERIC.MP) #767: Sat Jan 29 10:01:32 MST 2011 t...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE real mem = 1062502400 (1013MB) avail mem = 1034964992 (987MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 02/08/08, SMBIOS rev. 2.4 @ 0x3f607010 (45 entries) bios0: vendor American Megatrends Inc. version "4.6.3" date 02/23/2009 bios0: MICRO-STAR INTERNATIONAL CO., LTD MS-N033 acpi0 at bios0: rev 2 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC SSDT SSDT SSDT acpi0: wakeup devices P0P2(S4) PEGP(S4) USB0(S1) USB1(S1) USB2(S1) USB3(S1) EHCI(S1) MC97(S4) P0P1(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) P0P8(S4) P0P9(S4) acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: Intel(R) Atom(TM) CPU N280 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,SSSE3,xTPR,PDCM,MOVBE ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 24 pins acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (P0P2) acpiprt2 at acpi0: bus 1 (P0P4) acpiprt3 at acpi0: bus -1 (P0P5) acpiprt4 at acpi0: bus 2 (P0P6) acpiprt5 at acpi0: bus -1 (P0P7) acpiprt6 at acpi0: bus -1 (P0P8) acpiprt7 at acpi0: bus -1 (P0P9) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2, C1, PSS acpicpu1 at acpi0: C3, C2, C1, PSS acpitz0 at acpi0: critical temperature 100 degC acpiac0 at acpi0: AC unit online acpibat0 at acpi0: BAT1 model "MS-N033 " serial type LION oem "MSI Corp. " acpibtn0 at acpi0: LID0 acpibtn1 at acpi0: PWRB acpibtn2 at acpi0: SLPB acpivideo0 at acpi0: IGD_ acpivout0 at acpivideo0: CRT_ acpivout1 at acpivideo0: LCD_ bios0: ROM list: 0xc/0xea00! 0xcf000/0x1000 cpu0: Enhanced SpeedStep 1667 MHz: speeds: 1333, 1067, 800 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03 vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xc000, size 0x1000 inteldrm0 at vga1: apic 2 int 16 (irq 11) drm0 at inteldrm0 "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: apic 2 int 16 (irq 11) azalia0: codecs: Realtek ALC888 audio0 at azalia0 ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 2 int 16 (irq 11) pci1 at ppb0 bus 1 re0 at pci1 dev 0 function 0 "Realtek 8101E" rev 0x02: RTL8102E (0x3480), apic 2 int 16 (irq 11), address 00:24:21:62:f5:5d rlphy0 at re0 phy 7: RTL8201L 10/100 PHY, rev. 1 ppb1 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 2 int 18 (irq 10) pci2 at ppb1 bus 2 "Realtek 8187SE" rev 0x22 at pci2 dev 0 function 0 not configured uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 2 int 23 (irq 5) uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 2 int 19 (irq 3) uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 2 int 18 (irq 10) uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 2 int 16 (irq 11) ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 2 int 23 (irq 5) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2 pci3 at ppb2 bus 3 ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled pciide0 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6 usb1 at uhci0: USB revision 1.0 uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb2 at uhci1: USB revision 1.0 uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci2: USB revision 1.0 uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci3: USB revision 1.0 uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00