f90a [Solved] 7.1-Release to 8.1-Release w/raid5 - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old January 25th, 2011, 01:50
puzzlediceman puzzlediceman is offline
Junior Member
 
Join Date: Jan 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 7.1-Release to 8.1-Release w/raid5

I am a newbie to this forum so please be gentle...

7.1-Release was running wonderfully. I followed the instructions for the FreeBSD Update. All was going well until the first "shutdown -r now" and the box didn't come back. This is not a critical system so I have the luxury to play.

I went to the console and it was at a:
Code:
root mount error
try to mount from ufs:/dev/aacd0s1a
and the rest of the recomendation about rebooting and editing fstab...I could boot from a cd and reinstall but that would be no fun.

after hacking...I can get it to a # prompt by entering /dev/aacd0 but the system is munged (technical term).

? reveals
Code:
ufsid/4d2f41f404404dc0 ufsid/4d2f41f46156b62b ufsid/4d2f42059bf43035 ufsid/4d2f41f4e3c83449 aacd0f aacd0e aacd0d aacd0b aacd0a aacd0 acd0 fd0 

fstab
/dev/aacd0slb             none               swap              sw
/dev/aacd0s1a             /                  ufs               rw
/dev/aacd0s1e             /tmp               ufs               rw
/dev/aacd0s1f             /usr               ufs               rw
/dev/aacd0s1d             /var               ufs               rw
any thoughts or input would be appreciated.

Last edited by DutchDaemon; January 25th, 2011 at 01:59. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old January 25th, 2011, 08:55
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

It's most likely due to a stale copy of the disklabel. I've had the same issue but with a 'regular' harddrive. This seemed to solve it (make a backup though!):


# dd if=/dev/zero of=/dev/aacd0 count=1 oseek=1
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #3  
Old January 25th, 2011, 17:23
puzzlediceman puzzlediceman is offline
Junior Member
 
Join Date: Jan 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

implemented the command as stated; rebooted; after the post and bios messages, I get nothing... not even a boot device not found.

Am I reinstalling? or is there a recovery method?
Reply With Quote
  #4  
Old January 25th, 2011, 17:27
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Hmmm... It's not supposed to do nothing. It's supposed to boot properly. Did you make a back up of that sector?

Try booting a livefs and see if the partitions and slices are still there.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old January 25th, 2011, 17:57
puzzlediceman puzzlediceman is offline
Junior Member
 
Join Date: Jan 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Booted with install cd. Partition was there but no slices. No backup of the sector was made... it's ok though, this is not a production system, I am doing this on a test box before I upgrade the production systems. I need the practice.

I am installing 7.1-RELEASE again and going to try the update to 8.1-RELEASE.

Should this be in the testing forum?

Thanks for your help.

Last edited by DutchDaemon; January 25th, 2011 at 19:37.
Reply With Quote
  #6  
Old January 25th, 2011, 21:17
SirDice's Avatar
SirDice SirDice is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

Quote:
Originally Posted by puzzlediceman View Post
Partition was there but no slices.
I counted 1 slice and 5 partitions, not the other way around

Quote:
No backup of the sector was made... it's ok though, this is not a production system, I am doing this on a test box before I upgrade the production systems. I need the practice.
Good idea.

I think mine was a little different too. It's been a while but I remember that disk being a "dangerously dedicated" one. I do remember having to jump through a lot of hoops. Like reverting to a 7.2 kernel while still having the 8.0 base. That was fun...
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #7  
Old January 26th, 2011, 00:53
puzzlediceman puzzlediceman is offline
Junior Member
 
Join Date: Jan 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok...I got to the bottom of this.

Reinstalled 7.1-RELEASE, followed the instructions for the upgrade to 8.1-RELEASE and the same thing happened. Here is what I did that gave me a stable system that worked through the upgrade.

at the "root mount error" enter

ufs:/dev/aacd0

which the slice?

this provided me with a # prompt.

I then mounted each of the partitions manually rw

Code:
mount -w /dev/aacd0a /
mount -w /dev/aacd0e /tmp
mount -w /dev/aacd0f /usr
mount -w /dev/aacd0d /var
Edited fstab with the corrected device names acquired from /dev. Old fstab included a s1 between the 0 and letter on each device. (ex: aacd0s1a instead of aacd0a)
And wallah!

Apparently the partition device names in /dev are renamed by the upgrade and there was a mismatch with the old fstab file.

Even though the hint said how to repair this...as a newbie I had no idea how to edit the fstab in the state the system was in. nor did I know where to look.

Hopefully this will help another novice person in the same situation.

Last edited by DutchDaemon; January 26th, 2011 at 02:09. Reason: proper formatting: http://forums.freebsd.org/showthread.php?t=8816
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
[Solved] Should I wait for 8.2-RELEASE or install a 8.1-RELEASE? Martillo1 Installing & Upgrading 10 February 2nd, 2011 02:50
[Solved] Upgrading from 8.0-RELEASE-p4 to 8.0-RELEASE-p5 rbelk Installing & Upgrading 7 September 27th, 2010 21:49
[Solved] Upgrading from 8.0-Release to 8.1-Release didn't upgrade ZFS olav Installing & Upgrading 6 July 21st, 2010 08:02
[Solved] Best advice for upgrade FreeBSD 7.2-RELEASE-p4 to last FreeBSD 8.0 Release mfaridi Installing & Upgrading 4 January 12th, 2010 15:36
8.0-release gpatrick General 5 October 31st, 2009 00:28


All times are GMT +1. The time now is 14:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0