Asus V7-P7H55E - FreeBSD - 2012 archive

Back to main FreeBSD page for this machine.

2012 archive

2012-12-08: ad4s1 - I installed the port fusefs-sshfs and configured it by adding vfs.usermount=1 to /etc/sysctl.conf, and also adding it manually (to avoid rebooting the machine):

root@kg-v7# sysctl vfs.usermount=1
vfs.usermount: 0 -> 1

Next, I installed the worker port.

2012-08-30: ada1p2 - ok, let's try to use dd to copy Linux (Xubuntu) from da0 to ada2. source:

root@kg-v7# gpart show da0
=>      34  78140093  da0  GPT  (37G)
        34   8193116    1  linux-swap  (3.9G)
   8193150       898       - free -  (449k)
   8194048  38682624    2  linux-data  (18G)
  46876672      2048    3  bios-boot  (1.0M)
  46878720  31261407       - free -  (14G)

destination:

root@kg-v7# gpart show ada2
=>       34  117231341  ada2  GPT  (55G)
         34  117231341        - free -  (55G)

Try to copy:

root@kg-v7# dd if=/dev/da0 of=/dev/ada2 bs=1m
38151+4 records in
38151+4 records out
40007761920 bytes transferred in 2132.759094 secs (18758688 bytes/sec)

it took 35 minutes and 33 seconds.

root@kg-v7# gpart show ada2
=>      34  78140093  ada2  GPT  (55G) [CORRUPT]
        34   8193116     1  linux-swap  (3.9G)
   8193150       898        - free -  (449k)
   8194048  38682624     2  linux-data  (18G)
  46876672      2048     3  bios-boot  (1.0M)
  46878720  31261407        - free -  (14G)

and the partition table isn't ok, so fix it:

root@kg-v7# gpart recover ada2
ada2 recovered
root@kg-v7# gpart show ada2
=>       34  117231341  ada2  GPT  (55G)
         34    8193116     1  linux-swap  (3.9G)
    8193150        898        - free -  (449k)
    8194048   38682624     2  linux-data  (18G)
   46876672       2048     3  bios-boot  (1.0M)
   46878720   70352655        - free -  (33G)

Looks better. Now disconnect the usb drive and see if Linux will boot from the OCZ Agility 3 ssd.

2012-08-30: ada1p2 - this is how gpart sees the external Linux drive:

root@kg-v7# gpart show da0
=>      34  78140093  da0  GPT  (37G)
        34   8193116    1  linux-swap  (3.9G)
   8193150       898       - free -  (449k)
   8194048  38682624    2  linux-data  (18G)
  46876672      2048    3  bios-boot  (1.0M)
  46878720  31261407       - free -  (14G)
root@kg-v7# gpart show -p da0
=>      34  78140093    da0  GPT  (37G)
        34   8193116  da0p1  linux-swap  (3.9G)
   8193150       898         - free -  (449k)
   8194048  38682624  da0p2  linux-data  (18G)
  46876672      2048  da0p3  bios-boot  (1.0M)
  46878720  31261407         - free -  (14G)

a bit irrelevant, as Linux calls it sdc instead.

root@kg-v7# gpart show -r da0
=>      34  78140093  da0  GPT  (37G)
        34   8193116    1  0657fd6d-a4ab-43c4-84e5-0933c84b4f4f  (3.9G)
   8193150       898       - free -  (449k)
   8194048  38682624    2  ebd0a0a2-b9e5-4433-87c0-68b6b72699c7  (18G)
  46876672      2048    3  21686148-6449-6e6f-744e-656564454649  (1.0M)
  46878720  31261407       - free -  (14G)

just to show raw partition types.

2012-08-30: ada1p2 - a quick boot to see how the new 60GB OCZ Agility 3 SSD shows up:

root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 9.1-BETA1 FreeBSD 9.1-BETA1 #0: Thu Jul 12 09:38:51 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-v7# camcontrol devlist
<STT FTM64GX25H 2142>              at scbus0 target 0 lun 0 (ada0,pass0)
<SAMSUNG SSD 830 Series CXM03B1Q>  at scbus1 target 0 lun 0 (ada1,pass1)
<OCZ-AGILITY3 2.22>                at scbus2 target 0 lun 0 (ada2,pass2)

From dmesg:

