Ubuntu This forum is for the discussion of Ubuntu Linux. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
12-02-2006, 09:17 AM
|
#1
|
Member
Registered: Feb 2005
Distribution: Suse 9.3 also Redhat 9, Umbuto, Mandriva 2005
Posts: 31
Rep:
|
Help please what does the Umbutu installa call Sata drives? (solved - sort of)
Hi All,
I want to see how good Umbunto is, so I tried to install it in a dual boot with windows, but have got a bit stuck. Windows is on the Main IDE (hda) drive and linux is going onto a SATA drive, (sda6). OK fine.
However for various reasons I do not want to put Grub onto the IDA boot block, but onto the SATA one.
Umbunto insists that it wants to put grub onto hd0. But does not give me any clue as to what it thinks the sata drive boot block is called.
Could someone please tell me. Have tried sda and sd0 without any luck.
Many thanks
John.
Last edited by Cogvos; 12-02-2006 at 01:45 PM.
Reason: sort of solved see lower post
|
|
|
12-02-2006, 09:40 AM
|
#2
|
LQ 5k Club
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,377
|
I will try and clarify some things for you.
You said windows is on 'hda' I'm sure in will be on 'hda1' in linux speak. hda is the drive, but does not refer to any particular partition. hda1 is the primary partition on the first drive.
You said you want to put grub on the sata drive. You can; and get it to boot, but understand, you will need some way of getting the boot process to look at grub. This is very non-standard way of doing things. I believe the only way I can think of is to modify one of your windows files to go to grub. Not at all sure you could get that working.
The way booting works, is BIOS goes and reads the 'mba' master boot record, this is where you would normally install grub. Grub gets set up to give you options, go to the windows system to boot, or go to linux to boot. I have no idea why you don't want to go this route, it does work well enough. The only fly in the ointment is if you re-install windbloze, after you have installed linux. Windbloze will overwrite the mba with its own boot record. You can re-do grub if that happens after a windoze install.
As for what your sata drive is called, probably it is called 'sda1'. That would be the first drive, and first partition. If that doesn't work, try sda2. Linux assigns the last digit for primary partitions on an assending basis, 1 is on hda, but I'm not sure if it enforces that across different drive types.
|
|
|
12-02-2006, 10:01 AM
|
#3
|
Member
Registered: Feb 2005
Distribution: Suse 9.3 also Redhat 9, Umbuto, Mandriva 2005
Posts: 31
Original Poster
Rep:
|
Hi Cliff,
The reason I want to do this is that the windows boot loader is on hda's boot block and has a recovery option on it. So I don't want grub to overwrite it and potentially loose the ability to run the recovery. My bios has a boot menu (thump esc at startup) which will allow me to boot from any drive connected (excluding firewire ones for some reason).
So I can get the pc to boot onto the sata drive, but when I come to install grub as part of Umbuntu the only option it gives is hd0, which I guess is actually hda1 since Grub numbers everything from 0. I did wonder if the sata drive would be hd1 as I read somewhere that Grub does not distinguish between sata and ide drives, but I'm wary that the Umbunto installer might think I want to stick grub onto hda2, which is an NTFS partition and probably won't appreciate it.
The sata drive only has logical partitions, so / is on sda6 and swap on sda7. There is a fat32 partition at sda5.
Not sure if the extra info helps.
Many thanks for the reply
John.
|
|
|
12-02-2006, 01:51 PM
|
#4
|
Member
Registered: Feb 2005
Distribution: Suse 9.3 also Redhat 9, Umbuto, Mandriva 2005
Posts: 31
Original Poster
Rep:
|
Kind of solution
Take one sledgehammer....
I disconnected the windows (ide drive) and reinstalled Umbuntu. Now there was no way that the installer could put grub onto the windows drive 'cos it wasn't there. It still only gave the option hd0, which given that there was only one drive is ok. Install went fine.
I then re-connected the ide drive. Expecting that I would have to edit the menu.lst fro grub. But that as not needed. It turns out that Umbuntu was detection the sata drive as hd0 and the ide drive as hd1. But the bios detects the ide drive first! Nasty.
The remedy (if any of the umbuntu guys read this forum is to put a proper requester in the installer so the poor user knows exactly which drive grub is going on. Can't be hard both Suse and Mandriva do.
|
|
|
12-02-2006, 02:29 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,392
|
let's have a look at /boot/grub/device.map
|
|
|
12-03-2006, 11:02 AM
|
#6
|
Member
Registered: Feb 2005
Distribution: Suse 9.3 also Redhat 9, Umbuto, Mandriva 2005
Posts: 31
Original Poster
Rep:
|
There's very little in there.
(hd0) /dev/sda
That's all. I guess as I only had the sata drive connected on install as I was not sure what grub was calling it and the ide drive.
John.
|
|
|
All times are GMT -5. The time now is 02:54 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|