Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have boot loader setup on a USB key, so when I boot with local grub4dos installation, I use:

rootnoverify (hd0)
chainloader +1

But since I had two disk (usb and internal HDD), how can I detect the name(hd0, sometimes hd1, don't know why) automatically ? I can't just use find --set-root, because my usb has 3 partitions, and wasn't booting from one of it.

Any solutions?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.