root@kg-v7# dmesg | grep ^ad
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <STT FTM64GX25H 2142> ATA-8 SATA 2.x device
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 512bytes)
ada0: Command Queueing enabled
ada0: 61057MB (125045424 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
ada1 at ahcich1 bus 0 scbus1 target 0 lun 0
ada1: <SAMSUNG SSD 830 Series CXM03B1Q> ATA-9 SATA 3.x device
ada1: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada1: Command Queueing enabled
ada1: 122104MB (250069680 512 byte sectors: 16H 63S/T 16383C)
ada1: Previously was known as ad6
ada2 at ahcich2 bus 0 scbus2 target 0 lun 0
ada2: <OCZ-AGILITY3 2.22> ATA-8 SATA 3.x device
ada2: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada2: Command Queueing enabled
ada2: 57241MB (117231408 512 byte sectors: 16H 63S/T 16383C)
ada2: Previously was known as ad8

Ok, the new drive is ad8 / ada2. Let's see what smartctl reports:

root@kg-v7# smartctl -a /dev/ada2  | more
smartctl 5.43 2012-06-30 r3573 [FreeBSD 9.1-BETA1 amd64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     SandForce Driven SSDs
Device Model:     OCZ-AGILITY3
Serial Number:    OCZ-9FFZ39D851G9O4I0
LU WWN Device Id: 5 e83a97 e53b64f6d
Firmware Version: 2.22
User Capacity:    60,022,480,896 bytes [60.0 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ACS-2 revision 3
Local Time is:    Thu Aug 30 17:30:06 2012 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===

Ok, so it has firmware 2.22 already. gpart says that the drive isn't partitioned yet:

root@kg-v7# gpart show ada2
gpart: No such geom: ada2.

but that is easy to fix:

root@kg-v7# gpart create -s GPT ada2
ada2 created
root@kg-v7# gpart show ada2
=>       34  117231341  ada2  GPT  (55G)
         34  117231341        - free -  (55G)

Good.

2012-08-17: ad4s2a - under FreeBSD 7.4-stable (for good measure), the cards shows up like this:

root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 7.4-STABLE FreeBSD 7.4-STABLE #0: Sun Jun 17 19:21:26 CEST 2012     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-v7# pciconf -lv | grep -A 4 none2
none2@pci0:4:2:0:    class=0x048000 card=0x000a13c2 chip=0x71461131 rev=0x01 hdr=0x00
    vendor     = 'Animation Technologies Inc'
    device     = 'PCIVEN_1131&DEV_7130&SUBSYS_D1091461&REV_013&61AAA01&0&60 (saa7146)'
    class      = multimedia

Just that.

2012-08-17: ad4s1a - under FreeBSD 8.3-stable, the card shows up like this:

root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #0: Sat Jun 16 14:44:53 CEST 2012     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-v7# pciconf -lv | grep -A 4 none2
none2@pci0:4:2:0:    class=0x048000 card=0x000a13c2 chip=0x71461131 rev=0x01 hdr=0x00
    vendor     = 'Animation Technologies Inc'
    device     = 'PCIVEN_1131&DEV_7130&SUBSYS_D1091461&REV_013&61AAA01&0&60 (saa7146)'
    class      = multimedia

Nothing more here.

2012-08-17: ada1p2 - the TechnoTrend Premium C-2300 card shows up like this:

root@kg-v7# pciconf -lv | grep -A 4 none2
none2@pci0:4:2:0:    class=0x048000 card=0x000a13c2 chip=0x71461131 rev=0x01 hdr=0x00
    vendor     = 'Philips Semiconductors'
    device     = 'SAA7146'
    class      = multimedia

That's all.

2012-08-14: ada1p2 - ports - I used portsnap to fetch and extract at ports tree: fetch:

root@kg-v7# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 9 mirrors found.
Fetching public key from geodns-1.portsnap.freebsd.org... done.
Fetching snapshot tag from geodns-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Tue Aug 14 02:16:54 CEST 2012:
1fcdc8b865b09f1841da9684004c2ce866f0572fa27255100% of   67 MB 2685 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from geodns-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Tue Aug 14 02:16:54 CEST 2012 to Tue Aug 14 13:45:24 CEST 2012.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 3 metadata files... done.
Fetching 32 patches.....10....20....30. done.
Applying patches... done.
Fetching 4 new ports or files... done.

extract:

root@kg-v7# portsnap extract
...
(long list of ports)
...

That's it. source - getting updated source onto the machine:

root@kg-v7# mkdir -p /usr/local/etc/cvsup
root@kg-v7# cp -v /usr/share/examples/cvsup/stable-supfile /usr/local/etc/cvsup/fbsd9

(edit the fbsd9 file, select favorite cvsup server)

root@kg-v7# csup /usr/local/etc/cvsup/fbsd9
...
(long list of files)
...

That's it.

2012-08-14: ada1p2 - Finally, FreeBSD 9.1-beta1 installed (dmesg output: normal, verbose):

root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 9.1-BETA1 FreeBSD 9.1-BETA1 #0: Thu Jul 12 09:38:51 UTC 2012     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-v7# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada1p2     29G    703M     26G     3%    /
devfs          1.0k    1.0k      0B   100%    /dev

pciconf output:

root@kg-v7# pciconf -lv
hostb0@pci0:0:0:0:    class=0x060000 card=0x83831043 chip=0x00408086 rev=0x12 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor DRAM Controller'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:    class=0x030000 card=0x83831043 chip=0x00428086 rev=0x12 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Core Processor Integrated Graphics Controller'
    class      = display
    subclass   = VGA
none0@pci0:0:22:0:    class=0x078000 card=0x83831043 chip=0x3b648086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset HECI Controller'
    class      = simple comms
ehci0@pci0:0:26:0:    class=0x0c0320 card=0x83831043 chip=0x3b3c8086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
hdac0@pci0:0:27:0:    class=0x040300 card=0x837b1043 chip=0x3b568086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset High Definition Audio'
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0:    class=0x060400 card=0x83831043 chip=0x3b428086 rev=0x06 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset PCI Express Root Port 1'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:2:    class=0x060400 card=0x83831043 chip=0x3b468086 rev=0x06 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset PCI Express Root Port 3'
    class      = bridge
    subclass   = PCI-PCI
ehci1@pci0:0:29:0:    class=0x0c0320 card=0x83831043 chip=0x3b348086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset USB2 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
pcib3@pci0:0:30:0:    class=0x060401 card=0x83831043 chip=0x244e8086 rev=0xa6 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:    class=0x060100 card=0x83831043 chip=0x3b068086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series Chipset LPC Interface Controller'
    class      = bridge
    subclass   = PCI-ISA
ahci0@pci0:0:31:2:    class=0x010601 card=0x83831043 chip=0x3b228086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset 6 port SATA AHCI Controller'
    class      = mass storage
    subclass   = SATA
none1@pci0:0:31:3:    class=0x0c0500 card=0x83831043 chip=0x3b308086 rev=0x06 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '5 Series/3400 Series Chipset SMBus Controller'
    class      = serial bus
    subclass   = SMBus
re0@pci0:2:0:0:    class=0x020000 card=0x83a31043 chip=0x816810ec rev=0x03 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168B PCI Express Gigabit Ethernet controller'
    class      = network
    subclass   = ethernet

That's it for now.

2012-08-14: ada1p2 - I installed FreeBSD 9.1-beta1 from a usb stick. After the install, the machine wouldn't boot from that drive, so I tried (from ad4s1):

root@kg-v7# gpart bootcode -p /mnt/boot/gptboot -i 1 ad6

did it work? No, it didn't. Next try:

root@kg-v7# gpart bootcode -b /mnt/boot/pmbr ad6
bootcode written to ad6

Let's see if that one works better. Yes, it does. Unfortunately, I haven't added my user and group yet. Use sysinstall and do that now. After that, logging in works. Just tidy up a few things (shells, profiles, /etc/motd).

2012-08-14: (ad4) slice 1 - with the new SSD attached, the drives show up like this:

root@kg-v7# dmesg | grep ^ad
ad4: 61057MB <STT FTM64GX25H 2142> at ata2-master UDMA100 SATA 3Gb/s
ad6: 122104MB <SAMSUNG SSD 830 Series CXM03B1Q> at ata3-master UDMA100 SATA 3Gb/s

or with gpart:

root@kg-v7# gpart show ad4
=>       63  125045361  ad4  MBR  (59G)
         63   60817365    1  freebsd  [active]  (29G)
   60817428   64227996    2  freebsd  (30G)

root@kg-v7# gpart show ad6
gpart: No such geom: ad6.
root@kg-v7#

Ok, let's create a GPT on ad6:

root@kg-v7# gpart create -s GPT ad6
ad6 created

and show it:

root@kg-v7# gpart show ad6
=>       34  250069613  ad6  GPT  (119G)
         34  250069613       - free -  (119G)

Cool. Now install FreeBSD 9.x on that.

2012-06-23: slice 1 - Xorg. after reinstall of the Xorg and xfce ports, I commented out the special settings from /etc/X11/xorg.conf, and Xorg still works in correct resolution (1280x1024). Nice!. Some info from /var/log/Xorg.0.log:

(--) PCI:*(0:0:2:0) 8086:0042:1043:8383 Intel Corporation Core Processor Integrated Graphics Controller rev 18, Mem @ 0xf7800000/4194304, 0xe0000000/268435456, I/O @ 0x0000dc00/8, BIOS @ 0x????????/65536

(II) VESA(0): VESA BIOS detected
(II) VESA(0): VESA VBE Version 3.0
(II) VESA(0): VESA VBE Total Mem: 32704 kB
(II) VESA(0): VESA VBE OEM: Intel(R)Ironlake Desktop Graphics Chipset Accelerated VGA BIOS
(II) VESA(0): VESA VBE OEM Software Rev: 1.0
(II) VESA(0): VESA VBE OEM Vendor: Intel Corporation
(II) VESA(0): VESA VBE OEM Product: Intel(R)Ironlake Desktop Graphics Controller
(II) VESA(0): VESA VBE OEM Product Rev: Hardware Version 0.0

(**) VESA(0): Depth 24, (--) framebuffer bpp 32
(==) VESA(0): RGB weight 888
(==) VESA(0): Default visual is TrueColor
(==) VESA(0): Using gamma correction (1.0, 1.0, 1.0)

(II) VESA(0): VESA VBE DDC supported
(II) VESA(0): VESA VBE DDC Level 2
(II) VESA(0): VESA VBE DDC transfer in appr. 1 sec.

(II) VESA(0): VESA VBE DDC read successfully
(II) VESA(0): Manufacturer: CPQ  Model: 1395  Serial#: 18285276
(II) VESA(0): Year: 2001  Week: 50
(II) VESA(0): EDID Version: 1.3
(II) VESA(0): Analog Display Input,  Input Voltage Level: 0.700/0.700 V
(II) VESA(0): Sync:  Separate  Composite  SyncOnGreen
(II) VESA(0): Max Image Size [cm]: horiz.: 36  vert.: 29
(II) VESA(0): Gamma: 2.20
(II) VESA(0): DPMS capabilities: StandBy Suspend Off; RGB/Color Display
(II) VESA(0): First detailed timing is preferred mode
(II) VESA(0): redX: 0.633 redY: 0.340   greenX: 0.295 greenY: 0.591
(II) VESA(0): blueX: 0.141 blueY: 0.096   whiteX: 0.312 whiteY: 0.328
(II) VESA(0): Supported established timings:
(II) VESA(0): 720x400@70Hz
(II) VESA(0): 640x480@60Hz
(II) VESA(0): 640x480@67Hz
(II) VESA(0): 640x480@72Hz
(II) VESA(0): 640x480@75Hz
(II) VESA(0): 800x600@60Hz
(II) VESA(0): 800x600@72Hz
(II) VESA(0): 800x600@75Hz
(II) VESA(0): 832x624@75Hz
(II) VESA(0): 1024x768@60Hz
(II) VESA(0): 1024x768@70Hz
(II) VESA(0): 1024x768@75Hz
(II) VESA(0): 1280x1024@75Hz
(II) VESA(0): 1152x864@75Hz
(II) VESA(0): Manufacturer's mask: 0
(II) VESA(0): Supported standard timings:
(II) VESA(0): #0: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
(II) VESA(0): #1: hsize: 1280  vsize 1024  refresh: 85  vid: 39297
(II) VESA(0): #2: hsize: 1024  vsize 768  refresh: 85  vid: 22881
(II) VESA(0): #3: hsize: 800  vsize 600  refresh: 85  vid: 22853
(II) VESA(0): #4: hsize: 640  vsize 480  refresh: 85  vid: 22833
(II) VESA(0): Supported detailed timing:
(II) VESA(0): clock: 108.0 MHz   Image Size:  360 x 290 mm
(II) VESA(0): h_active: 1280  h_sync: 1328  h_sync_end 1440 h_blank_end 1688 h_border: 0
(II) VESA(0): v_active: 1024  v_sync: 1025  v_sync_end 1028 v_blanking: 1066 v_border: 0
(II) VESA(0): Ranges: V min: 58 V max: 85 Hz, H min: 32 H max: 91 kHz, PixClock max 160 MHz
(II) VESA(0): Serial No: 935EA05YA001
(II) VESA(0): Monitor name: CPQ TFT8030

(II) VESA(0): Total Memory: 511 64KB banks (32704kB)
(II) VESA(0): Monitor0: Using hsync range of 32.00-91.00 kHz
(II) VESA(0): Monitor0: Using vrefresh range of 58.00-85.00 Hz
(II) VESA(0): Monitor0: Using maximum pixel clock of 160.00 MHz
(WW) VESA(0): Unable to estimate virtual size

(--) VESA(0): Virtual size is 1280x1024 (pitch 1280)
(**) VESA(0): *Built-in mode "1280x1024"
(**) VESA(0): *Built-in mode "1024x768"
(**) VESA(0): *Built-in mode "800x600"
(**) VESA(0): *Built-in mode "640x480"
(**) VESA(0): Display dimensions: (360, 290) mm
(**) VESA(0): DPI set to (90, 89)
(**) VESA(0): Using "Shadow Framebuffer"

That's it.

2012-06-22: slice 1 - installed Xfce 4.10 port. After install, I have

root@kg-v7# pv | wc -l
     395

ports, which gives

root@kg-v7# expr 395 - 224
171

ports for Xfce.

2012-06-21: slice 1 - I want to start fresh, so I deleted all installed ports:

root@kg-v7# pkg_deinstall -a

before deinstalling, I had generated a list of all installed ports, for a reference. I also removed all options:

root@kg-v7# rm -rf var/db/ports/*

Then it is time to install all ports again. First portupgrade. This brings in 17 ports:

root@kg-v7# portversion -v
autoconf-2.69               =  up-to-date with port
autoconf-wrapper-20101119   =  up-to-date with port
automake-1.12               =  up-to-date with port
automake-wrapper-20101119   =  up-to-date with port
db41-4.1.25_4               =  up-to-date with port
gettext-0.18.1.1            =  up-to-date with port
gmake-3.82                  =  up-to-date with port
help2man-1.40.10            =  up-to-date with port
libiconv-1.14               =  up-to-date with port
libsigsegv-2.10             =  up-to-date with port
libtool-2.4.2               =  up-to-date with port
m4-1.4.16,1                 =  up-to-date with port
p5-Locale-gettext-1.05_3    =  up-to-date with port
perl-threaded-5.12.4_4      =  up-to-date with port
portupgrade-2.4.9.5,2       =  up-to-date with port
ruby-1.8.7.358,1            =  up-to-date with port
ruby18-bdb-0.6.6            =  up-to-date with port

Next up is Xorg. After installation I have

root@kg-v7# pv | wc -l
     224

ports, which means that Xorg 7.5.2 brought in

root@kg-v7# expr 224 - 17
207

new ports.

2012-06-17: slice 2 - upgraded to FreeBSD 7.4-stable (finally) via csup, make world. dmesg output: normal, verbose.

tingo@kg-v7$ uname -a
FreeBSD kg-v7.kg4.no 7.4-STABLE FreeBSD 7.4-STABLE #0: Sun Jun 17 19:21:26 CEST 2012     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
tingo@kg-v7$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s2a    989M    466M    444M    51%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad4s2e    495M    404K    455M     0%    /tmp
/dev/ad4s2f     19G    3.2G     15G    17%    /usr
/dev/ad4s2d    8.3G    2.9G    4.8G    38%    /var

2012-06-17: slice 2 - make world, third try. I emptied /usr/src and /usr/obj, and did a fresh csup of the source.

step 1 - make -j4 buildworld - finished without errors.
step 2 - make kernel - finished without errors.

Did the finishing steps without trouble too. Nice!

2012-06-17: slice 2 - I csup'ed again, then ran make -j4 buildworld - ok. I ran make kernel, and a bit in, the machine paniced (crash summary from crashinfo):

root@kg-v7# more /var/crash/info.2
Dump header from device /dev/ad4s1b
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 1171406848B (1117 MB)
  Blocksize: 512
  Dumptime: Sun Jun 17 18:00:50 2012
  Hostname: kg-v7.kg4.no
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 7.4-PRERELEASE #0: Sun Feb 20 01:14:23 CET 2011
    root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC
  Panic String: page fault
  Dump Parity: 263420997
  Bounds: 2
  Dump Status: good

This time, I ran fsck on all filesystems twice, hope that helps.

2012-06-17: slice 2 - tried to build world again. make -j4 buildworld stopped here:

cc -m32 -march=i686 -mmmx -msse -msse2 -mfancy-math-387 -DCOMPAT_32BIT  -iprefix /usr/obj/usr/src/lib32/usr/  -L/usr/obj/usr/src/lib32/usr/lib32  -B/usr/obj/usr/src/lib32/usr/lib32 -fpic -DPIC -O2 -fno-strict-aliasing -pipe -I/usr/src/lib/libngatm/../../sys/contrib/ngatm -I/usr/obj/lib32/usr/src/lib/libngatm -I/usr/src/lib/libngatm/../../contrib/ngatm/libngatm -Wsystem-headers -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wno-pointer-sign -c /usr/src/lib/libngatm/../../sys/contrib/ngatm/netnatm/msg/uni_msg.c -o uni_msg.So
/usr/src/lib/libngatm/../../sys/contrib/ngatm/netnatm/msg/uni_msg.c: In function 'print_add_party':
/usr/src/lib/libngatm/../../sys/contrib/ngatm/netnatm/msg/uni_msg.c:2195: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error
*** Error code 2
1 error

Perhaps a corruption of files from before I fixed the SSD? I ran make -j4 buildworld a second time, and now it completed without error. Good. But now, make kernel fails here:

--------------------------------------------------------------
>>> stage 3.2: building everything
--------------------------------------------------------------
cd /usr/obj/usr/src/sys/GENERIC; MAKEOBJDIRPREFIX=/usr/obj  MACHINE_ARCH=amd64  MACHINE=amd64  CPUTYPE=  GROFF_BIN_PATH=/usr/obj/usr/src/tmp/legacy/usr/bin  GROFF_FONT_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/groff_font  GROFF_TMAC_PATH=/usr/obj/usr/src/tmp/legacy/usr/share/tmac  _SHLIBDIRPREFIX=/usr/obj/usr/src/tmp  VERSION="FreeBSD 7.4-PRERELEASE amd64 704100"  INSTALL="sh /usr/src/tools/install.sh"  PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/usr/obj/usr/src/tmp/usr/games:/sbin:/bin:/usr/sbin:/usr/bin NO_CTF=1 make KERNEL=kernel all -DNO_MODULES_OBJ
cc -c -x assembler-with-cpp -DLOCORE -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /usr/src/sys/amd64/amd64/locore.S
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror  aic7xxx_reg_print.c
aic7xxx_reg_print.c: In function 'ahc_sg_cache_pre_print':
aic7xxx_reg_print.c:1677: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
*** Error code 1

Stop in /usr/obj/usr/src/sys/GENERIC.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.

Re-trying, but it fails in the same place.

2012-06-16: slice 1 - Xorg isn't detecting my screen properly (it gave med a 800x600 mode), so I had to add a few lines to /etc/X11/xorg.conf (I'm using the vesa driver): in the Monitor section:

        HorizSync       32-91
        VertRefresh     58-85

in the Screen section, subsection Display:

                Modes   "1280x1024"

That's all.

2012-06-16: slice 1 - the machine got another panic while upgrading some ports. This time, it hung in the dump routine, so no dump available.

2012-06-16: slice 1 - upgraded to latest FreeBSD 8.3-stable via csup, make world. dmesg output: normal, verbose.

root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #0: Sat Jun 16 14:44:53 CEST 2012     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-v7# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    989M    379M    530M    42%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s1e    495M      1M    455M     0%    /tmp
/dev/ad4s1f     14G     12G    1.2G    91%    /usr
/dev/ad4s1d    8.3G     80M    7.6G     1%    /var
procfs         4.0k    4.0k      0B   100%    /proc

That's it.

2012-06-16: slice 1 - currently at FreeBSD 8.2-stable:

root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #7: Sat Jul  9 23:00:31 CEST 2011     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-v7# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    989M    360M    549M    40%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s1e    495M    980k    455M     0%    /tmp
/dev/ad4s1f     14G     12G    1.0G    92%    /usr
/dev/ad4s1d    8.3G     79M    7.6G     1%    /var
procfs         4.0k    4.0k      0B   100%    /proc

Let's try to update it via csup, make world.

2012-06-16: slice 2 - got a panic while trying to build world. Here is the crash summary (from crashinfo). From /var/log/messages:

Jun 16 13:08:48 kg-v7 savecore: reboot after panic: page fault
Jun 16 13:08:48 kg-v7 savecore: writing core to vmcore.0

crash info

root@kg-v7# more /var/crash/info.0
Dump header from device /dev/ad4s1b
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 998326272B (952 MB)
  Blocksize: 512
  Dumptime: Sat Jun 16 13:07:05 2012
  Hostname: kg-v7.kg4.no
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 7.4-PRERELEASE #0: Sun Feb 20 01:14:23 CET 2011
    root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC
  Panic String: page fault
  Dump Parity: 3827576379
  Bounds: 0
  Dump Status: good

Hmm, not good. On my next try, I got another one within minutes, crash summary (from crashinfo).:

Jun 16 13:27:55 kg-v7 savecore: reboot after panic: double fault
Jun 16 13:27:55 kg-v7 savecore: writing core to vmcore.1

crash info

root@kg-v7# more /var/crash/info.1
Dump header from device /dev/ad4s1b
  Architecture: amd64
  Architecture Version: 2
  Dump Length: 970268672B (925 MB)
  Blocksize: 512
  Dumptime: Sat Jun 16 13:26:19 2012
  Hostname: kg-v7.kg4.no
  Magic: FreeBSD Kernel Dump
  Version String: FreeBSD 7.4-PRERELEASE #0: Sun Feb 20 01:14:23 CET 2011
    root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC
  Panic String: double fault
  Dump Parity: 108951148
  Bounds: 1
  Dump Status: good

Let's try to build world on slice 1 instead.

2012-06-16: slice 2 - currently FreeBSD 7.4-prerelease:

root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 7.4-PRERELEASE FreeBSD 7.4-PRERELEASE #0: Sun Feb 20 01:14:23 CET 2011     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-v7# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s2a    989M    458M    453M    50%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad4s2e    496M    404K    456M     0%    /tmp
/dev/ad4s2f     20G    3.2G     15G    17%    /usr
/dev/ad4s2d    8.3G     19M    7.6G     0%    /var

That's all.

2012-06-16: slice 2 - let's try to restore ad4s2f again. First, preparations:

root@kg-v7# fsck_ufs -y /dev/da0p1
** /dev/da0p1
** Last Mounted on /media
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
10 files, 42147857 used, 430862057 free (17 frags, 53857755 blocks, 0.0% fragmentation)

***** FILE SYSTEM MARKED CLEAN *****
root@kg-v7# mount -r /dev/da0p1 /media

Then, let's go again:

root@kg-v7# newfs /dev/ad4s2f
/dev/ad4s2f: 21025.3MB (43059852 sectors) block size 16384, fragment size 2048
    using 115 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440, 2257696, 2633952, 3010208, 3386464, 3762720, 4138976,
 4515232, 4891488, 5267744, 5644000, 6020256, 6396512, 6772768, 7149024, 7525280, 7901536, 8277792,
 8654048, 9030304, 9406560, 9782816, 10159072, 10535328, 10911584, 11287840, 11664096, 12040352, 12416608,
 12792864, 13169120, 13545376, 13921632, 14297888, 14674144, 15050400, 15426656, 15802912, 16179168,
 16555424, 16931680, 17307936, 17684192, 18060448, 18436704, 18812960, 19189216, 19565472, 19941728,
 20317984, 20694240, 21070496, 21446752, 21823008, 22199264, 22575520, 22951776, 23328032, 23704288,
 24080544, 24456800, 24833056, 25209312, 25585568, 25961824, 26338080, 26714336, 27090592, 27466848,
 27843104, 28219360, 28595616, 28971872, 29348128, 29724384, 30100640, 30476896, 30853152, 31229408,
 31605664, 31981920, 32358176, 32734432, 33110688, 33486944, 33863200, 34239456, 34615712, 34991968,
 35368224, 35744480, 36120736, 36496992, 36873248, 37249504, 37625760, 38002016, 38378272, 38754528,
 39130784, 39507040, 39883296, 40259552, 40635808, 41012064, 41388320, 41764576, 42140832, 42517088,
 42893344
root@kg-v7# mount /dev/ad4s2f /mnt
root@kg-v7# cd /mnt
root@kg-v7# restore -rf /media/ad4s2f-usr.image
warning: ./.snap: File exists

No panic this time.

root@kg-v7# cd
root@kg-v7# umount /mnt

All that remains is booting from slice 2 and see if it works.-

2012-06-16: slice 1 - set up a dump device by adding this to /etc/rc.conf:

# set up a crash dump device
dumpdev="AUTO"

then reboot, and check if it is there:

root@kg-v7# ls -l /dev/dumpdev
lrwxr-xr-x  1 root  wheel  11 Jun 16 13:59 /dev/dumpdev -> /dev/ad4s1b

It is. Back to our regular shcedule.

2012-06-16: slice 2 - restore from backup: The backup files are here:

root@kg-v7# ls -lh /media/ad4s2*
-rw-r--r--  1 root  wheel   450M Jun 15 17:53 /media/ad4s2a-root.image
-rw-r--r--  1 root  wheel    17M Jun 15 17:54 /media/ad4s2d-var.image
-rw-r--r--  1 root  wheel   190k Jun 15 17:56 /media/ad4s2e-tmp.image
-rw-r--r--  1 root  wheel   3.2G Jun 15 17:59 /media/ad4s2f-usr.image

First, root:

root@kg-v7# newfs /dev/ad4s2a
/dev/ad4s2a: 1024.0MB (2097152 sectors) block size 16384, fragment size 2048
    using 6 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440
root@kg-v7# mount /dev/ad4s2a /mnt
root@kg-v7# cd /mnt
root@kg-v7# restore -rf /media/ad4s2a-root.image
warning: ./.snap: File exists
root@kg-v7# cd
root@kg-v7# umount /mnt

Next up, /var

root@kg-v7# newfs /dev/ad4s2d
/dev/ad4s2d: 8800.0MB (18022400 sectors) block size 16384, fragment size 2048
    using 48 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440, 2257696, 2633952, 3010208, 3386464, 3762720, 4138976,
 4515232, 4891488, 5267744, 5644000, 6020256, 6396512, 6772768, 7149024, 7525280, 7901536, 8277792,
 8654048, 9030304, 9406560, 9782816, 10159072, 10535328, 10911584, 11287840, 11664096, 12040352, 12416608,
 12792864, 13169120, 13545376, 13921632, 14297888, 14674144, 15050400, 15426656, 15802912, 16179168,
 16555424, 16931680, 17307936, 17684192
root@kg-v7# mount /dev/ad4s2d /mnt
root@kg-v7# cd /mnt
root@kg-v7# restore -rf /media/ad4s2d-var.image
warning: ./.snap: File exists
root@kg-v7# cd
root@kg-v7# umount /mnt

Then do /tmp

root@kg-v7# newfs /dev/ad4s2e
/dev/ad4s2e: 512.0MB (1048576 sectors) block size 16384, fragment size 2048
    using 4 cylinder groups of 128.02MB, 8193 blks, 16448 inodes.
super-block backups (for fsck -b #) at:
 160, 262336, 524512, 786688
root@kg-v7# mount /dev/ad4s2e /mnt
root@kg-v7# cd /mnt
root@kg-v7# restore -rf /media/ad4s2e-tmp.image
warning: ./.snap: File exists
root@kg-v7# cd
root@kg-v7# umount /mnt

and finally, /usr

root@kg-v7# newfs /dev/ad4s2f
/dev/ad4s2f: 21025.3MB (43059852 sectors) block size 16384, fragment size 2048
    using 115 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440, 2257696, 2633952, 3010208, 3386464, 3762720, 4138976,
 4515232, 4891488, 5267744, 5644000, 6020256, 6396512, 6772768, 7149024, 7525280, 7901536, 8277792,
 8654048, 9030304, 9406560, 9782816, 10159072, 10535328, 10911584, 11287840, 11664096, 12040352, 12416608,
 12792864, 13169120, 13545376, 13921632, 14297888, 14674144, 15050400, 15426656, 15802912, 16179168,
 16555424, 16931680, 17307936, 17684192, 18060448, 18436704, 18812960, 19189216, 19565472, 19941728,
 20317984, 20694240, 21070496, 21446752, 21823008, 22199264, 22575520, 22951776, 23328032, 23704288,
 24080544, 24456800, 24833056, 25209312, 25585568, 25961824, 26338080, 26714336, 27090592, 27466848,
 27843104, 28219360, 28595616, 28971872, 29348128, 29724384, 30100640, 30476896, 30853152, 31229408,
 31605664, 31981920, 32358176, 32734432, 33110688, 33486944, 33863200, 34239456, 34615712, 34991968,
 35368224, 35744480, 36120736, 36496992, 36873248, 37249504, 37625760, 38002016, 38378272, 38754528,
 39130784, 39507040, 39883296, 40259552, 40635808, 41012064, 41388320, 41764576, 42140832, 42517088,
 42893344
root@kg-v7# mount /dev/ad4s2f /mnt
root@kg-v7# cd /mnt
root@kg-v7# restore -rf /media/ad4s2f-usr.image
warning: ./.snap: File exists

and then I got a panic. Hrrm.. Transcribed from the console:

panic: ffs_update: bad link cnt
cpuid = 3
KDB: stack backtrace
#0 0xffffffff8060996e at kdb_backtrace+0x5e
#1 0xffffffff805d6e07 at panic+0x187
#2 0xffffffff807fsdf0 at ffs_truncate+0
#3 0xffffffff80817564 at ufs_link+0xd4
#4 0xffffffff8091b464 at VOP_LINK_APV+0x34
#5 0xffffffff80671b7a at kern_linkat+0x3da
#6 0xffffffff80671c14 at kern_link+0x24
#7 0xffffffff80616195 at syscallenter+0x1e5
#8 0xffffffff808c24eb at syscall+0x4b
#9 0xffffffff808aab82 at Xfast_syscall+0xe2
Uptime: 1h12m25s
Cannot dump. Device not defined or unavailable.
Automatic reboot in 15 seconds - press a key on the console to abort

(the Automatic reboot didn't happen).

2012-06-16: slice 2 - time to label and set up: check

root@kg-v7# bsdlabel ad4s2
# /dev/ad4s2:
8 partitions:
#          size     offset    fstype   [fsize bsize bps/cpg]
  c:   64227996          0    unused        0     0     # "raw" part, don't edit

edit, in the editor, it looks like this:

# /dev/ad4s2:
8 partitions:
#          size     offset    fstype   [fsize bsize bps/cpg]
  a:    2097152         16    4.2BSD        0     0
  c:   64227996          0    unused        0     0     # "raw" part, don't edit
  d:    8800M          *    4.2BSD        0     0
  e:    512M          *    4.2BSD        0     0
  f:    *          *    4.2BSD        0     0

afterwards, this is how it looks:

root@kg-v7# bsdlabel ad4s2
# /dev/ad4s2:
8 partitions:
#          size     offset    fstype   [fsize bsize bps/cpg]
  a:    2097152         16    4.2BSD        0     0     0
  c:   64227996          0    unused        0     0     # "raw" part, don't edit
  d:   18022400    2097168    4.2BSD        0     0     0
  e:    1048576   20119568    4.2BSD        0     0     0
  f:   43059852   21168144    4.2BSD        0     0     0

Let's see if that works.

2012-06-16: slice 1 - the disk label looks like this:

root@kg-v7# bsdlabel ad4s1
# /dev/ad4s1:
8 partitions:
#          size     offset    fstype   [fsize bsize bps/cpg]
  a:    2097152          0    4.2BSD        0     0     0
  b:    8388608    2097152      swap                   
  c:   60817365          0    unused        0     0     # "raw" part, don't edit
  d:   18035507   10485760    4.2BSD        0     0     0
  e:    1048576   28521267    4.2BSD        0     0     0
  f:   31247522   29569843    4.2BSD        0     0     0

2012-06-16: slice 1 - the SSD now looks like this from dmesg:

root@kg-v7# dmesg | grep ad4
ad4: 61057MB <STT FTM64GX25H 2142> at ata2-master UDMA100 SATA 3Gb/s
Trying to mount root from ufs:/dev/ad4s1a

and this is the output from smartctl:

root@kg-v7# smartctl -a /dev/ad4
smartctl 5.42 2011-10-20 r3458 [FreeBSD 8.2-STABLE amd64] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Indilinx Barefoot based SSDs
Device Model:     STT_FTM64GX25H
Serial Number:    R520831-GSIX-5149002
Firmware Version: 2142
User Capacity:    64,023,257,088 bytes [64.0 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  Exact ATA specification draft version not indicated
Local Time is:    Sat Jun 16 10:39:02 2012 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)    Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)    The previous self-test routine completed
                    without error or no self-test has ever
                    been run.
Total time to complete Offline
data collection:         (    0) seconds.
Offline data collection
capabilities:              (0x1d) SMART execute Offline immediate.
                    No Auto Offline data collection support.
                    Abort Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    No Selective Self-test supported.
SMART capabilities:            (0x0003)    Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x00)    Error logging NOT supported.
                    General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   0) minutes.
Extended self-test routine
recommended polling time:      (   0) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x0000   ---   ---   ---    Old_age   Offline      -       12
  9 Power_On_Hours          0x0000   ---   ---   ---    Old_age   Offline      -       8
 12 Power_Cycle_Count       0x0000   ---   ---   ---    Old_age   Offline      -       2
184 Initial_Bad_Block_Count 0x0000   ---   ---   ---    Old_age   Offline      -       39
195 Program_Failure_Blk_Ct  0x0000   ---   ---   ---    Old_age   Offline      -       0
196 Erase_Failure_Blk_Ct    0x0000   ---   ---   ---    Old_age   Offline      -       0
197 Read_Failure_Blk_Ct     0x0000   ---   ---   ---    Old_age   Offline      -       0
198 Read_Sectors_Tot_Ct     0x0000   ---   ---   ---    Old_age   Offline      -       516070
199 Write_Sectors_Tot_Ct    0x0000   ---   ---   ---    Old_age   Offline      -       47961989
200 Read_Commands_Tot_Ct    0x0000   ---   ---   ---    Old_age   Offline      -       78584
201 Write_Commands_Tot_Ct   0x0000   ---   ---   ---    Old_age   Offline      -       1578909
202 Error_Bits_Flash_Tot_Ct 0x0000   ---   ---   ---    Old_age   Offline      -       5
203 Corr_Read_Errors_Tot_Ct 0x0000   ---   ---   ---    Old_age   Offline      -       5
204 Bad_Block_Full_Flag     0x0000   ---   ---   ---    Old_age   Offline      -       0
205 Max_PE_Count_Spec       0x0000   ---   ---   ---    Old_age   Offline      -       5000
206 Min_Erase_Count         0x0000   ---   ---   ---    Old_age   Offline      -       1
207 Max_Erase_Count         0x0000   ---   ---   ---    Old_age   Offline      -       3
208 Average_Erase_Count     0x0000   ---   ---   ---    Old_age   Offline      -       0
209 Remaining_Lifetime_Perc 0x0000   ---   ---   ---    Old_age   Offline      -       100
211 SATA_Error_Ct_CRC       0x0000   ---   ---   ---    Old_age   Offline      -       0
212 SATA_Error_Ct_Handshake 0x0000   ---   ---   ---    Old_age   Offline      -       0
213 Indilinx_Internal       0x0000   ---   ---   ---    Old_age   Offline      -       0

Warning! SMART ATA Error Log Structure error: invalid SMART checksum.
SMART Error Log Version: 1
No Errors Logged

Warning! SMART Self-Test Log Structure error: invalid SMART checksum.
SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]


Device does not support Selective Self Tests/Logging

That is all.

2012-06-16: slice 1 - restore from backup. Backup disk is mounted on /media, destination filesystem on /mnt.

Fixit# mount /dev/ad4s1a /mnt
Fixit# cd /mnt
Fixit# restore -rf /media/ad4s1a-root.image
Fixit# cd
Fixit# umount /mnt

Fixit# newfs /dev/ad4s1d
Fixit# mount /dev/ad4s1d /mnt
Fixit# cd /mnt
Fixit# restore -rf /media/ad4s1d-var.image
warning: ./.snap: File exists
expected next file 23553, got 5
Fixit# cd
Fixit# umount /mnt

Fixit# newfs /dev/ad4s1e
Fixit# mount /dev/ad4s1e /mnt
Fixit# cd /mnt
Fixit# restore -rf /media/ad4s1e-tmp.image
warning: ./.snap: File exists
expected next file 81, got 80
Fixit# cd
Fixit# umount /mnt

Fixit# newfs /dev/ad4s1f
Fixit# mount /dev/ad4s1f /mnt
Fixit# cd /mnt
Fixit# restore -rf /media/ad4s1f-usr.image

ouch! The /usr filesystem is to big for the Fixit environment. Ok, I'll have to do it from single-user then

Write a bootloader:

Fixit# gpart bootcode -b /boot/boot0 ad4
bootcode written to ad4

Reboot to single-user, mount /, /tmp, /var and /usr, and mount backup disk on /media, then

@$ cd /usr
@$ restore -rf /media/ad4s1f-usr.image
warning: ./.snap: File exists
expected next file 4108, got 1634

I'll sleep now, and check the result later. Later: the restore finished without problems or further messages. Everything appears intact on boot. Nice!

2012-06-16: I booted from a FreeBSD 8.2-release CD, switched to the LiveFS cd, and proceeded to partition my drive again:

Fixit# gpart create -s MBR ad4
ad4 created
Fixit# gpart add -t freebsd -s 29G ad4
ad4s1 added
Fixit# gpart add -t freebsd ad4
ad4s2 added
Fixit# gpart show ad4
=>       63   125045361  ad4  MBR  (60G)
         63    60817365    1  freebsd  (29G)
   60817428    64227996    1  freebsd  (31G)

Now slice it up - I used sysinstall for that. Downside, I needed to reboot from the install CD afterwards.

2012-06-15: slice 1 - info about swap:

root@kg-v7# swapinfo
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304       52  4194252     0%
root@kg-v7# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304      52k       4G     0%
2012-06-15: slice 1 - here are the backups:
root@kg-v7# ls -lh /mnt
total 84295712
drwxrwxr-x  2 root  operator   512B Jun 15 17:32 .snap
-rw-r--r--  1 root  wheel      355M Jun 15 18:03 ad4s1a-root.image
-rw-r--r--  1 root  wheel       79M Jun 15 18:05 ad4s1d-var.image
-rw-r--r--  1 root  wheel      980k Jun 15 18:05 ad4s1e-tmp.image
-rw-r--r--  1 root  wheel       76G Jun 15 18:53 ad4s1f-usr.image
-rw-r--r--  1 root  wheel      450M Jun 15 17:53 ad4s2a-root.image
-rw-r--r--  1 root  wheel       17M Jun 15 17:54 ad4s2d-var.image
-rw-r--r--  1 root  wheel      190k Jun 15 17:56 ad4s2e-tmp.image
-rw-r--r--  1 root  wheel      3.2G Jun 15 17:59 ad4s2f-usr.image

2012-06-15: slice 1 - backup, slice 2 first: ad4s2a: (root)

root@kg-v7# dump -C16 -0af /mnt/ad4s2a-root.image /dev/ad4s2a
  DUMP: Date of this level 0 dump: Fri Jun 15 17:53:27 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ad4s2a to /mnt/ad4s2a-root.image
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 461601 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 461592 tape blocks on 1 volume
  DUMP: finished in 16 seconds, throughput 28849 KBytes/sec
  DUMP: Closing /mnt/ad4s2a-root.image
  DUMP: DUMP IS DONE

ad4s2d: (/var)

root@kg-v7# dump -C16 -0af /mnt/ad4s2d-var.image /dev/ad4s2d
  DUMP: Date of this level 0 dump: Fri Jun 15 17:54:55 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ad4s2d to /mnt/ad4s2d-var.image
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 17830 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 17638 tape blocks on 1 volume
  DUMP: finished in 1 seconds, throughput 17638 KBytes/sec
  DUMP: Closing /mnt/ad4s2d-var.image
  DUMP: DUMP IS DONE

ad4s2e: (/tmp)

root@kg-v7# dump -C16 -0af /mnt/ad4s2e-tmp.image /dev/ad4s2e
  DUMP: Date of this level 0 dump: Fri Jun 15 17:56:32 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ad4s2e to /mnt/ad4s2e-tmp.image
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 216 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 198 tape blocks on 1 volume
  DUMP: finished in less than a second
  DUMP: Closing /mnt/ad4s2e-tmp.image
  DUMP: DUMP IS DONE

ad4s2f: (/usr)

root@kg-v7# dump -C16 -0af /mnt/ad4s2f-usr.image /dev/ad4s2f
  DUMP: Date of this level 0 dump: Fri Jun 15 17:57:28 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ad4s2f to /mnt/ad4s2f-usr.image
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3322589 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 3326431 tape blocks on 1 volume
  DUMP: finished in 121 seconds, throughput 27491 KBytes/sec
  DUMP: Closing /mnt/ad4s2f-usr.image
  DUMP: DUMP IS DONE

Ok, finished with slice 2. Now backup slice 1. Using '-L' since this dump is of a live filesystem ad4s1a: (root)

root@kg-v7# dump -LC16 -0af /mnt/ad4s1a-root.image /dev/ad4s1a
  DUMP: Date of this level 0 dump: Fri Jun 15 18:03:27 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/ad4s1a (/) to /mnt/ad4s1a-root.image
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 363718 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 363709 tape blocks on 1 volume
  DUMP: finished in 12 seconds, throughput 30309 KBytes/sec
  DUMP: Closing /mnt/ad4s1a-root.image
  DUMP: DUMP IS DONE

ad4s1d: (/var)

root@kg-v7# dump -LC16 -0af /mnt/ad4s1d-var.image /dev/ad4s1d
  DUMP: Date of this level 0 dump: Fri Jun 15 18:04:59 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/ad4s1d (/var) to /mnt/ad4s1d-var.image
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 81652 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 81509 tape blocks on 1 volume
  DUMP: finished in 3 seconds, throughput 27169 KBytes/sec
  DUMP: Closing /mnt/ad4s1d-var.image
  DUMP: DUMP IS DONE

