Problem booting 5.4

Rainer Duffner rduffner at ip-tech.ch
Thu May 12 09:37:05 PDT 2005


Hi,

I installed FreeBSD5.4 on a server with a 3ware 7006-2 controller and 
two 120GB disks as RAID1
I cannot boot this install. (I get some kind of panic or endless loop, 
but the display is re-painted so fast I cannot read it).
What I *can* do is insert my SuSE9.2-pro cd1, boot from that and at the 
grub-menu say "boot from harddisk".
That boots FreeBSD.

On advice from IRC, I tried:
# boot0cfg -B twed0

-which leads to this output

boot0cfg: write_mbr: /dev/twed0: No such file or directory

Of course, the device is there:
# ll /dev/tw*
crw-------  1 root  operator  240,   0 May 12 18:15 /dev/twe0
crw-r-----  1 root  operator    4,  12 May 12 18:15 /dev/twed0
crw-r-----  1 root  operator    4,  14 May 12 18:15 /dev/twed0s1
crw-r-----  1 root  operator    4,  15 May 12 20:15 /dev/twed0s1a
crw-r-----  1 root  operator    4,  16 May 12 18:15 /dev/twed0s1b
crw-r-----  1 root  operator    4,  17 May 12 18:15 /dev/twed0s1c
crw-r-----  1 root  operator    4,  18 May 12 20:15 /dev/twed0s1d
crw-r-----  1 root  operator    4,  19 May 12 20:15 /dev/twed0s1e
crw-r-----  1 root  operator    4,  20 May 12 20:15 /dev/twed0s1f

I tried ktrace'ing it, and got that:
...
   484 boot0cfg RET   read 4096/0x1000
   484 boot0cfg CALL  mmap(0,0xda000,0x5,0x20002,0x3,0,0,0)
   484 boot0cfg RET   mmap 671576064/0x28077000
   484 boot0cfg CALL  mprotect(0x28137000,0x1000,0x7)
   484 boot0cfg RET   mprotect 0
   484 boot0cfg CALL  mprotect(0x28137000,0x1000,0x5)
   484 boot0cfg RET   mprotect 0
   484 boot0cfg CALL  mmap(0x28138000,0x5000,0x3,0x12,0x3,0,0xc0000,0)
   484 boot0cfg RET   mmap 672366592/0x28138000
   484 boot0cfg CALL  mmap(0x2813d000,0x14000,0x3,0x1012,0xffffffff,0,0,0)
   484 boot0cfg RET   mmap 672387072/0x2813d000
   484 boot0cfg CALL  close(0x3)
   484 boot0cfg RET   close 0
   484 boot0cfg CALL  mmap(0,0x158,0x3,0x1000,0xffffffff,0,0,0)
   484 boot0cfg RET   mmap 672468992/0x28151000
   484 boot0cfg CALL  munmap(0x28151000,0x158)
   484 boot0cfg RET   munmap 0
   484 boot0cfg CALL  mprotect(0x28077000,0xc1000,0x7)
   484 boot0cfg RET   mprotect 0
   484 boot0cfg CALL  mmap(0,0x5608,0x3,0x1000,0xffffffff,0,0,0)
   484 boot0cfg RET   mmap 672468992/0x28151000
   484 boot0cfg CALL  munmap(0x28151000,0x5608)
   484 boot0cfg RET   munmap 0
   484 boot0cfg CALL  mprotect(0x28077000,0xc1000,0x5)
   484 boot0cfg RET   mprotect 0
   484 boot0cfg CALL  sigaction(0x4,0xbfbfebb8,0xbfbfeb98)
   484 boot0cfg RET   sigaction 0
   484 boot0cfg CALL  sigprocmask(0x1,0,0x2806aafc)
   484 boot0cfg RET   sigprocmask 0
   484 boot0cfg CALL  sigaction(0x4,0xbfbfeb98,0)
   484 boot0cfg RET   sigaction 0
   484 boot0cfg CALL  sysarch(0x1,0xbfbfebc8)
   484 boot0cfg RET   sysarch 17/0x11
   484 boot0cfg CALL  sigprocmask(0x1,0x2806aaa0,0xbfbfebc8)
   484 boot0cfg RET   sigprocmask 0
   484 boot0cfg CALL  sigprocmask(0x3,0x2806aab0,0)
   484 boot0cfg RET   sigprocmask 0
   484 boot0cfg CALL  readlink(0x2813105b,0xbfbfe700,0x3f)
   484 boot0cfg NAMI  "/etc/malloc.conf"
   484 boot0cfg RET   readlink -1 errno 2 No such file or directory
   484 boot0cfg CALL  issetugid
   484 boot0cfg RET   issetugid 0
   484 boot0cfg CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
   484 boot0cfg RET   mmap 672468992/0x28151000
   484 boot0cfg CALL  break(0x804c000)
   484 boot0cfg RET   break 0
   484 boot0cfg CALL  break(0x804d000)
   484 boot0cfg RET   break 0
   484 boot0cfg CALL  open(0x804c030,0,0)
   484 boot0cfg NAMI  "/dev/twed0"
   484 boot0cfg RET   open 3
   484 boot0cfg CALL  read(0x3,0xbfbfe9f0,0x200)
   484 boot0cfg GIO   fd 3 read 512 bytes
       0x0000 fc31 c08e c08e d88e d0bc 007c be1a 7cbf 1a06 b9e6 01f3 
