title: How to know where I am booting from
body: <p>I have an application developed to run on multiple platforms where the boot disk is either <strong>'/dev/nftla1'</strong> or <strong>'dev/hdc1'</strong>. The Grub bootloader has this information.   </p>
  
  <p>But once the kernel takes over &amp; the application starts running, it becomes irrelevant. But, in my application which is mainly in <strong>'C'</strong>, I would like to know the source of boot because the way the files are accessed is different on these platforms.  </p>
  
  <p>My question is:  Is there a system command or any tricks that you know that could help with what I am trying to achieve?  </p>