ad4s1e: (/tmp)

root@kg-v7# dump -LC16 -0af /mnt/ad4s1e-tmp.image /dev/ad4s1e
  DUMP: Date of this level 0 dump: Fri Jun 15 18:05:58 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/ad4s1e (/tmp) to /mnt/ad4s1e-tmp.image
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 998 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 989 tape blocks on 1 volume
  DUMP: finished in less than a second
  DUMP: Closing /mnt/ad4s1e-tmp.image
  DUMP: DUMP IS DONE

ad4s1f: (/usr)

root@kg-v7# dump -LC16 -0af /mnt/ad4s1f-usr.image /dev/ad4s1f
  DUMP: Date of this level 0 dump: Fri Jun 15 18:06:45 2012
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/ad4s1f (/usr) to /mnt/ad4s1f-usr.image
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 79993640 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 10.13% done, finished in 0:44 at Fri Jun 15 18:56:10 2012
  DUMP: 20.98% done, finished in 0:37 at Fri Jun 15 18:54:27 2012
  DUMP: 31.82% done, finished in 0:32 at Fri Jun 15 18:53:56 2012
  DUMP: 42.68% done, finished in 0:26 at Fri Jun 15 18:53:39 2012
  DUMP: 53.54% done, finished in 0:21 at Fri Jun 15 18:53:29 2012
  DUMP: 64.38% done, finished in 0:16 at Fri Jun 15 18:53:23 2012
  DUMP: 75.29% done, finished in 0:11 at Fri Jun 15 18:53:17 2012
  DUMP: 86.10% done, finished in 0:06 at Fri Jun 15 18:53:15 2012
  DUMP: 96.56% done, finished in 0:01 at Fri Jun 15 18:53:24 2012
  DUMP: DUMP: 80002329 tape blocks on 1 volume
  DUMP: finished in 2803 seconds, throughput 28541 KBytes/sec
  DUMP: Closing /mnt/ad4s1f-usr.image
  DUMP: DUMP IS DONE

It took some time. One funny thing:

root@kg-v7# df -h /usr
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1f     15G     12G    1.7G    88%    /usr
root@kg-v7# ls -lh /mnt/ad4s1f-usr.image
-rw-r--r--  1 root  wheel    76G Jun 15 18:53 /mnt/ad4s1f-usr.image

I wonder why the dump is so much bigger than the filesystem?

2012-06-15: slice 1 - preparing to backup the ssd. Connecting a usb hard drive to hold the backup. From /var/log/messages:

Jun 15 17:26:03 kg-v7 kernel: usbd_set_config_index: could not read device status: USB_ERR_SHORT_XFER
Jun 15 17:26:03 kg-v7 kernel: ugen0.3: <JMicron> at usbus0
Jun 15 17:26:03 kg-v7 kernel: umass0: <MSC Bulk-Only Transfer> on usbus0
Jun 15 17:26:03 kg-v7 kernel: umass0:  SCSI over Bulk-Only; quirks = 0x4000
Jun 15 17:26:04 kg-v7 kernel: umass0:0:0:-1: Attached to scbus0
Jun 15 17:26:04 kg-v7 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Jun 15 17:26:04 kg-v7 kernel: da0: <SAMSUNG HN-M101MBB 0001> Fixed Direct Access SCSI-2 device
Jun 15 17:26:04 kg-v7 kernel: da0: 40.000MB/s transfers
Jun 15 17:26:04 kg-v7 kernel: da0: 953869MB (1953525168 512 byte sectors: 255H 63S/T 121601C)

Check how the hard drive is partitioned:

root@kg-v7# gpart show da0
=>        34  1953525101  da0  GPT  (931G)
          34          94       - free -  (47k)
         128     4194304    1  freebsd-swap  (2.0G)
     4194432  1949330703    2  freebsd-zfs  (929G)
root@kg-v7# ls /dev/da0*
/dev/da0    /dev/da0p1    /dev/da0p2

Let's re-partition it: delete

root@kg-v7# gpart delete -i 2 da0
da0p2 deleted
root@kg-v7# gpart delete -i 1 da0
da0p1 deleted

and create a new partition

root@kg-v7# gpart add -t freebsd-ufs da0
da0p1 added

The layout now looks like this:

root@kg-v7# gpart show da0
=>        34  1953525101  da0  GPT  (931G)
          34  1953525101    1  freebsd-ufs  (931G)

newfs it:

root@kg-v7# newfs /dev/da0p1
Reduced frags per cylinder group from 94064 to 94056 to enlarge last cyl group
/dev/da0p1: 953869.7MB (1953525100 sectors) block size 16384, fragment size 2048
    using 5193 cylinder groups of 183.70MB, 11757 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376384, 752608, 1128832, 1505056, 1881280, 2257504, 2633728, 3009952, 3386176, 3762400, 4138624,
 4514848, 4891072, 5267296, 5643520, 6019744, 6395968, 6772192, 7148416, 7524640, 7900864, 8277088,
 8653312, 9029536, 9405760, 9781984, 10158208, 10534432, 10910656, 11286880, 11663104, 12039328, 12415552,
 12791776, 13168000, 13544224, 13920448, 14296672, 14672896, 15049120, 15425344, 15801568, 16177792,
[...]
 1945078240, 1945454464, 1945830688, 1946206912, 1946583136, 1946959360, 1947335584, 1947711808,
 1948088032, 1948464256, 1948840480, 1949216704, 1949592928, 1949969152, 1950345376, 1950721600,
 1951097824, 1951474048, 1951850272, 1952226496, 1952602720, 1952978944, 1953355168

Ok, mount it

root@kg-v7# mount /dev/da0p1 /mnt
root@kg-v7# df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/da0p1    902G    4.0k    830G     0%    /mnt

Ready.

2012-06-15: slice 1 - document a few things, before backing up the system (the SSD needs a refresh / new firmware): disk (ssd) layout:

root@kg-v7# gpart show ad4
=>       63  125045361  ad4  MBR  (59G)
         63   62914257    1  freebsd  [active]  (30G)
   62914320   62131104    2  freebsd  (29G)

filesystem layout:

root@kg-v7# mount
/dev/ad4s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/ad4s1e on /tmp (ufs, local, soft-updates)
/dev/ad4s1f on /usr (ufs, local, soft-updates)
/dev/ad4s1d on /var (ufs, local, soft-updates)
procfs on /proc (procfs, local)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
root@kg-v7# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    989M    360M    550M    40%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s1e    495M    916k    455M     0%    /tmp
/dev/ad4s1f     15G     12G    1.7G    88%    /usr
/dev/ad4s1d    8.6G     78M    7.8G     1%    /var
procfs         4.0k    4.0k      0B   100%    /proc
linprocfs      4.0k    4.0k      0B   100%    /usr/compat/linux/proc
root@kg-v7# more /etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s1b             none            swap    sw              0       0
/dev/ad4s1a             /               ufs     rw              1       1
/dev/ad4s1e             /tmp            ufs     rw              2       2
/dev/ad4s1f             /usr            ufs     rw              2       2
/dev/ad4s1d             /var            ufs     rw              2       2
/dev/cd0                /cdrom          cd9660  ro,noauto       0       0
proc                    /proc           procfs  rw              0       0
linproc                 /usr/compat/linux/proc  linprocfs       rw      0       0

and for slice 2:

root@kg-v7# mount /dev/ad4s2a /mnt
root@kg-v7# more /mnt/etc/fstab
# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad4s1b             none            swap    sw              0       0
/dev/ad4s2a             /               ufs     rw              1       1
/dev/ad4s2e             /tmp            ufs     rw              2       2
/dev/ad4s2f             /usr            ufs     rw              2       2
/dev/ad4s2d             /var            ufs     rw              2       2
/dev/cd0                /cdrom          cd9660  ro,noauto       0       0
root@kg-v7# umount /mnt

that's it.

2012-06-03: slice 1 - inserting a SD card (actually microSD in SD adapter) into the built-in card reader gives me the following in /var/log/messages:

Jun  3 12:53:58 kg-v7 kernel: ugen0.3: <Alcor Micro, Corp.> at usbus0
Jun  3 12:53:58 kg-v7 kernel: umass0: <Alcor Micro, Corp. USB Card Reader, class 0/0, rev 2.00/1.00, addr 3> on usbus0
Jun  3 12:53:58 kg-v7 kernel: umass0:  SCSI over Bulk-Only; quirks = 0x4001
Jun  3 12:53:59 kg-v7 kernel: umass0:0:0:-1: Attached to scbus0
Jun  3 12:53:59 kg-v7 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Jun  3 12:53:59 kg-v7 kernel: da0: <Generic SD Card Reader 1.00> Removable Direct Access SCSI-0 device
Jun  3 12:53:59 kg-v7 kernel: da0: 40.000MB/s transfers
Jun  3 12:53:59 kg-v7 kernel: da0: 1876MB (3842048 512 byte sectors: 255H 63S/T 239C)
Jun  3 12:53:59 kg-v7 kernel: da1 at umass-sim0 bus 0 scbus0 target 0 lun 1
Jun  3 12:53:59 kg-v7 kernel: da1: <Generic CF Card Reader 1.01> Removable Direct Access SCSI-0 device
Jun  3 12:53:59 kg-v7 kernel: da1: 40.000MB/s transfers
Jun  3 12:53:59 kg-v7 kernel: da1: Attempt to query device size failed: NOT READY, Medium not present
Jun  3 12:53:59 kg-v7 kernel: da2 at umass-sim0 bus 0 scbus0 target 0 lun 2
Jun  3 12:53:59 kg-v7 kernel: da2: <Generic MS Card Reader 1.03> Removable Direct Access SCSI-0 device
Jun  3 12:53:59 kg-v7 kernel: da2: 40.000MB/s transfers
Jun  3 12:53:59 kg-v7 kernel: da2: Attempt to query device size failed: NOT READY, Medium not present
Jun  3 12:53:59 kg-v7 kernel: GEOM: da0: partition 4 does not start on a track boundary.
Jun  3 12:53:59 kg-v7 kernel: GEOM: da0: partition 4 does not end on a track boundary.
Jun  3 12:53:59 kg-v7 kernel: GEOM: da0: partition 3 does not start on a track boundary.
Jun  3 12:53:59 kg-v7 kernel: GEOM: da0: partition 3 does not end on a track boundary.
Jun  3 12:53:59 kg-v7 kernel: GEOM: da0: partition 2 does not start on a track boundary.
Jun  3 12:53:59 kg-v7 kernel: GEOM: da0: partition 2 does not end on a track boundary.

Interesting that this reader seems to work.

root@kg-v7# ls -l /dev/da0*
crw-r-----  1 root  operator    0, 110 Jun  3 12:53 /dev/da0
crw-r-----  1 root  operator    0, 113 Jun  3 12:53 /dev/da0s1
crw-r-----  1 root  operator    0, 114 Jun  3 12:53 /dev/da0s2
crw-r-----  1 root  operator    0, 115 Jun  3 12:53 /dev/da0s3
crw-r-----  1 root  operator    0, 116 Jun  3 12:54 /dev/da0s4

Does fdisk get any info out of the card?

root@kg-v7# fdisk /dev/da0
******* Working on device /dev/da0 *******
parameters extracted from in-core disklabel are:
cylinders=239 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=239 heads=255 sectors/track=63 (16065 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 6 (0x06),(Primary DOS, 16 bit FAT (>= 32MB))
    start 2212056, size 1627920 (794 Meg), flag 0
    beg: cyl 693/ head 0/ sector 1;
    end: cyl 1023/ head 56/ sector 56
The data for partition 2 is:
sysid 131 (0x83),(Linux native)
    start 56, size 979888 (478 Meg), flag 0
    beg: cyl 0/ head 1/ sector 1;
    end: cyl 306/ head 56/ sector 56
The data for partition 3 is:
sysid 131 (0x83),(Linux native)
    start 979944, size 979944 (478 Meg), flag 0
    beg: cyl 307/ head 0/ sector 1;
    end: cyl 613/ head 56/ sector 56
The data for partition 4 is:
sysid 130 (0x82),(Linux swap or Solaris x86)
    start 1959888, size 252168 (123 Meg), flag 0
    beg: cyl 614/ head 0/ sector 1;
    end: cyl 692/ head 56/ sector 56

Yes, it does. More checking:

root@kg-v7# mount -t msdosfs /dev/da0s1 /mnt
root@kg-v7# l /mnt
./                        NeronGPS/                 qtopia_db.sqlite-journal*
../                       qtopia_db.sqlite*         root/

Aha, so this is the old card from my Neo 1973 or Neo Freerunner.

2012-06-02: slice 1 - I upgrade a bunch of ports. Main targets: Xorg 7.5.2, Xfce 4.10. Afterwards I had to portupgrade the solidcoin port too, because of a shared library upgrade. solidcoin is now extremely slow when starting up, it takes a few minutes before the main window shows up.