a4e9 008a 31f6 bbbe 07b1 0438 2f74 087f  
|.1.........|..|...........1......8/t..|
       0x0026 7585 f675 7189 de80 c310 e2ef 85f6 7502 cd18 80fa 8072 
0b8a 3675 0480 c680 38f2 7202 8a14 89e7  
|u..uq.........u......r..6u....8.r.....|
       0x004c 8a74 018b 4c02 bb00 7cf6 06bd 0780 742d 5153 bbaa 55b4 
41cd 1372 2081 fb55 aa75 1af6 c101 7415  |.t..L...|.....t-QS..U.A..r 
..U.u....t.|
       0x0072 5b66 6a00 66ff 7408 0653 6a01 6a10 89e6 b800 42eb 055b 
59b8 0102 cd13 89fc 720f 81bf fe01 55aa  
|[fj.f.t..Sj.j.....B..[Y.......r.....U.|
       0x0098 750c ffe3 beb9 06eb 11be d106 eb0c bef0 06eb 07bb 0700 
b40e cd10 ac84 c075 f4eb fe49 6e76 616c  
|u............................u...Inval|
       0x00be 6964 2070 6172 7469 7469 6f6e 2074 6162 6c65 0045 7272 
6f72 206c 6f61 6469 6e67 206f 7065 7261  |id partition table.Error 
loading opera|
       0x00e4 7469 6e67 2073 7973 7465 6d00 4d69 7373 696e 6720 6f70 
6572 6174 696e 6720 7379 7374 656d 0090  |ting system.Missing operating 
system..|
       0x010a 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 
9090 9090 9090 9090 9090 9090 9090 9090  
|......................................|
       0x0130 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 
9090 9090 9090 9090 9090 9090 9090 9090  
|......................................|
       0x0156 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 
9090 9090 9090 9090 9090 9090 9090 9090  
|......................................|
       0x017c 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 
9090 9090 9090 9090 9090 9090 9090 9090  
|......................................|
       0x01a2 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 9090 
9090 9090 9080 8001 0100 a5fe ffff 3f00  
|....................................?.|
       0x01c8 0000 8237 f90d 0000 0000 0000 0000 0000 0000 0000 0000 
0000 0000 0000 0000 0000 0000 0000 0000  
|...7..................................|
       0x01ee 0000 0000 0000 0000 0000 0000 0000 0000 
55aa                                                    |................U.|

   484 boot0cfg RET   read 512/0x200
   484 boot0cfg CALL  break(0x804e000)
   484 boot0cfg RET   break 0
   484 boot0cfg CALL  open(0x8049522,0,0x200)
   484 boot0cfg NAMI  "/boot/boot0"
   484 boot0cfg RET   open 4
   484 boot0cfg CALL  read(0x4,0xbfbfe9f0,0x200)
   484 boot0cfg GIO   fd 4 read 512 bytes
       0x0000 fc31 c08e c08e d88e d0bc 007c 89e6 bf00 06b9 0001 f3a5 
89fd b108 f3ab fe45 f2e9 008a f646 bb20  
|.1.........|.................E.....F. |
       0x0026 7508 84d2 7807 804e bb40 8a56 ba88 5600 e8fa 0052 bbc2 
0731 d288 6ffc 0fa3 56bb 7319 8a07 bf85  
|u...x..N. at .V..V....R...1..o...V.s.....|
       0x004c 07b1 03f2 ae74 0eb1 0cf2 ae83 c70a 8a0d 01cf e8c3 0042 
80c3 1073 d858 2c7f 3a06 7504 7205 4874  
|.....t...............B...s.X,.:.u.r.Ht|
       0x0072 0d30 c004 b088 46b8 bfb2 07e8 a400 be79 07e8 b000 8a56 
b94e e88c 00b0 07e8 b000 30e4 cd1a 89d7  
|.0....F........y.....V.N........0.....|
       0x0098 037e bcb4 01cd 1675 0d30 e4cd 1a39 fa72 f28a 46b9 eb16 
30e4 cd16 88e0 3c1c 74f1 2c3b 3c04 7606  
|.~.....u.0...9.r..F...0.....<.t.,;<.v.|
       0x00be 2cc7 3c04 77c9 980f a346 0c73 c288 46b9 be00 088a 1489 
f33c 049c 740a c0e0 0405 be07 93c6 0780  
|,.<.w....F.s..F........<..t...........|
       0x00e4 53f6 46bb 4075 08bb 0006 b403 e859 005e 9d75 068a 56b8 
80ea 30bb 007c b402 e847 0072 8681 bffe  
|S.F. at u.......Y.^.u..V...0..|...G.r....|
       0x010a 0155 aa0f 857c ffbe 8307 e819 00ff e3b0 46e8 2400 b031 
00d0 eb17 0fab 560c be76 07e8 ebff 89fe  
|.U...|..........F.$..1......V..v......|
       0x0130 e803 00be 8307 aca8 8075 05e8 0400 ebf6 247f 53bb 0700 
b40e cd10 5bc3 8a74 018b 4c02 b001 5689  
|.........u......$.S.......[..t..L...V.|
       0x0156 e7f6 46bb 8074 1366 6a00 66ff 7408 0653 6a01 6a10 89e6 
4880 cc40 cd13 89fc 5ec3 2020 a00a 4465  
|..F..t.fj.f.t..Sj.j...H.. at ....^.  ..De|
       0x017c 6661 756c 743a a00d 8a00 050f 0104 060b 0c0e 839f a5a6 
a90e 0d0c 0b0a 090b 130e 1110 013f bf44  
|fault:.............................?.D|
       0x01a2 4fd3 4c69 6e75 f846 7265 6542 53c4 66bb 4472 6976 6520 
0000 800f b600 0000 0000 0000 0000 0000  |O.Linu.FreeBS.f.Drive 
................|
       0x01c8 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 
0000 0000 0000 0000 0000 0000 0000 0000  
|......................................|
       0x01ee 0000 0000 0000 0000 0000 0000 0000 0000 
55aa                                                    |................U.|

   484 boot0cfg RET   read 512/0x200
   484 boot0cfg CALL  open(0x804c030,0x1,0x1b6)
   484 boot0cfg NAMI  "/dev/twed0"
   484 boot0cfg RET   open -1 errno 1 Operation not permitted
   484 boot0cfg CALL  break(0x804f000)
   484 boot0cfg RET   break 0
   484 boot0cfg CALL  open(0x804e000,0x2,0x804c030)
   484 boot0cfg NAMI  "/dev/twed0s1"
   484 boot0cfg RET   open -1 errno 1 Operation not permitted
   484 boot0cfg CALL  open(0x804e000,0x2,0x804c030)
   484 boot0cfg NAMI  "/dev/twed0s2"
   484 boot0cfg RET   open -1 errno 2 No such file or directory
   484 boot0cfg CALL  open(0x804e000,0x2,0x804c030)
   484 boot0cfg NAMI  "/dev/twed0s3"
   484 boot0cfg RET   open -1 errno 2 No such file or directory
   484 boot0cfg CALL  open(0x804e000,0x2,0x804c030)
   484 boot0cfg NAMI  "/dev/twed0s4"
   484 boot0cfg RET   open -1 errno 2 No such file or directory
   484 boot0cfg CALL  write(0x2,0xbfbfe450,0xa)
   484 boot0cfg GIO   fd 2 wrote 10 bytes
       "boot0cfg: "
   484 boot0cfg RET   write 10/0xa
   484 boot0cfg CALL  write(0x2,0xbfbfe470,0x15)
   484 boot0cfg GIO   fd 2 wrote 21 bytes
       "write_mbr: /dev/twed0"
   484 boot0cfg RET   write 21/0x15
   484 boot0cfg CALL  write(0x2,0x28130f3c,0x2)
   484 boot0cfg GIO   fd 2 wrote 2 bytes
       ": "
   484 boot0cfg RET   write 2
   484 boot0cfg CALL  write(0x2,0xbfbfe450,0x1a)
   484 boot0cfg GIO   fd 2 wrote 26 bytes
       "No such file or directory
       "
   484 boot0cfg RET   write 26/0x1a
   484 boot0cfg CALL  exit(0x1)


Does anybody have an idea about what's going on here?
I've used various 3ware-controllers in various environments and never 
faced this problem.



Rainer

-- 
IP Tech AG
Rainer Duffner
Glärnischstrasse 46
CH-9500 Wil SG
Telefon +41 71 929 90 70
Telefax +41 71 929 90 71



More information about the freebsd-stable mailing list