I have had a crash disk on /dev/sdc5, this is not the biggest problem I have but I have to replace the disk because it is really dead (6th CRC error in less than six monthes, it has more than 4 years, I'm fed up with reformatting zero datas each six monthes).
My biggest problem is that I have a really particular configuration and I wanna be sure that the disk to be replaced is the good one.
I got three hard disks.
2 maxtors on racks
1 internal SATA samsung
When I installed suse 10.3 on my computer I put the root partition on the sata drive. And I have windows XP on one of the two maxtors.
As I want to change one of the two maxtors that is clearly defective, I first removed physically the hard disk from its bay, thinking that "this is just one hard disk less and suse will boot without it".
I was wrong: it didn't...
I then thought that it wasn't the samsung where suse was installed that booted the computer.
I put back the rack in its bay and rebooted to linux, without any problem --> it indicated that the system was booting on this disk.
I realized that if it was the case I had to determine which disk has to be removed and particularly check that the bootable partition wasn't on this disk...
I planned to install GRUB on the SAMSUNG (where suse is installed) and then try by removing each disk to determine which one is the one to be changed to a new.
Here is the fdisk -l result
It seems that GRUB was installed in /dev/sdc2 or /dev/sdb1, but I got no way to verify it, and I don't want to toggle the boot flag because I'm not sure to be able to boot to linux after this operation.Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000aeb1f
Device Boot Start End Blocks Id System
/dev/sda1 1 262 2104483+ 82 Linux swap / Solaris
/dev/sda2 263 1568 10490445 83 Linux
/dev/sda3 1569 2874 10490445 83 Linux
/dev/sda4 2875 38913 289483267+ c W95 FAT32 (LBA)
Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xaa7aaa7a
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 498 4000153+ b W95 FAT32
/dev/sdb2 499 18922 147990780 f W95 Ext'd (LBA)
/dev/sdb5 499 1494 8000338+ b W95 FAT32
/dev/sdb6 1495 18922 139990378+ b W95 FAT32
Disk /dev/sdc: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5d2a26c8
Device Boot Start End Blocks Id System
/dev/sdc2 * 2 19929 160071660 f W95 Ext'd (LBA)
/dev/sdc5 2 19929 160071628+ b W95 FAT32
Because there is no boot flag on /dev/sda I'm sure that GRUB won't be installed on the SAMSUNG.
Here is an extract of the menu.lst file
I didn't remember when the suse installation program asked me where I wanted to put the GRUB...title openSUSE 10.3
root (hd2,1)
kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_HD321KJS0MQJ9DQ217
875-part2 vga=0x31a resume=/dev/sda1 showopts
initrd /boot/initrd-2.6.22.5-31-default
###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows
rootnoverify (hd2,1)
chainloader (hd0,0)+1
###Don't change this comment - YaST2 identifier: Original name: failsafe-2.6.22.5-31-default###
title Failsafe -- openSUSE 10.3
root (hd2,1)
kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_HD321KJS0MQJ9DQ217
875-part2 vga=normal showopts ide=nodma apm=off acpi=off noresume nosmp noapic maxcpus=0 edd=off 3
initrd /boot/initrd-2.6.22.5-31-default
I first thought to isolate grub by disabling one of the two maxtors by the bios, to see what is happening. The tests indicated that I needed BOTH to boot with GRUB (???)
If I disable the first disk --> no boot sector found
If I disable the second disk --> grub indicated an error and won't boot.
It indicated something interesting it seems that GRUB is installed on /dev/sdb1 (surely the primary master).
I tried grub-install '(hd2)'Questions:
How can I remove GRUB from /dev/sdb1 and install it on /dev/sda2 that would let me boot without one of the two maxtors to help me determine which disk has to fly out to the basket...
Is there a way to know the exact partition where GRUB is installed ??
There is an extract of the device.map file
so I need to install it on hd2...(hd2) /dev/sda
(hd1) /dev/sdc
(hd0) /dev/sdb
but once the two maxtors disabled (to be sure the system boots on the samsung) I got a no boot sector error at boot...
this is the actual fdisk -l informations after have done the necessary (as far I could go)
How can I make it ? I really have no idea, and need to replace the defective disk...Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000aeb1f
Device Boot Start End Blocks Id System
/dev/sda1 1 262 2104483+ 82 Linux swap / Solaris
/dev/sda2 * 263 1568 10490445 83 Linux
/dev/sda3 1569 2874 10490445 83 Linux
/dev/sda4 2875 38913 289483267+ c W95 FAT32 (LBA)
Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xaa7aaa7a
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 498 4000153+ b W95 FAT32
/dev/sdb2 499 18922 147990780 f W95 Ext'd (LBA)
/dev/sdb5 499 1494 8000338+ b W95 FAT32
/dev/sdb6 1495 18922 139990378+ b W95 FAT32
Disk /dev/sdc: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5d2a26c8
Device Boot Start End Blocks Id System
/dev/sdc2 * 2 19929 160071660 f W95 Ext'd (LBA)
/dev/sdc5 2 19929 160071628+ b W95 FAT32
Thank you to help me, in advance
Dimitri



Reply With Quote





Bookmarks