UFS Setting up UFS on GPT/EFI system gives uncorrectable parity/CRC errors

fusion809

Member


Messages: 24

Hi,

I've heard that FreeBSD has a superior stability and harmony among its various components compared to Linux so I've been trying to set things up so I can give it a go as my primary OS for a while. Unfortunately, on my main laptop (HP Envy 17) which has UEFI firmware and a GPT partition table the FreeBSD installer (for FreeBSD 11.2) is having trouble creating a EFI and UFS partition. I took some pictures of what I saw on my PC during the file system set up process and the best of them is attached. If it helps I've also attached what running:

Code:
cfdisk /dev/sda
on my openSUSE Tumbleweed (Linux) installation shows. As you can see I have quite a few Linux distros installed alongside. The last two partitions (the EFi and FreeBSD UFS) partitions were set up by the installer.

If anyone has a fix for this I'll much appreciate it and I'll provide whatever further information you require, if I can.

I've managed to install FreeBSD 11.2 pretty problem free to virtual machines with BIOS, a MBR partition table and a Linux distribution installed alongside. I've also managed this with one of my old laptops with BIOS/MBR, so this seems to be a GPT/EFI issues, either that or a mere coincidence that for some other reason this PC is being difficult.

Thanks for your time,
Brenton
 

Attachments

OP
OP
fusion809

fusion809

Member


Messages: 24

Would ZFS be a decent workaround? The Auto (ZFS) option doesn't seem to give one the option to install alongside an existing Linux system, it seems it'll only wipe the existing partitions on one's disk and install FreeBSD in a ZFS root it sets up.
 

Bobi B.

Well-Known Member

Reaction score: 133
Messages: 317

Is it possible, that your HDD/cabling is failing and the outer disk area is affected first? Maybe it is worth to run sysutils/smartmontools to see HDD's S.M.A.R.T attributes ( smartctl -a /dev/ada0 or smartctl -a /dev/sda from Linux). You can do this from Linux, as well.
 
OP
OP
fusion809

fusion809

Member


Messages: 24

Linux distros install and run normally so it seems unlikely there's a defect in the disk. Here's the output when run from CentOS 7:

Code:
smartctl 6.5 2016-05-07 r4318 [x86_64-linux-3.10.0-862.11.6.el7.x86_64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Blue Mobile
Device Model:     WDC WD10JPVX-00JC3T0
Serial Number:    WD-WX91E66F2U8T
LU WWN Device Id: 5 0014ee 6b225101f
Firmware Version: 01.01A01
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 1.5 Gb/s)
Local Time is:    Mon Aug 20 17:55:29 2018 AEST
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:  (0x84)    Offline data collection activity
                    was suspended by an interrupting command from host.
                    Auto Offline Data Collection: Enabled.
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:         (17460) seconds.
Offline data collection
capabilities:              (0x7b) SMART execute Offline immediate.
                    Auto Offline data collection on/off support.
                    Suspend Offline collection upon new
                    command.
                    Offline surface scan supported.
                    Self-test supported.
                    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:      ( 195) minutes.
Conveyance self-test routine
recommended polling time:      (   5) minutes.
SCT capabilities:            (0x7035)    SCT Status supported.
                    SCT Feature Control supported.
                    SCT Data Table supported.

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     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   180   177   021    Pre-fail  Always       -       1975
  4 Start_Stop_Count        0x0032   099   099   000    Old_age   Always       -       1510
  5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   091   091   000    Old_age   Always       -       7003
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   000    Old_age   Always       -       1481
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       706
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       303707
194 Temperature_Celsius     0x0022   110   096   000    Old_age   Always       -       37
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       67
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

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%      6994         -
# 2  Short offline       Completed without error       00%      6980         -
# 3  Short offline       Completed without error       00%      6968         -
# 4  Short offline       Completed without error       00%      6954         -
# 5  Short offline       Completed without error       00%      6941         -
# 6  Short offline       Completed without error       00%      6923         -
# 7  Short offline       Completed without error       00%      6909         -
# 8  Short offline       Completed without error       00%      6893         -
# 9  Short offline       Completed without error       00%      6860         -
#10  Short offline       Completed without error       00%      6845         -
#11  Short offline       Completed without error       00%      6832         -
#12  Short offline       Completed without error       00%      6799         -
#13  Short offline       Completed without error       00%      6777         -
#14  Extended offline    Interrupted (host reset)      70%      6768         -
#15  Short offline       Completed without error       00%      6759         -
#16  Short offline       Completed without error       00%      6725         -
#17  Short offline       Completed without error       00%      6706         -
#18  Short offline       Completed without error       00%      6694         -
#19  Short offline       Completed without error       00%      6681         -
#20  Short offline       Completed without error       00%      6664         -
#21  Short offline       Completed without error       00%      6649         -

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.
I don't fully understand the output but it seems fairly error-free from what I can see. I'm very grateful for your help, however. I was beginning to think I had just asked a question as difficult to answer as the meaning of life.
 

k.jacker

Aspiring Daemon

Reaction score: 330
Messages: 567

Bobi B. wasn't wrong about the cable:
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 67
199 UDMA CRC Error Rate: The number of errors occurring when transferring data via a cable between a disk and a motherboard port. If the value decreases, try replacing the ATA cable. It does not directly indicate the drive is dying, but regular backups are recommended.

This value is 0 on all of my WD Red drives (10 pieces), so it's not optimal at least that your drive shows 67. I would try a new cable and see if that helps.

From my experience, USB connected drives show the same output when the usb port or bridge chip is reset.
something about data transfer due to cable or controller issues must be the problem.

Further, you can't have two EFI partitions, only the first one will ever be be read according to the UEFI specification.
I don't dual boot, but if you search the forum I guess you'll find information about that.
 
OP
OP
fusion809

fusion809

Member


Messages: 24

Well it does seem it was the disk's fault as I decided to switch from using /dev/sda (/dev/ada0, according to BSD syntax) to using /dev/sdb (/dev/ada1) (I have two 1 TB HDDs in my laptop), with /dev/sdb being newer than sda and the result was the install went seamlessly.
 
Top