13f52 Mounting Root Failed after Update - 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 June 11th, 2012, 04:27
markfisher markfisher is offline
Junior Member
 
Join Date: Oct 2010
Posts: 56
Thanks: 19
Thanked 0 Times in 0 Posts
Default Mounting Root Failed after Update

Hi

OS: FreeBSD 9.0 - i386
Method of Updating: http://www.wonkity.com/~wblock/docs/...uildworld.html

After reboot I get:
Code:
Trying to mount root from ufs:/dev/ada0p2 [rw] ...
mountroot: waiting for device /dev/ada0p2 ...
Mounting from ufs:/dev/ada0p2 failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/ada0p2
  vfs.root.mountfrom.options=rw

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:tank
        cd9660:/dev/acd0 ro
          (which is equivalent to: mount -t cd9660 -o ro .dev.acd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot>
When I type '?', the list is empty. Can someone please help me on how to fix this problem?

Thank you
Reply With Quote
  #2  
Old June 11th, 2012, 05:07
kpa kpa is offline
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,136
Thanks: 46
Thanked 507 Times in 430 Posts
Default

Boot from the 9.0 memstick or install cd and see what # gpart show says about the disk and partitions.
Reply With Quote
  #3  
Old June 11th, 2012, 05:27
markfisher markfisher is offline
Junior Member
 
Join Date: Oct 2010
Posts: 56
Thanks: 19
Thanked 0 Times in 0 Posts
Default

@kpa
Thanks for your reply.

gpart show shows:
Code:
ada0  GPT
   1  freebsd-boot  (64k)     
   2  freebsd-ufs   (2.0G)
   3  freebsd-swap  (4.0G)
   4  freebsd-ufs   (5.0G)
   5  freebsd-ufs   (30G)
   6  freebsd-ufs   (20G)
   7  freebsd-ufs   (218G)
Reply With Quote
  #4  
Old June 11th, 2012, 21:44
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Did you use a custom kernel?
Reply With Quote
  #5  
Old June 11th, 2012, 23:27
markfisher markfisher is offline
Junior Member
 
Join Date: Oct 2010
Posts: 56
Thanks: 19
Thanked 0 Times in 0 Posts
Default

@wblock@
Yes I did.
Reply With Quote
  #6  
Old June 11th, 2012, 23:49
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Put the kernel config file on pastebin.com and post a link so we can see it.
Reply With Quote
  #7  
Old June 12th, 2012, 02:12
markfisher markfisher is offline
Junior Member
 
Join Date: Oct 2010
Posts: 56
Thanks: 19
Thanked 0 Times in 0 Posts
Default

Here is my Custom Kernel Configuration File:

http://pastebin.com/embed_iframe.php?i=zQvgCak9
Reply With Quote
  #8  
Old June 12th, 2012, 03:53
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

Instead of editing a copy of GENERIC, it's better to include it and disable devices and options. See Simplifying FreeBSD Kernel Config Files for an example.

First guess at why it's not working is that too much has been removed. For example, some of the SCSI devices are needed for USB mass storage.

PS: including cpu I586_CPU allows some assembly optimizations for better performance: http://lists.freebsd.org/pipermail/f...ne/230491.html.
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
markfisher (June 16th, 2012)
  #9  
Old June 12th, 2012, 04:01
kpa kpa is offline
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,136
Thanks: 46
Thanked 507 Times in 430 Posts
Default

I think you would need at least this much more:
Code:
options         ATA_CAM         # Handle legacy controllers with CAM
options         ATA_STATIC_ID   # Static device numbering
For recovery you could just copy the GENERIC kernel off the install media over what is now installed, should work fine.
Reply With Quote
The Following User Says Thank You to kpa For This Useful Post:
markfisher (June 16th, 2012)
  #10  
Old June 16th, 2012, 18:07
markfisher markfisher is offline
Junior Member
 
Join Date: Oct 2010
Posts: 56
Thanks: 19
Thanked 0 Times in 0 Posts
Default

@kpa
Adding those two options fixed the problem.

Thank you.
Reply With Quote
  #11  
Old June 16th, 2012, 20:46
je33 je33 is offline
Junior Member
 
Join Date: Jun 2010
Posts: 55
Thanks: 15
Thanked 4 Times in 4 Posts
Default

wblock@: I would like to turn off debug symbols for my kernel compliation however, I have not been able to locate the keyword to use in my MYKERNEL that will turn off compilation with debug symbols in the included GENERIC configuration file.

My MYKERNEL contains:
Code:
include GENERIC
nocpu   i486_CPU
ident   MYKERNEL

nooptions       INET6

nodevice        eisa

nodevice        fdc
Is there a full list of the directives that may be used to override?
Reply With Quote
  #12  
Old June 17th, 2012, 03:49
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,851
Thanks: 445
Thanked 1,829 Times in 1,495 Posts
Default

See config(5). But start a new thread for this.
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
Mounting DVD drive shows error message: AutoSense failed mnlnl4 Peripheral Hardware 0 May 13th, 2012 03:29
[Solved] pxe boot "mounting root filesystem rw failed" Beeblebrox Web & Network Services 2 February 26th, 2012 19:13
[Solved] NFSv4 mounting wrong uid as 32767 or root ashleyd Web & Network Services 1 January 17th, 2012 22:16
mounting root file system error ashwin_karanth Embedded 0 July 23rd, 2010 08:11
8.0 on Supermicro P4DPR-6GM+ - hang on mounting root spork System Hardware 1 June 8th, 2010 06:59


All times are GMT +1. The time now is 22:11.


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