Live CD to run fsck

ryandasilva

Dabbler
Joined
Jun 12, 2021
Messages
27
Hey guys. Quick question. I need to run fsck offline to check the health of my disks. I see alot of references to booting off a live cd to do this but nobody ever says which live cd they are referring to. Will any linux distro work? Or does it have to be a current version of FreeBSD? Or does the TrueNAS install USB have a live boot option that i just never noticed? I only have an ubuntu live usb at the moment and it does support zfs but something seems not right about using ubuntu do check a freebsd system... maybe im totally wrong though.

Your help is appreciated. Thanks in advance. Stay safe! Cheers, Ryan
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
There is no fsck in ZFS and you can do a zpool scrub with the system up and running. You should do so regularly and automated, anyway. There's a section in the UI for that.
 

ryandasilva

Dabbler
Joined
Jun 12, 2021
Messages
27
There is no fsck in ZFS and you can do a zpool scrub with the system up and running. You should do so regularly and automated, anyway. There's a section in the UI for that.
thanks for your reply. im having an issue where on shutdown it hangs on preparing entropy or something along those lines. eventually after a while it tells me i should run fsck with some paramaters that i cant remember off hand. you make a good point about fsck and zfs but my question still stands but with zfs's utilities... if i wanted to run a zpool scrub or a check on pool from a live os what would i use? live usb of freebsd/truenas or will any linux distro (like ubuntu) work?
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
All disks in TN are in pools - so whichever pool you are having an issue with scrub it.
If datapools then use use the storage
If its the boot pool, then its under system/boot
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Just type zpool scrub <poolname> while the system is up and running.

The output of zpool status -v from your system would be interesting for help, too.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Just a minute. What version of FreeNAS/TrueNAS are you running?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Looking at my system's /var/log/console.log, these entropy messages appear on shutdown:

Nov 11 15:49:29 raven Writing entropy file: .
Nov 11 15:49:29 raven Writing early boot entropy file: .

The entropy files are written to the boot pool. Is your boot pool on a thumb drive, by any chance? It seems your boot pool may be failing.

You can try scrubbing your boot pool via zpool scrub freenas-boot to try to repair your boot pool, but my experience has been that errors found can't really be fixed, as most boot pools are single devices. It's better to export your config, reinstall to new media, and then reupload your saved config.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
@Samuel Tai It's called "boot-pool" instead of "freenas-boot" in current installations. So let's wait for the OP to report his version.
 
Top