You are not logged in.

#1 2008-08-13 16:36:48

axion419
Member
Registered: 2007-04-12
Posts: 185

what is the proper way to add New Sata HD ( I get grub error 17)

I have Windows XP installed on my first drive, the second drive is arch Linux.  Grub is installed to the MBR on sda(WINDOWS).  I also have a sata cdrom.  I have one open sata spot so I wanted to try installing a third Hard drive and using it as a media partition.  I power the machine down, insert the new drive, connect it and then boot the machine back up.  I don't get any post errors and I see the BIOS see's the new Harddrive.  Yet, after the BIOS screen, it starts to load grub 1.5 and then I get "Grub Error 17"  I have looked on the internet and It seems the PC can not find the menu.list that grub uses.  When I take the Hard Drive out it boots up fine.  I am at work and will try and get this working tonight.  Is there a set way to add a drive to a system or do I need to add the drive then reinstall grub? I imagine this is  Linux/grub 101 and I'm just missing something.  Any help would be appreciated, thanks. Justin.

This is from a post on the internet
"On some motherboards, the SATA connectors are numbered, and the drive you boot from actually has to be SATA0 (or SATA1 or whatever) for it to work properly. On other motherboards it doesn't matter. Check the manual for your motherboard."


I wonder if thats the issue.  On my lunch break I will post my menu.lst and then a fdisck with the drive in it.


menu.lst

# (0) Arch Linux
title  Arch Linux
root   (hd1,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/b27a2100-f0e6-47de-8605-90d45eab817c ro
initrd /kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd1,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/b27a2100-f0e6-47de-8605-90d45eab817c ro
initrd /kernel26-fallback.img

# (1) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1

fdisk -l (without drive attached)
Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x562c2a8b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5905    47431881    7  HPFS/NTFS
/dev/sda2            5906        9729    30716280   83  Linux

Disk /dev/sdb: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x39473947

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1           5       40162   83  Linux
/dev/sdb2               6          38      265072+  82  Linux swap / Solaris
/dev/sdb3              39         995     7687102+  83  Linux
/dev/sdb4             996       30401   236203695   83  Linux

with drive attached

[justin@beast grub]$ sudo fdisk -l

Disk /dev/sda: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x562c2a8b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        5905    47431881    7  HPFS/NTFS
/dev/sda2            5906        9729    30716280   83  Linux

Disk /dev/sdb: 250.0 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x39473947

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1           5       40162   83  Linux
/dev/sdb2               6          38      265072+  82  Linux swap / Solaris
/dev/sdb3              39         995     7687102+  83  Linux
/dev/sdb4             996       30401   236203695   83  Linux


Disk /dev/sdc: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe686f016

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1        9725    78116031    e  W95 FAT16 (LBA)

could it be because that drive is marked as boot?  I could use parted magic to format it to ext3 and remove the boot part of it.

Last edited by axion419 (2008-08-13 17:24:55)

Offline

#2 2008-08-13 17:21:30

pheon
Member
From: Berlin, Germany
Registered: 2008-05-14
Posts: 91

Re: what is the proper way to add New Sata HD ( I get grub error 17)

The problem is, that the third HDD will disturb the /dev/sdx order.
The most elegant way to solve this problem will be using Persistent block device naming.
Boot up the system with 2 HDs, configure it according to the wiki I linked above, and afterwards add your third HDD.

br


watching someone else use your computer is like watching a drunk orangutan solve a rubix cube

Offline

#3 2008-08-13 17:21:46

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: what is the proper way to add New Sata HD ( I get grub error 17)

Try using persistent device naming in your menu.lst: http://wiki.archlinux.org/index.php/Per … ice_naming.

Offline

#4 2008-08-13 17:28:25

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: what is the proper way to add New Sata HD ( I get grub error 17)

if your bios is like mine there is also an option to try some order in the devices in the bios setup.

Offline

#5 2008-08-14 13:07:59

axion419
Member
Registered: 2007-04-12
Posts: 185

Re: what is the proper way to add New Sata HD ( I get grub error 17)

thanks all, I will try that tonight.

Offline

Board footer

Powered by FluxBB