LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 02-27-2008, 07:00 PM   #1
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Rep: Reputation: 15
GRUB drive designation /dev/sda1 -> hd(1,0)??


here is the info from the BIOS
primary IDE master - no drive
primary IDE slave - no drive
secondary IDE master - no drive
secondary IDE slave - drive 1
SATA third IDE master - drive 2 (ubuntu)
SATA fourth IDE master - cd/dvd drive
SATA fifth IDE master - drive 3
SATA sixth IDE master - drive 4

so thats what my BIOS shows as the drives.
i am having issues rebooting and getting the GRUB to install. i am getting the following error.

[HTML]Error 17: can not mount selected partition[/HTML]

if ubuntu is on the second drive on my list there

/dev/sda1

then, which would be the GRUB device assignment?

(hd1,0)?
 
Old 02-27-2008, 07:45 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Yes. (hd1,0) would correspond, unless it recognizes sda as the first drive (hd0,0) before it recognizes the IDE slave drive. My machine starts with the SATA drives and the IDE drives are second. So the first SATA is hd0, the 2nd is hd1, then the first IDE drive is hd2.
 
Old 02-27-2008, 07:56 PM   #3
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
(hd0,0) worked, thanks.

Last edited by ChootarLaal; 02-27-2008 at 07:57 PM.
 
Old 02-28-2008, 07:53 AM   #4
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
still got problems with this. it doesnt re-boot, it still displays Error 17. looks like Grub doesnt have the right designation for the drive with the linux, which seems to be (hd0,0).

how do i start to execute a shell in ubuntu 7.1, first of all, how do i go into rescue mode?
 
Old 02-28-2008, 09:09 AM   #5
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
From the live CD, in the terminal type,

sudo fdisk -l

and post the output

and in the terminal type

cat /boot/grub/menu.lst

and post the output.
 
Old 02-28-2008, 10:35 AM   #6
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
from the terminal i tried fdisk on /dev/sda1 and it gave an error message. but i will definitely try this tonite and post the results, thanks for the suggestions, what exactly are those commands doing?

sudo fdisk -l
gives super user rights and shows what commands are allowed for disk?

Last edited by ChootarLaal; 02-28-2008 at 01:36 PM.
 
Old 02-28-2008, 03:46 PM   #7
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Code:
sudo fdisk -l
Disk /dev/hdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd1bd56d8

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 16709 134215011 7 HPFS/NTFS
/dev/hdd2 16710 19457 22073310 7 HPFS/NTFS

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x607c607c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 38161 306528201 83 Linux
/dev/sda2 38162 38913 6040440 5 Extended
/dev/sda5 38162 38913 6040408+ 82 Linux swap / Solaris

Disk /dev/sdb: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x60d760d7

Device Boot Start End Blocks Id System
/dev/sdb1 1 48640 390700768+ 7 HPFS/NTFS

Disk /dev/sdc: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x60d760d8

Device Boot Start End Blocks Id System
/dev/sdc1 1 48640 390700768+ 7 HPFS/NTFS

Last edited by ChootarLaal; 02-28-2008 at 03:49 PM.
 
Old 02-28-2008, 03:47 PM   #8
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
Code:
cat /boot/grub/menu.lst
cat: /boot/grub/menu.lst: No such file or directory
 
Old 02-28-2008, 03:50 PM   #9
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
looks like i have two partitions and both of them have linux installed on them, i tried installing it a bunch of times thinking it was a bad burned disc or something. anyways, on one of them, i was able to see the menu.lst and saw that its calling

(hd1,0) and i am pretty sure it should be (hd0,0), should i try editing it?
 
Old 02-28-2008, 04:02 PM   #10
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,267

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Looks like the devs haven't fixed a problem I reported during the beta. Seems to be a problem in the initscripts if you have an IDE and a SATA drive like that. It arises due to the change in name libata forces now - it sees both disks as /dev/sd?
This particular configuration seems to be a problem for Ubuntu. I managed to work around it, but can't remember how. I'll have to see if I still have Ubuntu on that box.
 
Old 02-29-2008, 09:06 AM   #11
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
looks like i know what the problem is. while installing ubuntu, at one of the screens it asks to verify the disks where linux will be installed and there is a button, "advanced" on the bottom right and if one were to click on that, it shows where the bootloader, grub will be installed. looks like it was installing it in

hd0

i changed it to hd1 the second time around but menu.lst has it as (hd1,0), so at bootup, if i go into the grub and change it to

(hd0,0)

it boots up fine, but i have to do this everytime i boot up. from another thread a user recommended to edit menu.lst this way.

Code:
sudo gedit /boot/grub/menu.lst
ill try this tonight. but it doesnt make sense to me, i thought (hd0,0) means first drive, first partition but its installed in hd1 which is the second drive?

Last edited by ChootarLaal; 02-29-2008 at 09:07 AM.
 
Old 02-29-2008, 08:39 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,267

Rep: Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028Reputation: 1028
Yes, well, ... maybe. How do you determine what's first ???. And when ???.

This is definitely a screwed up initscript issue - as I said, the devs didn't seem to be able to comprehend their error.
Do what you need to get this working. I have Arch linux and Vista as well as Ubuntu on this box (all 64-bit), and only Ubuntu has this problem. Once you get booted try a "sudo fdisk -l", and try and figure out what has happened.

Who knows what'll happen when Hardy comes out - maybe I should pull the beta, and see if this has been sorted out.
 
Old 03-01-2008, 08:48 AM   #13
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
its booting up fine now, but yes, i get your point. ill try to report the bug too.
 
Old 03-01-2008, 08:56 AM   #14
ChootarLaal
Member
 
Registered: Feb 2008
Posts: 41

Original Poster
Rep: Reputation: 15
this is the result of
Code:
sudo fdisk -l
~$ sudo fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x607c607c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 38161 306528201 83 Linux
/dev/sda2 38162 38913 6040440 5 Extended
/dev/sda5 38162 38913 6040408+ 82 Linux swap / Solaris

Disk /dev/sdb: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x60d760d7

Device Boot Start End Blocks Id System
/dev/sdb1 1 48640 390700768+ 7 HPFS/NTFS

Disk /dev/sdc: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x60d760d8

Device Boot Start End Blocks Id System
/dev/sdc1 1 48640 390700768+ 7 HPFS/NTFS

Disk /dev/hdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xd1bd56d8

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 16709 134215011 7 HPFS/NTFS
/dev/hdd2 16710 19457 22073310 7 HPFS/NTFS
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB pen drive not mounting. /dev/sda1 not present! hamish Linux - Hardware 9 01-11-2010 08:25 PM
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
How can I install Grub to /dev/sda1 stardotstar Linux - Software 3 02-13-2006 09:55 PM
USB drive... /dev/sda1 does not exist! Lord Zoltar Linux - Hardware 48 05-15-2005 11:55 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM


All times are GMT -5. The time now is 06:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration