Re: can not use USB drive with recent snapshot
On Wednesday 13 May 2009 11.06.30 you wrote: On Wed, May 13, 2009 at 10:21:57AM +0200, LEVAI Daniel wrote: On Wednesday 13 May 2009 09.43.40 you wrote: On Wed, May 13, 2009 at 09:04:36AM +0200, LEVAI Daniel wrote: Hi! With a May 12 snapshot, I can no longer use my USB thumb-drive. OpenBSD doesn't recognize any partitions on the drive, while on other OSes and with a previous snapshot it works fine. Here is dmesg.boot and the output (with a weird message) when I plug in the drive. Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. Here is the fdisk output and some more. I hope it's useful. Likely a newer snap will have this fixed. Yes, thank you, yesterday's (May 13) snapshot fixed it. Daniel -- LIVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Re: can not use USB drive with recent snapshot
Otto Moerbeek wrote Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. This thing seems to be aimed at reading my mind. Not what is IN my mind, but what SHOULD BE in my mind. Loverly if you can pull it off. Upgrade USB stick (sdb) on Lenovo T60 gives: (there may be typos) Available disks are: sd0 sd1. Which one is the root disk? (or 'done') [sd0] sd1 Root filesystem? [sd1a] Checking root filesystem (fsck -fp /dev/sd1a)...OK. Mounting root file system (mount -o ro /dev/sd1a /mnt)...OK. DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 192.168.2.1 (00:11:50:72:b5:ac) bound to 192.168.2.12 -- renewal in 905174339 seconds. Do you want to do any manual network configuration? [no] Force checking of non-root filesystems? [yes] no fsck -p /dev/sd0a...1 is after 0, ok 2 is after 0, ok 0 is before 1, ok 2 is after 1, ok 0 is before 2, ok 1 is before 2, ok 1 is after 0, ok 2 is after 0, ok 0 is before 1, ok 2 is after 1, ok 0 is before 2, ok 1 is before 2, ok FAILED. You must fsck /dev/sd0a manually. # Cause: upgrade on T60 where sd1 is OpenBSD USB flash drive and sd0 is the NTFS hard drive. Install was on T41 where sd0 is OpenBSD flash drive and wd0 is the NTFS hard drive. Something got confused. Understandably. Holds together remarkably well, considering! Looks like I need TWO flash drives: for sd0a and for sd1a. following are dmesg fdisk and disklabel for T60 and T41 T60 dmesg OpenBSD 4.5-current (RAMDISK_CD) #148: Wed May 13 12:44:58 MDT 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/RAMDISK_CD cpu0: Intel(R) Core(TM)2 CPU T5500 @ 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,PSE36,CFLU SH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,TM2,CX16,xT PR real mem = 1063677952 (1014MB) avail mem = 1021804544 (974MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 09/29/06, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS rev. 2.4 @ 0xe0010 (68 entries) bios0: vendor LENOVO version 79ETC1WW (2.01 ) date 09/29/2006 bios0: LENOVO 1953DDU acpi0 at bios0: rev 2 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT SSDT SSDT acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: apic clock running at 166MHz cpu at mainbus0: not configured ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 2, remapped to apid 1 acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus 4 (EXP2) acpiprt5 at acpi0: bus 12 (EXP3) acpiprt6 at acpi0: bus 21 (PCI1) bios0: ROM list: 0xc/0xea00! 0xcf000/0x1000 0xd/0x1000 0xdc000/0x4000! 0xe/0x1! pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03 vga1 at pci0 dev 2 function 0 Intel 82945GM Video rev 0x03 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) Intel 82945GM Video rev 0x03 at pci0 dev 2 function 1 not configured Intel 82801GB HD Audio rev 0x02 at pci0 dev 27 function 0 not configured ppb0 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 20 (irq 11) pci1 at ppb0 bus 2 em0 at pci1 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 1 int 16 (irq 11), address 00:15:58:7d:ad:11 ppb1 at pci0 dev 28 function 1 Intel 82801GB PCIE rev 0x02: apic 1 int 21 (irq 11) pci2 at ppb1 bus 3 wpi0 at pci2 dev 0 function 0 Intel PRO/Wireless 3945ABG rev 0x02: apic 1 int 17 (irq 11), MoW1, address 00:18:de:b0:54:13 ppb2 at pci0 dev 28 function 2 Intel 82801GB PCIE rev 0x02: apic 1 int 22 (irq 11) pci3 at ppb2 bus 4 ppb3 at pci0 dev 28 function 3 Intel 82801GB PCIE rev 0x02: apic 1 int 23 (irq 11) pci4 at ppb3 bus 12 uhci0 at pci0 dev 29 function 0 Intel 82801GB USB rev 0x02: apic 1 int 16 (irq 11) uhci1 at pci0 dev 29 function 1 Intel 82801GB USB rev 0x02: apic 1 int 17 (irq 11) uhci2 at pci0 dev 29 function 2 Intel 82801GB USB rev 0x02: apic 1 int 18 (irq 11) uhci3 at pci0 dev 29 function 3 Intel 82801GB USB rev 0x02: apic 1 int 19 (irq 11) ehci0 at pci0 dev 29 function 7 Intel 82801GB USB rev 0x02: apic 1 int 19 (irq 11) usb0 at ehci0: USB revision 2.0 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1 ppb4 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xe2 pci5 at ppb4 bus 21 cbb0 at pci5 dev 0 function 0 TI PCI1510 CardBus rev 0x00: apic 1 int 16 (irq 11) cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 22 device 0 cacheline 0x8, lattimer 0xb0 pcmcia0 at cardslot0 ichpcib0 at pci0 dev 31 function 0 Intel 82801GBM LPC rev 0x02: PM disabled pciide0 at pci0 dev 31 function 1 Intel 82801GB IDE rev 0x02: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility atapiscsi0 at pciide0 channel 0 drive 0 scsibus0 at
Re: can not use USB drive with recent snapshot
On Thu, 14 May 2009 18:01:25 -0500 Tony Abernethy t...@servacorp.com wrote: Otto Moerbeek wrote Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. This thing seems to be aimed at reading my mind. Not what is IN my mind, but what SHOULD BE in my mind. Loverly if you can pull it off. Upgrade USB stick (sdb) on Lenovo T60 gives: (there may be typos) Available disks are: sd0 sd1. Which one is the root disk? (or 'done') [sd0] sd1 Root filesystem? [sd1a] Checking root filesystem (fsck -fp /dev/sd1a)...OK. Mounting root file system (mount -o ro /dev/sd1a /mnt)...OK. DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 192.168.2.1 (00:11:50:72:b5:ac) bound to 192.168.2.12 -- renewal in 905174339 seconds. Do you want to do any manual network configuration? [no] Force checking of non-root filesystems? [yes] no fsck -p /dev/sd0a...1 is after 0, ok 2 is after 0, ok 0 is before 1, ok 2 is after 1, ok 0 is before 2, ok 1 is before 2, ok 1 is after 0, ok 2 is after 0, ok 0 is before 1, ok 2 is after 1, ok 0 is before 2, ok 1 is before 2, ok FAILED. You must fsck /dev/sd0a manually. # Cause: upgrade on T60 where sd1 is OpenBSD USB flash drive and sd0 is the NTFS hard drive. Install was on T41 where sd0 is OpenBSD flash drive and wd0 is the NTFS hard drive. Something got confused. Understandably. Holds together remarkably well, considering! Looks like I need TWO flash drives: for sd0a and for sd1a. uhm, just guessing, but ... so the fstab on your usb stick references sd0, but the stick is now actually connected as sd1? the upgrade script uses the info from the fstab on the rootfile system selected and tries to find those partitions on the wrong disk? edit the fstab and be happy? - Robert
Re: can not use USB drive with recent snapshot
Robert wrote: On Thu, 14 May 2009 18:01:25 -0500 Tony Abernethy t...@servacorp.com wrote: Otto Moerbeek wrote Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. This thing seems to be aimed at reading my mind. Not what is IN my mind, but what SHOULD BE in my mind. Loverly if you can pull it off. Upgrade USB stick (sdb) on Lenovo T60 gives: (there may be typos) Available disks are: sd0 sd1. Which one is the root disk? (or 'done') [sd0] sd1 Root filesystem? [sd1a] Checking root filesystem (fsck -fp /dev/sd1a)...OK. Mounting root file system (mount -o ro /dev/sd1a /mnt)...OK. DHCPREQUEST on em0 to 255.255.255.255 port 67 DHCPACK from 192.168.2.1 (00:11:50:72:b5:ac) bound to 192.168.2.12 -- renewal in 905174339 seconds. Do you want to do any manual network configuration? [no] Force checking of non-root filesystems? [yes] no fsck -p /dev/sd0a...1 is after 0, ok 2 is after 0, ok 0 is before 1, ok 2 is after 1, ok 0 is before 2, ok 1 is before 2, ok 1 is after 0, ok 2 is after 0, ok 0 is before 1, ok 2 is after 1, ok 0 is before 2, ok 1 is before 2, ok FAILED. You must fsck /dev/sd0a manually. # Cause: upgrade on T60 where sd1 is OpenBSD USB flash drive and sd0 is the NTFS hard drive. Install was on T41 where sd0 is OpenBSD flash drive and wd0 is the NTFS hard drive. Something got confused. Understandably. Holds together remarkably well, considering! Looks like I need TWO flash drives: for sd0a and for sd1a. uhm, just guessing, but ... so the fstab on your usb stick references sd0, but the stick is now actually connected as sd1? the upgrade script uses the info from the fstab on the rootfile system selected and tries to find those partitions on the wrong disk? edit the fstab and be happy? - Robert Sounds like on-target guess. Also can boot bsd.rd and fixup if wrong flash drive for the laptop. I was happy (even) before. To actually test a system, watch how it tries to cope when somebody rearranged the furniture ;-)
Re: can not use USB drive with recent snapshot
On Wed, May 13, 2009 at 09:04:36AM +0200, LEVAI Daniel wrote: Hi! With a May 12 snapshot, I can no longer use my USB thumb-drive. OpenBSD doesn't recognize any partitions on the drive, while on other OSes and with a previous snapshot it works fine. Here is dmesg.boot and the output (with a weird message) when I plug in the drive. Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. -Otto dmesg.boot: OpenBSD 4.5-current (GENERIC.MP) #38: Tue May 12 16:15:34 MDT 2009 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP cpu0: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR real mem = 1072066560 (1022MB) avail mem = 1028272128 (980MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 08/02/06, BIOS32 rev. 0 @ 0xfd6b0, SMBIOS rev. 2.4 @ 0xe0010 (68 entries) bios0: vendor LENOVO version 79ET66WW (1.10 ) date 08/02/2006 bios0: LENOVO 2007FRG acpi0 at bios0: rev 2 acpi0: tables DSDT FACP SSDT ECDT TCPA APIC MCFG HPET BOOT SSDT SSDT acpi0: wakeup devices LID_(S3) SLPB(S3) LURT(S3) DURT(S3) EXP0(S4) EXP1(S4) EXP2(S4) EXP3(S4) PCI1(S4) USB0(S3) USB1(S3) USB2(S3) USB7(S3) HDEF(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: Genuine Intel(R) CPU T2400 @ 1.83GHz (GenuineIntel 686-class) 1.83 GHz cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,A CPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins ioapic0: misconfigured as apic 2, remapped to apid 1 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 1 (AGP_) acpiprt2 at acpi0: bus 2 (EXP0) acpiprt3 at acpi0: bus 3 (EXP1) acpiprt4 at acpi0: bus 4 (EXP2) acpiprt5 at acpi0: bus 12 (EXP3) acpiprt6 at acpi0: bus 21 (PCI1) acpiec0 at acpi0 acpicpu0 at acpi0: C3, C2 acpicpu1 at acpi0: C3, C2 acpitz0 at acpi0: critical temperature 127 degC acpitz1 at acpi0: critical temperature 99 degC acpibtn0 at acpi0: LID_ acpibtn1 at acpi0: SLPB acpibat0 at acpi0: BAT0 model 42T4511 serial 21826 type LION oem SANYO acpibat1 at acpi0: BAT1 not present acpiac0 at acpi0: AC unit offline acpithinkpad0 at acpi0 acpidock at acpi0 not configured acpivideo at acpi0 not configured acpivideo at acpi0 not configured bios0: ROM list: 0xc/0xfe00 0xd/0x1000 0xd1000/0x1000 0xdc000/0x4000! 0xe/0x1 cpu0: unknown Enhanced SpeedStep CPU, msr 0x06130b2c06000613 cpu0: using only highest and lowest power states cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 1833, 1000 MHz pci0 at mainbus0 bus 0: configuration mode 1 (bios) extent `pciio' (0x0 - 0x), flags=0 0x1800 - 0x188f 0x18a8 - 0x18cf 0x18e0 - 0x18ff 0x2000 - 0xdfff 0x1 - 0x extent `pcimem' (0x0 - 0x), flags=0 0x0 - 0xfff 0x2000 - 0x9 0xd2000 - 0xd3fff 0xdc000 - 0x3fff 0xd800 - 0xee1f 0xee40 - 0xee4047ff 0xf000 - 0xf3ff 0xfec0 - 0xfec0 0xfed0 - 0xfed003ff 0xfed14000 - 0xfed19fff 0xfed1c000 - 0xfed8 0xfee0 - 0xfee00fff 0xff80 - 0x pchb0 at pci0 dev 0 function 0 Intel 82945GM Host rev 0x03 ppb0 at pci0 dev 1 function 0 Intel 82945GM PCIE rev 0x03: apic 1 int 16 (irq 11) pci1 at ppb0 bus 1 extent `ppb0 pciio' (0x0 - 0x), flags=0 0x0 - 0x20ff 0x3000 - 0x extent `ppb0 pcimem' (0x0 - 0x), flags=0 0x0 - 0xee10 0xee20 - 0x vga1 at pci1 dev 0 function 0 ATI Radeon Mobility X1400 rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) radeondrm0 at vga1: apic 1 int 16 (irq 11) drm0 at radeondrm0 azalia0 at pci0 dev 27 function 0 Intel 82801GB HD Audio rev 0x02: apic 1 int 17 (irq 11) azalia0: RIRB time out azalia0: codecs: Analog Devices AD1981HD, 0x/0x, using Analog Devices AD1981HD azalia0: RIRB time out audio0 at azalia0 ppb1 at pci0 dev 28 function 0 Intel 82801GB PCIE rev 0x02: apic 1 int 20 (irq 11) pci2 at ppb1 bus 2 extent `ppb1 pciio' (0x0 - 0x), flags=0 0x0 - 0x301f 0x4000 - 0x extent `ppb1 pcimem' (0x0 - 0x), flags=0 0x0 - 0xee01 0xee10 - 0x em0 at pci2 dev 0 function 0 Intel PRO/1000MT (82573L) rev 0x00: apic 1 int 16 (irq 11), address 00:16:41:aa:d2:70 ppb2 at pci0 dev 28 function 1 Intel
Re: can not use USB drive with recent snapshot
On Wednesday 13 May 2009 09.43.40 you wrote: On Wed, May 13, 2009 at 09:04:36AM +0200, LEVAI Daniel wrote: Hi! With a May 12 snapshot, I can no longer use my USB thumb-drive. OpenBSD doesn't recognize any partitions on the drive, while on other OSes and with a previous snapshot it works fine. Here is dmesg.boot and the output (with a weird message) when I plug in the drive. Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. Here is the fdisk output and some more. I hope it's useful. $ sudo fdisk /dev/rsd1c Disk: /dev/rsd1cgeometry: 243/255/63 [3915776 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] - -- 0: 0C 0 0 63 -241 232 3 [ 62: 3886222 ] Win95 FAT32L 1: 83241 232 4 -243 149 10 [ 3886284: 26908 ] Linux files* 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused $ sudo disklabel /dev/rsd1c disklabel: warning, DOS partition table with no valid OpenBSD partition # /dev/rsd1c: type: SCSI disk: SCSI disk label: GOODDRIVEFR flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 243 total sectors: 3915776 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] c: 39157760 unused $ sudo mount /dev/sd1i /mnt/tmp mount_ffs: /dev/sd1i on /mnt/tmp: Device not configured $ sudo mount /dev/sd1j /mnt/tmp mount_ffs: /dev/sd1j on /mnt/tmp: Device not configured Daniel -- LIVAI Daniel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1
Re: can not use USB drive with recent snapshot
On Wed, May 13, 2009 at 10:21:57AM +0200, LEVAI Daniel wrote: On Wednesday 13 May 2009 09.43.40 you wrote: On Wed, May 13, 2009 at 09:04:36AM +0200, LEVAI Daniel wrote: Hi! With a May 12 snapshot, I can no longer use my USB thumb-drive. OpenBSD doesn't recognize any partitions on the drive, while on other OSes and with a previous snapshot it works fine. Here is dmesg.boot and the output (with a weird message) when I plug in the drive. Thanks for the report, but please also provide the output of fdisk. We are working on a more strict mbr validation, but this is all quite tricky and will take some iterations to get right. Here is the fdisk output and some more. I hope it's useful. Likely a newer snap will have this fixed. -Otto $ sudo fdisk /dev/rsd1c Disk: /dev/rsd1cgeometry: 243/255/63 [3915776 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: id C H S - C H S [ start:size ] --- 0: 0C 0 0 63 -241 232 3 [ 62: 3886222 ] Win95 FAT32L 1: 83241 232 4 -243 149 10 [ 3886284: 26908 ] Linux files* 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused $ sudo disklabel /dev/rsd1c disklabel: warning, DOS partition table with no valid OpenBSD partition # /dev/rsd1c: type: SCSI disk: SCSI disk label: GOODDRIVEFR flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 243 total sectors: 3915776 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] c: 39157760 unused $ sudo mount /dev/sd1i /mnt/tmp mount_ffs: /dev/sd1i on /mnt/tmp: Device not configured $ sudo mount /dev/sd1j /mnt/tmp mount_ffs: /dev/sd1j on /mnt/tmp: Device not configured Daniel -- L?VAI D?niel PGP key ID = 0x4AC0A4B1 Key fingerprint = D037 03B9 C12D D338 4412 2D83 1373 917A 4AC0 A4B1