1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mounting Root Failed after Update

Discussion in 'Installing and Upgrading FreeBSD' started by markfisher, Jun 11, 2012.

  1. markfisher

    markfisher New Member

    Messages:
    82
    Thanks Received:
    0
    Hi

    OS: FreeBSD 9.0 - i386
    Method of Updating: http://www.wonkity.com/~wblock/docs/html/buildworld.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
     
  2. kpa

    kpa Well-Known Member

    Messages:
    4,072
    Thanks Received:
    801
    Boot from the 9.0 memstick or install cd and see what # gpart show says about the disk and partitions.
     
  3. markfisher

    markfisher New Member

    Messages:
    82
    Thanks Received:
    0
    @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)
    
     
  4. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,493
    Thanks Received:
    2,204
    Did you use a custom kernel?
     
  5. markfisher

    markfisher New Member

    Messages:
    82
    Thanks Received:
    0
    @wblock@
    Yes I did.
     
  6. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,493
    Thanks Received:
    2,204
    Put the kernel config file on pastebin.com and post a link so we can see it.
     
  7. markfisher

    markfisher New Member

    Messages:
    82
    Thanks Received:
    0
  8. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,493
    Thanks Received:
    2,204
    markfisher thanks for this.
  9. kpa

    kpa Well-Known Member

    Messages:
    4,072
    Thanks Received:
    801
    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.
     
    markfisher thanks for this.
  10. markfisher

    markfisher New Member

    Messages:
    82
    Thanks Received:
    0
    @kpa
    Adding those two options fixed the problem.

    Thank you.
     
  11. je33

    je33 New Member

    Messages:
    55
    Thanks Received:
    4
    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?
     
  12. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,493
    Thanks Received:
    2,204
    See config(5). But start a new thread for this.