Sometimes when I start my laptop it does not start with the following message
zfsboot: error 1 lba 48
zfsboot: error 1 lba 0
zfsboot: no ZFS pools located, can't boot

FreeBSD ZFSroot is installed on a MBR partitioned hard disk in the second slice which has two partitions: freebsd-zfs and freebsd-swap. I installed the boot code according to the wiki with:

dd if=/mnt2/boot/zfsboot of=/dev/ada0s2 count=1
dd if=/mnt2/boot/zfsboot of=/dev/ada0s2a skip=1 seek=1024

It just happens sometimes.

The reason I ask is because I want to backup and then repartition the disk with GPT and just put FreeBSD ZFSroot on it, but maybe I should use UFS instead?

I used smartctl to get some diskinfo and the only thing I can think of is the error disk power-on. 40 51 7c e4 84 fb e8 Error: UNC 124 sectors at LBA = 0x08fb84e4 = 150701284

There are no reallocated sectors though, to me it seems the disk should be fine?
Does anybody have a suggestion?

Thanks in advance.

Output of smartctl below:

smartctl 6.0 2012-10-10 r3643 [FreeBSD 9.1-RC3-p1 i386] (local build)
Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Hitachi Travelstar 5K160
Device Model:     Hitachi HTS541612J9AT00
Serial Number:    SB0D04E4H02PUE
LU WWN Device Id: 5 000cca 51ece21a7
Firmware Version: SBDOA70H
User Capacity:    120,034,123,776 bytes [120 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA/ATAPI-7 T13/1532D revision 1
Local Time is:    Thu Dec 13 09:41:34 2012 CET
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:         (  645) seconds.
Offline data collection
capabilities:              (0x5b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    Selective Self-test supported.
SMART capabilities:            (0x0003)    Saves SMART data before entering
                    power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01)    Error logging supported.
                    General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   2) minutes.
Extended self-test routine
recommended polling time:      (  73) 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 0x000b 100 100 062 Pre-fail Always - 0 2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline - 0 3 Spin_Up_Time 0x0007 083 083 033 Pre-fail Always - 3 4 Start_Stop_Count 0x0012 099 099 000 Old_age Always - 2754 5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0 7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0 8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline - 0 9 Power_On_Hours 0x0012 095 095 000 Old_age Always - 2312 10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 2673 191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 58 193 Load_Cycle_Count 0x0012 097 097 000 Old_age Always - 36981 194 Temperature_Celsius 0x0002 250 250 000 Old_age Always - 22 (Min/Max 13/45) 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 62 197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0 223 Load_Retry_Count 0x000a 100 100 000 Old_age Always - 0

SMART Error Log Version: 1
ATA Error Count: 328 (device log contains only the most recent five errors)
    CR = Command Register [HEX]
    FR = Features Register [HEX]
    SC = Sector Count Register [HEX]
    SN = Sector Number Register [HEX]
    CL = Cylinder Low Register [HEX]
    CH = Cylinder High Register [HEX]
    DH = Device/Head Register [HEX]
    DC = Device Command Register [HEX]
    ER = Error register [HEX]
    ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 328 occurred at disk power-on lifetime: 1723 hours (71 days + 19 hours) When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
40 51 7c e4 84 fb e8 Error: UNC 124 sectors at LBA = 0x08fb84e4 = 150701284

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 00 60 84 fb e8 00      00:03:11.900  READ DMA
  27 00 00 00 00 00 e0 00      00:03:11.900  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 02      00:03:11.900  IDENTIFY DEVICE
ef 03 45 00 00 00 a0 02 00:03:11.900 SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      00:03:11.900  READ NATIVE MAX ADDRESS EXT

Error 327 occurred at disk power-on lifetime: 1723 hours (71 days + 19 hours) When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
40 51 7c e4 84 fb e8 Error: UNC 124 sectors at LBA = 0x08fb84e4 = 150701284

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 00 60 84 fb e8 00      00:03:07.900  READ DMA
  27 00 00 00 00 00 e0 00      00:03:07.800  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 02      00:03:07.800  IDENTIFY DEVICE
ef 03 45 00 00 00 a0 02 00:03:07.800 SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      00:03:07.800  READ NATIVE MAX ADDRESS EXT

Error 326 occurred at disk power-on lifetime: 1723 hours (71 days + 19 hours) When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
40 51 7c e4 84 fb e8 Error: UNC 124 sectors at LBA = 0x08fb84e4 = 150701284

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 00 60 84 fb e8 00      00:03:03.800  READ DMA
  27 00 00 00 00 00 e0 00      00:03:03.800  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 02      00:03:03.800  IDENTIFY DEVICE
ef 03 45 00 00 00 a0 02 00:03:03.700 SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      00:03:03.700  READ NATIVE MAX ADDRESS EXT

Error 325 occurred at disk power-on lifetime: 1723 hours (71 days + 19 hours) When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
40 51 7c e4 84 fb e8 Error: UNC 124 sectors at LBA = 0x08fb84e4 = 150701284

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 00 60 84 fb e8 00      00:02:59.700  READ DMA
  27 00 00 00 00 00 e0 00      00:02:59.700  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 02      00:02:59.700  IDENTIFY DEVICE
ef 03 45 00 00 00 a0 02 00:02:59.700 SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      00:02:59.700  READ NATIVE MAX ADDRESS EXT

Error 324 occurred at disk power-on lifetime: 1723 hours (71 days + 19 hours) When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
40 51 7c e4 84 fb e8 Error: UNC 124 sectors at LBA = 0x08fb84e4 = 150701284

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  c8 00 00 60 84 fb e8 00      00:02:55.700  READ DMA
  27 00 00 00 00 00 e0 00      00:02:55.600  READ NATIVE MAX ADDRESS EXT
  ec 00 00 00 00 00 a0 02      00:02:55.600  IDENTIFY DEVICE
ef 03 45 00 00 00 a0 02 00:02:55.600 SET FEATURES [Set transfer mode]
  27 00 00 00 00 00 e0 00      00:02:55.600  READ NATIVE MAX ADDRESS EXT

SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1  Short offline       Completed without error       00% 1772         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to