how to find out the boot device

From: Jan Pechanec (jp_at_devnull.cz)
Date: 08/26/05

  • Next message: Brooks Davis: "Re: how to find out the boot device"
    Date: Fri, 26 Aug 2005 22:41:47 +0200 (CEST)
    To: freebsd-stable@freebsd.org
    
    

            hello guys,

            during the rc.d phase, I need to find out in a shell script from
    which disk the system has booted up.

            - I cannot use kern.rootdev because my root fs is a memory disk
            - I cannot use kern.disks because the first disk there doesn't
    necessarily mean the boot disk (eg. my home box says 'cd0 ad0' for that)
            
            - I could use 'atacontrol list' or 'camcontrol devlist' because I
    always boot from the 1st disk, but if I have both types of disks then I have
    1st ATA disk and 1st SCSI disk and again unable to recognize which one is
    the one I need.

            any ideas, please?

            thank you, j.

    -- 
    Jan Pechanec <jp (at) devnull (dot) cz>
    http://www.devnull.cz
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
    

  • Next message: Brooks Davis: "Re: how to find out the boot device"

    Relevant Pages

    • Re: Restoring a NorthStar Horizon, problems with SRAM board
      ... I have the complete NorthStar manual on my site, ... many NorthStar disk images containing plenty of software. ... NST tool kit, I was able to link the NorthStar Horizon to my old ... working so I can make an archival image backup of my MASTER boot disk ...
      (comp.sys.northstar)
    • Re: need advice on MCE problem
      ... download their hard drive diagnostics program. ... Still need help on making a boot disk though. ... I want to know how to set up recovery points and ...
      (microsoft.public.windows.mediacenter)
    • Re: Boot Disk
      ... >> How do I create a boot disk for WindowsXP so that when the machine boots ... I need to be able to see my external USB ... >> drives or the external drives. ... >> need a boot disk that will boot the PC, let me start a recovery progam on ...
      (microsoft.public.windowsxp.general)
    • [PATCH] EDD disksig patch for 2.6.1
      ... but those are separate from the disksig patch. ... read disk80 MBR signature, ... unique signature to each disk in the system, then rebooting, and then ... boot disk, yet you need to know which disk is the boot disk. ...
      (Linux-Kernel)
    • Re: help transfering files from pc to M-IV
      ... Do you need a MS-DOS boot disk? ... 1-Bootable floppy disk drive. ... Set up DSK image to be copied as other drive ...
      (comp.sys.tandy)