[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Which device did I boot from?



Dallas Clement wrote:

> Hello all,
> 
> I'm trying to determine which device I booted Linux from at run-time.
> I'd like to obtain the boot device's major/minor numbers or at least
> it's name while executing an init script from initramfs.

I don't know if that is available at initramfs, but there is /proc/cmdline,
which should tell you what device was used (root=/dev/blah)

-- 

  Felipe Sateler



Reply to: