Took hardisk out and replaced to another machine: CAN"T Mount
I took out the harddisk of my computer and placed it into a new one. When I ran Freebsd 7.0 on it, I get a the following error:
can't stat /dev/ad4s2e: No such file or directory
can't stat /dev/ad4s2d: No such file or directory
can't stat /dev/ad4s2f: No such file or directory
because my old computer keeps rebooting half way and I think that my FreeBSD partition has been damaged because of that.
I have looked into a few sources and decided to run fsck to check.
Upon entering fsck, I get errors such as
/dev/ad0s2c No write access
/dev/ad0s2c unexpected inconsistency; run fsck manually
So I have decided to boot into single user mode. However, this is difficult for me because normal boot will cause my system to crash. I can only boot with acpi disabled but when I boot into single user mode, I am getting the similar crash as the system inidicates:
GEOM_Label for provider ad4s1 is ntfs/MAX_Software
and then the computer freezes:
I think that my harddisk may have a few bad sectors, and this is causing the system to crash when it loads the geom_label line to the screen. Aside from reformatting, how do I do the following:
1) Run fsck or similar or any tools that I can burn to a cd to check for bad sectors on my harddisk?
2) Rebuild my /etc/fstab
3) Edit the manual so that my FreeBSD system always start with ACPI disabled
4) log into single user mode with ACPI disabled?
Any help will be appreciated. I am really lost.
put it back in the old pc or use a livecd or use a boot disk (typically a floppy or install cd)
Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
It's very likely that while your old machine saw the disk as ad4, the new one could see it as ad0,1,2... etc. I'd take TerryP's suggestion and get a FreeSBIE LiveCD, and attempt to find out through dmesg what it's showing up as (dmesg | grep ad). Then you can mount the disk and modify fdisk as needed. After that's done, if you still want, run fsck through the livecd as well, but I'd recommend seeing if it works after modifying fstab first.
As for ACPI, see if you can kill it through the BIOS.
FreeBSD addict since 4.2-RELEASE.
My FreeBSD wiki.
|Thread||Thread Starter||Forum||Replies||Last Post|
|Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia"||jb_daefo||Guides||0||5th October 2009 09:31 PM|
|How to "configure" and mount a USB Drive already in use||IronForge||OpenBSD General||10||1st September 2009 05:36 PM|
|"Thanks" and "Edit Tags".||diw||Feedback and Suggestions||2||29th March 2009 12:06 AM|
|Newbie-friendly "printing in OpenBSD" guide wanted||Shagbag||OpenBSD Packages and Ports||5||7th July 2008 09:26 PM|