how to find out the boot device
From: Jan Pechanec (jp_at_devnull.cz)
Date: 08/26/05
- Previous message: Kurt Buff: "RE: A problem with ntop after upgrading from 5.3 to stable"
- Next in thread: Brooks Davis: "Re: how to find out the boot device"
- Reply: Brooks Davis: "Re: how to find out the boot device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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"
- Previous message: Kurt Buff: "RE: A problem with ntop after upgrading from 5.3 to stable"
- Next in thread: Brooks Davis: "Re: how to find out the boot device"
- Reply: Brooks Davis: "Re: how to find out the boot device"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|