mount_ffs Permission denied as root

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

mount_ffs Permission denied as root

sharon s.
I just did a new install of current AMD64 from the 12/31/2018 snapshot
and having some permission issues mounting a usb drive, as root.  I have
been able to mount other usb drives just fine. (Also tried with the
12/29 snapshots as well, same issue)

#disklabel sd4
# /dev/rsd4c:
type: SCSI
disk: SCSI disk
label: Survivor 3.0
duid: 70568afde7f5a241
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 15542
total sectors: 249692160
boundstart: 64
boundend: 249682230
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
   a:        249682144               64  4.2BSD   2048 16384 12958
   c:        249692160                0  unused


curry:/root:#mount -v /dev/sd4a /mnt/usb0
mount_ffs: /dev/sd4a on /mnt/usb0: Permission denied

I don't see any kind of messages in the logs related to the error.

dmesg below

Thanks,

Thomas


OpenBSD 6.4-current (RAMDISK_CD) #528: Mon Dec 31 16:22:42 MST 2018
[hidden email]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 8250834944 (7868MB)
avail mem = 7996796928 (7626MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x9c7fd000 (65 entries)
bios0: vendor LENOVO version "JBET70WW (1.34 )" date 06/15/2018
bios0: LENOVO 20BWS0S900
acpi0 at bios0: rev 2
acpi0: tables DSDT FACP SLIC ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT
SSDT SSDT SSDT SSDT SSDT SSDT PCCT SSDT UEFI MSDM BATB FPDT UEFI DMAR
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, 2195.21 MHz, 06-3d-04
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu at mainbus0: not configured
cpu at mainbus0: not configured
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpicpu at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpitz at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
"PNP0A08" at acpi0 not configured
"PNP0B00" at acpi0 not configured
"PNP0C0A" at acpi0 not configured
"PNP0C0A" at acpi0 not configured
"ACPI0003" at acpi0 not configured
"LEN0068" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"INT340F" at acpi0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 5G Host" rev 0x09
vga1 at pci0 dev 2 function 0 "Intel HD Graphics 5500" rev 0x09
wsdisplay1 at vga1 mux 1: console (80x25, vt100 emulation)
"Intel Core 5G HD Audio" rev 0x09 at pci0 dev 3 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 9 Series xHCI" rev 0x03: msi,
xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel 9 Series MEI" rev 0x03 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel I218-LM" rev 0x03: msi, address
50:7b:9d:44:b3:4a
"Intel 9 Series HD Audio" rev 0x03 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel 9 Series PCIE" rev 0xe3: msi
pci1 at ppb0 bus 2
rtsx0 at pci1 dev 0 function 0 "Realtek RTS5227 Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
ppb1 at pci0 dev 28 function 1 "Intel 9 Series PCIE" rev 0xe3: msi
pci2 at ppb1 bus 3
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 7265" rev
0x59, msi
ehci0 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x03: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
"Intel 9 Series LPC" rev 0x03 at pci0 dev 31 function 0 not configured
ahci0 at pci0 dev 31 function 2 "Intel 9 Series AHCI" rev 0x03: msi,
AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, TOSHIBA THNSFJ25, JULA> SCSI3
0/direct fixed naa.500080d9104c5081
sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
"Intel 9 Series SMBus" rev 0x03 at pci0 dev 31 function 3 not configured
"Intel 9 Series Thermal" rev 0x03 at pci0 dev 31 function 6 not configured
isa0 at mainbus0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay1
uhub2 at uhub0 port 3 configuration 1 interface 0 "LENOVO Lenovo
ThinkPad Dock" rev 2.00/50.30 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 "DELL DELL USB
Keyboard" rev 1.10/1.05 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay1
umass0 at uhub2 port 3 configuration 1 interface 0 "SKYMEDI USB_DRIVE"
rev 2.00/2.00 addr 4
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SKYMEDI, USB_DRIVE, 1.00> SCSI2 0/direct
removable serial.151686280000000017C2
sd1: 118MB, 512 bytes/sector, 242304 sectors
uhub3 at uhub2 port 4 configuration 1 interface 0 "Lenovo Lenovo
ThinkPad Dock" rev 2.00/0.01 addr 5
uhidev1 at uhub3 port 1 configuration 1 interface 0 "Microsoft
Microsoft\M-. Nano Transceiver v2.0" rev 2.00/6.34 addr 6
uhidev1: iclass 3/1
ukbd1 at uhidev1
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay1
uhidev2 at uhub3 port 1 configuration 1 interface 1 "Microsoft
Microsoft\M-. Nano Transceiver v2.0" rev 2.00/6.34 addr 6
uhidev2: iclass 3/1, 28 report ids
uhid at uhidev2 reportid 18 not configured
uhid at uhidev2 reportid 22 not configured
uhid at uhidev2 reportid 23 not configured
uhid at uhidev2 reportid 26 not configured
uhid at uhidev2 reportid 28 not configured
uhidev3 at uhub3 port 1 configuration 1 interface 2 "Microsoft
Microsoft\M-. Nano Transceiver v2.0" rev 2.00/6.34 addr 6
uhidev3: iclass 3/0, 8 report ids
uhid at uhidev3 reportid 3 not configured
uhid at uhidev3 reportid 4 not configured
uhid at uhidev3 reportid 7 not configured
uhid at uhidev3 reportid 8 not configured
"vendor 0x8087 product 0x0a2a" rev 2.01/0.01 addr 7 at uhub0 port 7 not
configured
"J89F9L009 Integrated Camera" rev 2.00/0.17 addr 8 at uhub0 port 8 not
configured
uhub4 at uhub0 port 14 configuration 1 interface 0 "LENOVO Lenovo
ThinkPad Dock" rev 3.00/50.31 addr 9
uhub5 at uhub1 port 1 configuration 1 interface 0 "vendor 0x8087 product
0x8001" rev 2.00/0.03 addr 2
softraid0 at root
scsibus2 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
iwm0: could not read firmware iwm-7265-16 (error 2)
iwm0: failed to load init firmware
sd2 at scsibus2 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd2: 244190MB, 512 bytes/sector, 500102858 sectors
softraid0: volume sd2 is roaming, it used to be sd4, updating metadata
wskbd1: disconnecting from wsdisplay1
wskbd1 detached
ukbd0 detached
uhidev0 detached
syncing disks...
OpenBSD 6.4-current (GENERIC.MP) #550: Mon Dec 31 16:16:55 MST 2018
[hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8250834944 (7868MB)
avail mem = 7991275520 (7621MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0x9c7fd000 (65 entries)
bios0: vendor LENOVO version "JBET70WW (1.34 )" date 06/15/2018
bios0: LENOVO 20BWS0S900
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC ASF! HPET ECDT APIC MCFG SSDT SSDT SSDT
SSDT SSDT SSDT SSDT SSDT SSDT PCCT SSDT UEFI MSDM BATB FPDT UEFI DMAR
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP2(S4) XHCI(S3) EHC1(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpiec0 at acpi0
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, 2195.24 MHz, 06-3d-04
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, 2194.92 MHz, 06-3d-04
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, 2194.92 MHz, 06-3d-04
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz, 2194.93 MHz, 06-3d-04
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,RDSEED,ADX,SMAP,PT,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 40 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus -1 (EXP3)
acpicpu0 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@233 mwait.1@0x40), C2(200@148 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1
acpipwrres1 at acpi0: NVP3, resource for PEG_
acpipwrres2 at acpi0: NVP2, resource for PEG_
acpitz0 at acpi0: critical temperature is 128 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
acpicmos0 at acpi0
acpibat0 at acpi0: BAT0 model "45N1773" serial 20214 type LION oem "SANYO"
acpibat1 at acpi0: BAT1 model "45N1127" serial  1929 type LION oem "LGC"
acpiac0 at acpi0: AC unit online
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"INT340F" at acpi0 not configured
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
cpu0: Enhanced SpeedStep 2195 MHz: speeds: 2301, 2300, 2200, 2000, 1900,
1800, 1700, 1500, 1400, 1300, 1100, 1000, 900, 800, 600, 500 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 5G Host" rev 0x09
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 5500" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1920x1080, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
azalia0 at pci0 dev 3 function 0 "Intel Core 5G HD Audio" rev 0x09: msi
xhci0 at pci0 dev 20 function 0 "Intel 9 Series xHCI" rev 0x03: msi,
xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev
3.00/1.00 addr 1
"Intel 9 Series MEI" rev 0x03 at pci0 dev 22 function 0 not configured
em0 at pci0 dev 25 function 0 "Intel I218-LM" rev 0x03: msi, address
50:7b:9d:44:b3:4a
azalia1 at pci0 dev 27 function 0 "Intel 9 Series HD Audio" rev 0x03: msi
azalia1: codecs: Realtek ALC292
audio0 at azalia1
ppb0 at pci0 dev 28 function 0 "Intel 9 Series PCIE" rev 0xe3: msi
pci1 at ppb0 bus 2
rtsx0 at pci1 dev 0 function 0 "Realtek RTS5227 Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
ppb1 at pci0 dev 28 function 1 "Intel 9 Series PCIE" rev 0xe3: msi
pci2 at ppb1 bus 3
iwm0 at pci2 dev 0 function 0 "Intel Dual Band Wireless AC 7265" rev
0x59, msi
ehci0 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x03: apic 2 int 23
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev
2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel 9 Series LPC" rev 0x03
ahci0 at pci0 dev 31 function 2 "Intel 9 Series AHCI" rev 0x03: msi,
AHCI 1.3
ahci0: port 0: 6.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, TOSHIBA THNSFJ25, JULA> SCSI3
0/direct fixed naa.500080d9104c5081
sd0: 244198MB, 512 bytes/sector, 500118192 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 9 Series SMBus" rev 0x03: apic
2 int 18
iic0 at ichiic0
pchtemp0 at pci0 dev 31 function 6 "Intel 9 Series Thermal" rev 0x03
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics clickpad, firmware 8.1, 0x1e2b1 0x943300
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
Unclaimed register detected before reading register 0x23a0
uhub2 at uhub0 port 3 configuration 1 interface 0 "LENOVO Lenovo
ThinkPad Dock" rev 2.00/50.30 addr 2
uhidev0 at uhub2 port 2 configuration 1 interface 0 "DELL DELL USB
Keyboard" rev 1.10/1.05 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhub3 at uhub2 port 4 configuration 1 interface 0 "Lenovo Lenovo
ThinkPad Dock" rev 2.00/0.01 addr 4
uhidev1 at uhub3 port 1 configuration 1 interface 0 "Microsoft
Microsoft\M-. Nano Transceiver v2.0" rev 2.00/6.34 addr 5
uhidev1: iclass 3/1
ukbd1 at uhidev1: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev2 at uhub3 port 1 configuration 1 interface 1 "Microsoft
Microsoft\M-. Nano Transceiver v2.0" rev 2.00/6.34 addr 5
uhidev2: iclass 3/1, 28 report ids
uhid0 at uhidev2 reportid 18: input=0, output=0, feature=1
uhid1 at uhidev2 reportid 22: input=4, output=0, feature=0
uhid2 at uhidev2 reportid 23: input=0, output=0, feature=1
ums0 at uhidev2 reportid 26: 5 buttons, Z and W dir
wsmouse2 at ums0 mux 0
uhid3 at uhidev2 reportid 28: input=3, output=0, feature=0
uhidev3 at uhub3 port 1 configuration 1 interface 2 "Microsoft
Microsoft\M-. Nano Transceiver v2.0" rev 2.00/6.34 addr 5
uhidev3: iclass 3/0, 8 report ids
uhid4 at uhidev3 reportid 3: input=1, output=0, feature=0
uhid5 at uhidev3 reportid 4: input=1, output=0, feature=0
uhid6 at uhidev3 reportid 7: input=7, output=0, feature=0
uhid7 at uhidev3 reportid 8: input=1, output=0, feature=0
ugen0 at uhub0 port 7 "Intel Bluetooth" rev 2.01/0.01 addr 6
uvideo0 at uhub0 port 8 configuration 1 interface 0 "J89F9L009
Integrated Camera" rev 2.00/0.17 addr 7
video0 at uvideo0
uhub4 at uhub0 port 14 configuration 1 interface 0 "LENOVO Lenovo
ThinkPad Dock" rev 3.00/50.31 addr 8
uhub5 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching
Hub" rev 2.00/0.03 addr 2
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd1: 244190MB, 512 bytes/sector, 500102858 sectors
softraid0: volume sd1 is roaming, it used to be sd2, updating metadata
root on sd1a (4d26165d1d5a6119.a) swap on sd1b dump on sd1b
iwm0: could not read firmware iwm-7265-16 (error 2)
iwm0: failed to load init firmware


Reply | Threaded
Open this post in threaded view
|

Re: mount_ffs Permission denied as root

sharon s.

On 1/1/19 10:02 PM, Philip Guenther wrote:

> On Tue, Jan 1, 2019 at 6:27 PM [hidden email]
> <mailto:[hidden email]> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     I just did a new install of current AMD64 from the 12/31/2018
>     snapshot
>     and having some permission issues mounting a usb drive, as root. 
>     I have
>     been able to mount other usb drives just fine. (Also tried with the
>     12/29 snapshots as well, same issue)
>
>     #disklabel sd4
>
> ...
>
>     #                size           offset  fstype [fsize bsize   cpg]
>        a:        249682144               64  4.2BSD   2048 16384 12958
>        c:        249692160                0  unused
>
>     curry:/root:#mount -v /dev/sd4a /mnt/usb0
>     mount_ffs: /dev/sd4a on /mnt/usb0: Permission denied
>
>     I don't see any kind of messages in the logs related to the error.
>
>
>  What's the output of "fsck /dev/rsd4a" ?
>
> Philip Guenther
>
I had to reboot the machine related to this and the drive attached as a
different device but here's the output.

20190102-1407:root@curry:/root:#disklabel sd2
# /dev/rsd2c:
type: SCSI
disk: SCSI disk
label: Survivor 3.0
duid: 70568afde7f5a241
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 15542
total sectors: 249692160
boundstart: 64
boundend: 249682230
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
   a:        249682144               64  4.2BSD   2048 16384 12958
   c:        249692160                0  unused

Fsck shows clean, I noticed however the (NO WRITE) bit at the end.

20190102-1408:root@curry:/root:#fsck /dev/sd2a
** /dev/rsd2a (NO WRITE)
** File system is clean; not checking

I was able to get the drive mounted in read only mode after mounting one
of the directories, of course the most important one, gives a bad file
descriptor and doesn't recognize it as a directory.

20190102-1410:root@curry:/root:#mount -o ro /dev/sd2a /mnt/usb0
20190102-1410:root@curry:/root:#ls /mnt/usb0
root   sata0  tbisch usb0   usb1

20190102-1410:root@curry:/root:#ls -l /mnt/usb0
ls: tbisch: Bad file descriptor
total 16
drwx------  8 root  wheel   512 Dec 28 06:33 root
drwxr-xr-x  2 root  wheel   512 Dec 30 21:01 sata0
drwxr-xr-x  9 root  wheel  1024 Dec 31  1979 usb0
drwxr-xr-x  2 root  wheel   512 Dec 30 21:01 usb1

20190102-1410:root@curry:/root:#ls /mnt/usb0/tbisch/
ls: /mnt/usb0/tbisch/: Not a directory

I tried unmounting and doing a fsck -f -y /dev/sd4a and it shows lots of
errors, but doesn't give y for the answer as I thought the -y flag was
supposed to do:

20190102-1413:root@curry:/root:#fsck -f -y /dev/sd2a
** /dev/rsd2a (NO WRITE)
** File system is already clean
** Last Mounted on /mnt/usb2
** Phase 1 - Check Blocks and Sizes
PARTIALLY ALLOCATED INODE I=25984
CLEAR? no

UNKNOWN FILE TYPE I=25985
CLEAR? no

UNKNOWN FILE TYPE I=25986
CLEAR? no

UNKNOWN FILE TYPE I=25987
CLEAR? no

UNKNOWN FILE TYPE I=25988
CLEAR? no

UNKNOWN FILE TYPE I=25989
CLEAR? no

UNKNOWN FILE TYPE I=25990
CLEAR? no

UNKNOWN FILE TYPE I=25991
CLEAR? no

UNKNOWN FILE TYPE I=25992
CLEAR? no

UNKNOWN FILE TYPE I=25993
CLEAR? no

UNKNOWN FILE TYPE I=25994
CLEAR? no

UNKNOWN FILE TYPE I=25995
CLEAR? no

UNKNOWN FILE TYPE I=25996
CLEAR? no

UNKNOWN FILE TYPE I=25997
CLEAR? no

PARTIALLY ALLOCATED INODE I=25998
CLEAR? no

UNKNOWN FILE TYPE I=25999
CLEAR? no

PARTIALLY ALLOCATED INODE I=26000
CLEAR? no

UNKNOWN FILE TYPE I=26001
CLEAR? no

UNKNOWN FILE TYPE I=26002
CLEAR? no

UNKNOWN FILE TYPE I=26003
CLEAR? no

UNKNOWN FILE TYPE I=26004
CLEAR? no

UNKNOWN FILE TYPE I=26005
CLEAR? no

UNKNOWN FILE TYPE I=26006
CLEAR? no

UNKNOWN FILE TYPE I=26007
CLEAR? no

UNKNOWN FILE TYPE I=26008
CLEAR? no
............  and it keeps going.


I unmounted the drive and tried to create an image of the drive, but it
fails

20190102-1435:root@curry:/root:#time dd if=/dev/rsd2c
of=/root/corsair.iso bs=1k
dd: /dev/rsd2c: Input/output error
15958016+0 records in
15958016+0 records out
16341008384 bytes transferred in 7313.789 secs (2234274 bytes/sec)
   122m03.94s real     0m16.54s user     6m36.66s system

After this doing a disklabel fails:

#disklabel sd2
disklabel: ioctl DIOCGDINFO: Input/output error

Additionally I see the following in the /var/log/messages.

Jan  2 13:52:52 curry /bsd: usb_insert_transfer: xfer=0xffffff025c1a35a0
not free



Reply | Threaded
Open this post in threaded view
|

Re: mount_ffs Permission denied as root

Marcus MERIGHI
Hello,

[hidden email] ([hidden email]), 2019.01.03 (Thu) 01:21 (CET):
> On 1/1/19 10:02 PM, Philip Guenther wrote:
> > On Tue, Jan 1, 2019 at 6:27 PM [hidden email] <mailto:[hidden email]>
> > <[hidden email] <mailto:[hidden email]>> wrote:

[snip]

> I unmounted the drive and tried to create an image of the drive, but it
> fails
>
> 20190102-1435:root@curry:/root:#time dd if=/dev/rsd2c of=/root/corsair.iso
> bs=1k
> dd: /dev/rsd2c: Input/output error
> 15958016+0 records in
> 15958016+0 records out
> 16341008384 bytes transferred in 7313.789 secs (2234274 bytes/sec)
>   122m03.94s real     0m16.54s user     6m36.66s system

To make dd(1) continue after such errors read up on these operands:

conv=noerror(,sync)

Marcus

Reply | Threaded
Open this post in threaded view
|

Re: mount_ffs Permission denied as root

sharon s.
In reply to this post by sharon s.

On 1/1/19 11:53 PM, Otto Moerbeek wrote:

> On Tue, Jan 01, 2019 at 07:25:14PM -0700, [hidden email] wrote:
>
>> I just did a new install of current AMD64 from the 12/31/2018 snapshot and
>> having some permission issues mounting a usb drive, as root.  I have been
>> able to mount other usb drives just fine. (Also tried with the 12/29
>> snapshots as well, same issue)
>>
>> #disklabel sd4
>> # /dev/rsd4c:
>> type: SCSI
>> disk: SCSI disk
>> label: Survivor 3.0
>> duid: 70568afde7f5a241
>> flags:
>> bytes/sector: 512
>> sectors/track: 63
>> tracks/cylinder: 255
>> sectors/cylinder: 16065
>> cylinders: 15542
>> total sectors: 249692160
>> boundstart: 64
>> boundend: 249682230
>> drivedata: 0
>>
>> 16 partitions:
>> #                size           offset  fstype [fsize bsize   cpg]
>>    a:        249682144               64  4.2BSD   2048 16384 12958
>>    c:        249692160                0  unused
>>
>>
>> curry:/root:#mount -v /dev/sd4a /mnt/usb0
>> mount_ffs: /dev/sd4a on /mnt/usb0: Permission denied
>>
>> I don't see any kind of messages in the logs related to the error.
> device r/o switch is set to r/o?
> /mnt/usb0 is r/o?
>
> If that's not it, please ktrace the command and show kdump
>
> -Otto
Hi Otto,

There is no hw switch on this usb drive, I'm not sure why it's showing
up as read only.

I attached a ktrace for both the disklabel command as well as an ls on
the drive after I was able to mount it read only.

Thanks,

Thomas


ktrace-ls-mounted-ro.out (54K) Download Attachment
ktrace-disklabel.out (48K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: mount_ffs Permission denied as root

OpenBSD lists
In reply to this post by sharon s.
On 1/2/2019 4:21 PM, [hidden email] wrote:

>
> On 1/1/19 10:02 PM, Philip Guenther wrote:
>> On Tue, Jan 1, 2019 at 6:27 PM [hidden email]
>> <mailto:[hidden email]> <[hidden email] <mailto:[hidden email]>>
>> wrote:
>>
>>     I just did a new install of current AMD64 from the 12/31/2018
>>     snapshot
>>     and having some permission issues mounting a usb drive, as root.
>>     I have
>>     been able to mount other usb drives just fine. (Also tried with the
>>     12/29 snapshots as well, same issue)
>>
>>     #disklabel sd4
>>
>> ...
>>
>>     #                size           offset  fstype [fsize bsize   cpg]
>>        a:        249682144               64  4.2BSD   2048 16384 12958
>>        c:        249692160                0  unused
>>
>>     curry:/root:#mount -v /dev/sd4a /mnt/usb0
>>     mount_ffs: /dev/sd4a on /mnt/usb0: Permission denied
>>
>>     I don't see any kind of messages in the logs related to the error.
>>
>>
>>  What's the output of "fsck /dev/rsd4a" ?
>>
>> Philip Guenther
>>
> I had to reboot the machine related to this and the drive attached as a
> different device but here's the output.
>
> 20190102-1407:root@curry:/root:#disklabel sd2
> # /dev/rsd2c:
> type: SCSI
> disk: SCSI disk
> label: Survivor 3.0
> duid: 70568afde7f5a241
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 15542
> total sectors: 249692160
> boundstart: 64
> boundend: 249682230
> drivedata: 0
>
> 16 partitions:
> #                size           offset  fstype [fsize bsize   cpg]
>    a:        249682144               64  4.2BSD   2048 16384 12958
>    c:        249692160                0  unused
>
> Fsck shows clean, I noticed however the (NO WRITE) bit at the end.
>
> 20190102-1408:root@curry:/root:#fsck /dev/sd2a
> ** /dev/rsd2a (NO WRITE)
> ** File system is clean; not checking
>
> I was able to get the drive mounted in read only mode after mounting one
> of the directories, of course the most important one, gives a bad file
> descriptor and doesn't recognize it as a directory.
>
> 20190102-1410:root@curry:/root:#mount -o ro /dev/sd2a /mnt/usb0
> 20190102-1410:root@curry:/root:#ls /mnt/usb0
> root   sata0  tbisch usb0   usb1
>
> 20190102-1410:root@curry:/root:#ls -l /mnt/usb0
> ls: tbisch: Bad file descriptor
> total 16
> drwx------  8 root  wheel   512 Dec 28 06:33 root
> drwxr-xr-x  2 root  wheel   512 Dec 30 21:01 sata0
> drwxr-xr-x  9 root  wheel  1024 Dec 31  1979 usb0
> drwxr-xr-x  2 root  wheel   512 Dec 30 21:01 usb1
>
> 20190102-1410:root@curry:/root:#ls /mnt/usb0/tbisch/
> ls: /mnt/usb0/tbisch/: Not a directory
>
> I tried unmounting and doing a fsck -f -y /dev/sd4a and it shows lots of
> errors, but doesn't give y for the answer as I thought the -y flag was
> supposed to do:
>
> 20190102-1413:root@curry:/root:#fsck -f -y /dev/sd2a
> ** /dev/rsd2a (NO WRITE)
> ** File system is already clean
> ** Last Mounted on /mnt/usb2
> ** Phase 1 - Check Blocks and Sizes
> PARTIALLY ALLOCATED INODE I=25984
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25985
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25986
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25987
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25988
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25989
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25990
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25991
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25992
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25993
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25994
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25995
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25996
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25997
> CLEAR? no
>
> PARTIALLY ALLOCATED INODE I=25998
> CLEAR? no
>
> UNKNOWN FILE TYPE I=25999
> CLEAR? no
>
> PARTIALLY ALLOCATED INODE I=26000
> CLEAR? no
>
> UNKNOWN FILE TYPE I=26001
> CLEAR? no
>
> UNKNOWN FILE TYPE I=26002
> CLEAR? no
>
> UNKNOWN FILE TYPE I=26003
> CLEAR? no
>
> UNKNOWN FILE TYPE I=26004
> CLEAR? no
>
> UNKNOWN FILE TYPE I=26005
> CLEAR? no
>
> UNKNOWN FILE TYPE I=26006
> CLEAR? no
>
> UNKNOWN FILE TYPE I=26007
> CLEAR? no
>
> UNKNOWN FILE TYPE I=26008
> CLEAR? no
> ............  and it keeps going.
>
>
> I unmounted the drive and tried to create an image of the drive, but it
> fails
>
> 20190102-1435:root@curry:/root:#time dd if=/dev/rsd2c
> of=/root/corsair.iso bs=1k
> dd: /dev/rsd2c: Input/output error
> 15958016+0 records in
> 15958016+0 records out
> 16341008384 bytes transferred in 7313.789 secs (2234274 bytes/sec)
>    122m03.94s real     0m16.54s user     6m36.66s system
>
> After this doing a disklabel fails:
>
> #disklabel sd2
> disklabel: ioctl DIOCGDINFO: Input/output error
>
> Additionally I see the following in the /var/log/messages.
>
> Jan  2 13:52:52 curry /bsd: usb_insert_transfer: xfer=0xffffff025c1a35a0
> not free
>
>
>

Does it work when you revert back to the last version of OpenBSD it
mounted properly?  There is a slight possibility that a code change has
made OpenBSD unable to communicate properly with the controller (like
the controller is expecting the OS to do the wear-leveling remapping or
something), but its far more likely that the device is broken especially
since OpenBSD seems to be able to read the partition table, but only
parts of the file table and only a portion of your sectors.

The most likely scenario here is that your USB drive is broken and useless.