Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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.