Freebsd problem

Hi experts,  we use a freebsd as our proxy machine and had encounter a little problem recent


please see image below
the problem could be hardware related but I'm not sure topic to select below

the machine doesn't go but single user mode... fails to mount.
if it's a bad disk.... can it be cloned,  whet software would you recommend?
thanx
photo.JPG
SchoemansAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
gheistConnect With a Mentor Commented:
It would help posting in freebsd area. basically / filesystem fails automated fsck and you need to run fsck manually

So: press Enter for /bin/sh

fsck -p /
(generally you would say Y to any questions asked adding -y parameter to fsck

thats it.... reboot or exit single mode shell

now check disk for defects using smartctl etc.

pkg_add -r smartmontools
smartctl -a /dev/ad0

...
if it says failed status you need new disk or new server with two disks that you can soft-mirror...
0
 
rindiCommented:
Generally any tool can be used to clone disks. The OS or file-systems on that disk don't matter. I usually prefer the PartedMagic LiveCD and CloneZilla which is on it, but as the publisher of that CD has started charging for each download, I don't recommend it anymore. Rather you can download the CloneZilla LiveCD.

But, cloning a bad disk isn't really a good idea, as you would clone the errors with it. Of course as a backup you can still do that.

I'd then run the disk through it's manufacturer's diagnostic tool, and then decide on what to do according to the results you get. You'll find those tools on the UBCD (older versions of the CD may still include older versions of PartedMagic which could still be downloaded for free, so you may want to get an older version of it):

http://ultimatebootcd.com

If the diagnostic didn't find any faults, or if the tool was able to repair those it found, you should then run your file-system's checking and repair utility. On Linux that would be the fsck tool, and I guess that is similar on BSD.
0
 
SchoemansAuthor Commented:
can one also run a check disk on this via windows? or is there another way... it only happened after a little hard shutdown... I'll  try your methods.

you right,  fsck -y

some say this can be done by booting from a disk and running the check,  but I'm a newbie to this... do you know how?
0
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

 
rindiCommented:
No, you can't run the chkdsk via windows, the file-system is so totally different from fat or ntfs.

You should be able to run it when booted into single user mode. Important is that the file-system in question shouldn't be mounted. Another option would be via your BSD boot CD. But before doing the fsck, you must make sure the disk is fine by running the diagnostic. If it isn't, you can cause more harm than good with the fsck. It also depends on what file-system was used. If it is ext2, that is an fs without fault-tolerance, so errors would just be deleted. Anything above that (ext3 or 4) are fault tolerant.
0
 
SchoemansAuthor Commented:
I can't boot into single user mode...
when I press 4, no avail... or when I press space bar to pause the timer, it doesn't take effect

using a usb keyboard,  does it play a role?
0
 
SchoemansAuthor Commented:
Hi rindi,

you seem  to  be the only active expert available right now... is it possible for you to comment on this question of mine posted yesterday...


windows 8 password reset

I'm not sure if you can see it from your side but let me know what I should do for you to see it.
thanx,  it's quite important too.
0
 
rindiCommented:
Boot with the installation CD. But again, first diagnose the disk.
0
 
SchoemansAuthor Commented:
will do, thanx.... downloaded UBCD.

did you get hold of the question or my I quickly ask you on  this forum?
0
 
rindiCommented:
The other Question I can't really help much with, as I don't have any UEFI hardware where I could try things out on. Maybe you could try connecting the disk to a conventional PC and run the password reset tool from there.
0
 
SchoemansAuthor Commented:
back on this... complete UBCD seatools short test and long test...  no errors detected on the seagate drive.

do know of a link where can one can download these  OS? I'll do research on my side too
0
 
rindiCommented:
0
 
SchoemansAuthor Commented:
yes,  freebsd
0
 
rindiCommented:
Then the Link I posted above should be fine.
0
 
SchoemansAuthor Commented:
cool,  I've downloaded FreeBSD-10.0-RC1-i386-disc1.iso ...

regarding the repair producer...  does this have options or will it automatically try to install when I boot from it.
0
 
SchoemansAuthor Commented:
okay booted from it.... there's an install, shell and live cd options
0
 
SchoemansAuthor Commented:
I booted into live cd

df to check whats mounted because they say it's safe to umount  before once runs fsck -y

/dev/md0
/dev/md1

those were the results and none of them could be unmounted, error: they are busy.

so I think they are part of the live cd.

how do I see whether I can see my hard drive and what's the procedure  check it?

many thanx
0
 
rindiConnect With a Mentor Commented:
md0 and md1 looks like it is a RAID setup. I don't have much experiance with that, particularly not under BSD.

From the part I can see in your Question's screenshot, I don't think the file-system is mounted. You could try running fsck directly from there. Otherwise try using the same device names (I can't see that properly) from within the LiveCD.
0
 
SchoemansAuthor Commented:
I only have on hard drive but I'll try your second suggestion
0
 
rindiCommented:
EE is consolidating the Zones, so there is no FreeBSD or BSD Zone anymore. The Unix Zone is now the best location.
0
 
gheistCommented:
OK :) will take a note...
0
 
SchoemansAuthor Commented:
it's okay the proxy server will be re-installed
0
 
gheistCommented:
Pay attention to hardware monitoring and check the ways to rebuild mirror while installing...
0
 
SchoemansAuthor Commented:
thanx this proxy  has been rebuild
0
 
SchoemansAuthor Commented:
the client bought a new machine and the drive of the old one seems corrupt
0
 
gheistCommented:
install smartmontools to monitor disk health....
0
 
SchoemansAuthor Commented:
Cool
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.