Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 used to have a Windows 7 partition on my primary hard drive. But I recently moved the partition to the secondary partition, thus a change from sda1 to sdb1.

I know that I'm not supposed to edit /boot/grub/grub.cfg, which is still configured to sda1.

Which file should I edit?

share|improve this question
Just to clear things up, you moved it to second partition or second drive ? the letter after "sd" (sdA, sdB) is a physical drive, the number (sda1, sda2) is a partition on the same drive.... So, sda1 is the first partition of the first physical drive, sdb1 is the first partition of the second physical drive. – Mobidoy Dec 15 '10 at 14:16
up vote 3 down vote accepted

just re-run grub-mkconfig discussion here:

share|improve this answer
note: you may have to edit the boot.ini on the windows partition to get it to boot – RobotHumans Dec 15 '10 at 14:20

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.