[SOLVED] Problem with dual boot UBUNTU 10.04-Windows 7:no such device no such partition
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem with dual boot UBUNTU 10.04-Windows 7:no such device no such partition
Hello all.
I have 2 drives, in one is Ubuntu, in other is Windows 7.
First i had only Win7 on 1th disk, then i installed Ubuntu( on hard drive 2) and it was so nice so i delete Win7.
But now i need to use something under Win7.
I had installed it on 1th drive, but then only windows can be used.
If i change my drives( physically- change data cables on motherboard)- then Ubuntu is loaded, but in GRUB menu then i try to load Win7 error appear:
NO such device XXXXXXXXXXX( as i understand- UUID)
No such partition
What should i do?
I assume 3 options:
a. Make Grub( i think in UBUNTU 10.04 it is Grub2) load Win7( i prefer this option)
b. Make Windows loader able to load Ubuntu
c. Install other loader( Lilo etc).
Distribution: Ubuntu 10.04 (used to be Red Hat 7.1, then Red Hat 9, then FC 2, FC 5, FC 6, FC 9 and Ubuntu 8.04)
Posts: 105
Rep:
Option (a) is best. You should reinstall Ubuntu. It should ask you during the installation if you want to keep the existing Windows installation and you should be able to set up grub so it provides you with a boot menu with Ubuntu and Windows.
Reinstalling windows 7 and switching drives probably created the problem. Since you can boot Ubuntu, do that. Open a terminal and run the command: sudo fdisk -l (Lower Case Letter L in command); you should be prompted for your user password, enter the password and hit the enter key. You should then get output which will be your partition information. Post that here and someone familiar with Grub2 should be able to tell you what to do.
No need to reinstall GRUB if you can boot into Ubuntu with Grub while your Windows disc is connected, then you can make grub boot Windows by changing your grub.conf.
First of all though, sdf and sdg? Where is your sda, b, c, d and e?
WARNING: GPT (GUID Partition Table) detected on '/dev/sdf'! The util fdisk doesn't support GPT. Use GNU Parted.
Did you try this? If you can boot Ubuntu (or use its Live CD) open a terminal and find GParted to get accurate information. You should be able to access GParted from one of the tabs at the top of the Desktop (Applications, System). I don't use Ubuntu so I'm not sure where it is. You can then post the partition information.
Quote:
then you can make grub boot Windows by changing your grub.conf.
I don't think you will have a grub.conf file. If you are using an Ubuntu verson newer than 9.04, it uses Grub2 and the file would be /boot/grub/grub.cfg which you are not supposed to edit manually.
Are both drives internal drives?
If not, do you plan to keep both attached at all times? You probably have windows on the second drive and in that case, you will need to put map entries for it in the Grub file. Probably the easiest thing to do would be to set the windows drive as first, install Grub to its mbr to boot windows and Ubuntu if you plan on using Ubuntu more.
title "Windows"
rootnoverify (hd1,2)
makeactive
chainloader +1
Error appear:
unknown command rootnoverify
unknown command makeactive
may these commands are from GRUB, not from GRUB2?
Both drive is internal and will live in my PC
How can you print off output from GParted to past it here?
Next question- yes, i know how to add Grub in MBR, make drive with Windows first. But it will not help- Ubuntu will load, Windows not: error no such device will appear ( i tried this way)
About grub.cfg- i can edit it manually, but after update-grub everything will be canceled. It is not so important.
How can you print off output from GParted to past it here?
I don't have GParted so can't check. What are the drives named as in GParted? Do they show as sdf and sdg? Try running GParted with only the internal hard drives, remove any usb or Sd cards. If you can't copy/paste just note the drive names (sda, sdb??) and post. You have tried grub-update, did you try to re-install Grub?
You have windows 7 installed on one hard drive and cannot boot it?
If you set the windows 7 drive to first boot priority in BIOS, it boots?
You have Ubuntu installed on a separate hard drive and CAN boot it?
What command did you use to re-install Grub?
Did you do it from the installed Ubuntu?
or; did you do it from the CD?
Your drives showing as sdf and sdg is a bit unusual, particularly since you didn't have any usb or SD cards connected.
To find out how Grub sees your drives, with only the two hard drives attached, boot Ubuntu and open a terminal to get a grub prompt:
sudo grub (hit enter key and you should see this prompt: grub>)
At the grub prompt, enter: geometry (hd0) hit enter to see output.
Repeat this command and increase the number zero(0) to one. This should show output similar to the fdisk and tell you how Grub sees the drives. If you don't see any output from these two, repeat up to (hd7) which would be the equivalent of sdg.
In your first post you indicated the error when trying to boot windows was "No such device/partition" with a UUID. From a terminal as root (not the grub prompt) run the command blkid, see if you have a partition with the UUID in the error. If you haven't written the UUID down, you will need to try booting windows again to get it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.