DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th June 2008
disappearedng disappearedng is offline
Shell Scout
 
Join Date: May 2008
Posts: 128
Thanked 0 Times in 0 Posts
Default Took hardisk out and replaced to another machine: CAN"T Mount

Hi everyone.
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
fsck -p
/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.
Thx
Reply With Quote
  #2   (View Single Post)  
Old 16th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Thanked 112 Times in 104 Posts
Default

put it back in the old pc or use a livecd or use a boot disk (typically a floppy or install cd)

???
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #3   (View Single Post)  
Old 17th June 2008
Weaseal's Avatar
Weaseal Weaseal is offline
Package Pilot
 
Join Date: May 2008
Location: East Coast, US
Posts: 177
Thanked 7 Times in 7 Posts
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
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


All times are GMT. The time now is 10:41 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick