Find the answer to your Linux question:
Results 1 to 9 of 9
Hi all. I have minor problem with upgrading a hard drive. I am running an old pentium lll with two hard drives. On the first hard drive I have two ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6

    Hard drive replacement?


    Hi all.
    I have minor problem with upgrading a hard drive.
    I am running an old pentium lll with two hard drives. On the first hard drive I have two partitions of around 90GB each. On the first partition is installed winXP and on the second partition I have Suse 10.3, both booted by grub and living happily side by side. My second hard drive (which is formatted for windows is only 4GB.

    My problem arises when I try to replace the 4GB with a 80Gb hard drive. When I disconnect the 4GB drive the system fails to boot up and complains with error 21.
    I am not a computer guru in any way at all and know nothing about geometry mismatches so any advice would be welcome.

    I realise that it is probably a simple problem but it is above my head.

    Regards Lee-nucks.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    It looks like GRUB conf files have been installed in 4GB Hard disk.
    Boot up SuSe and post the contents of /boot/grub/menu.lst file here. Post the output of fdisk -l command too.
    Code:
    su -
    /sbin/fdisk -l
    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6
    Hi Devils casper.

    Sorry took so long, had to buy usb stick to transfer files to windows, anyway find both below.

    Disk /dev/sda: 4311 MB, 4311982080 bytes
    255 heads, 63 sectors/track, 524 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xec83ec83

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 523 4200966 7 HPFS/NTFS

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

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 7442 59769832 7 HPFS/NTFS
    Partition 1 does not end on cylinder boundary.
    /dev/sdb2 7443 19457 96510487+ f W95 Ext'd (LBA)
    /dev/sdb5 7443 7704 2104483+ 82 Linux swap / Solaris
    /dev/sdb6 7705 10315 20972826 83 Linux
    /dev/sdb7 10316 19457 73433083+ 83 Linux

    ------------------------------------

    # Modified by YaST2. Last modification on Tue Feb 19 13:49:04 UTC 2008
    default 0
    timeout 8
    gfxmenu (hd1,5)/boot/message

    ###Don't change this comment - YaST2 identifier: Original name: linux###
    title openSUSE 10.3
    root (hd1,5)
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_SP1604NS013J10X533069-part6 vga=0x314 resume=/dev/sdb5 splash=silent showopts
    initrd /boot/initrd-2.6.22.5-31-default

    ###Don't change this comment - YaST2 identifier: Original name: windows 1###
    title windows 1
    rootnoverify (hd1,5)
    chainloader (hd0,0)+1

    ###Don't change this comment - YaST2 identifier: Original name: windows 2###
    title windows 2
    rootnoverify (hd1,5)
    chainloader (hd1,0)+1

    ###Don't change this comment - YaST2 identifier: Original name: floppy###
    title Floppy
    rootnoverify (hd1,5)
    chainloader (fd0)+1

    ###Don't change this comment - YaST2 identifier: Original name: failsafe###
    title Failsafe -- openSUSE 10.3
    root (hd1,5)
    kernel /boot/vmlinuz-2.6.22.5-31-default root=/dev/disk/by-id/scsi-SATA_SAMSUNG_SP1604NS013J10X533069-part6 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

    Thanks lee.

  4. $spacer_open
    $spacer_close
  5. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    If you are planning to replace 4GB with 80GB disk then easiest way is, plug-in 80GB disk and re-install GRUB. GRUB configuration files are configured in such a way that its necessary to use other disk. Otherwise you have to edit all GRUB conf files manually.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #5
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6
    Hi devils casper.

    Thank you for the information, it is appreciated.

    I do not know how to install GRUB (not having done it in the first place), it came with the 10.3 SUSE distro and was done automatically at installation time.

    thanks

    Lee

  7. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    You are using SuSe10.3 and its easy to re-install GRUB using installation CD/DVD. Remove 4GB disk and plug-in 80GB disk.

    Boot up from SuSe installation CD/DVD and select Installation option. Select update/upgrade option in next list. Press next, next and next... Installer will re-install GRUB.

    In case it doesn't work, you can use SuperGRUB CD/USB.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #7
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6
    Hi devils casper.

    I tried the method you gave me but to no avail. When I select the option instalation/update (not two seperate options) it takes me through the complete new instalation cycle, requesting which desktop, KDE, Gnome, repositories and packages I require and so on. The update procedure to install the new harddrive (GRUB) does not show itself.

    The other information you sent for me (SuperGRUB CD/USB) I have never heard about but I have searched for it and downloaded it. I tested it out and there are many options to use.
    I found that after booting with SuperGRUB (with 80Gb disk connected) I looked at the partitions but it would not find the 80GB harddisk. Even though it was not present it still displayed the 4GB disk?
    I tried to automatically reinstall GRUB in the MBR but it came back with unable to do so.

    regards

    Lee

  9. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Boot up from LiveCD of any Linux distro and post output of fdisk -l command here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #9
    Just Joined!
    Join Date
    Mar 2010
    Posts
    6
    Hi Devils casper, find below the output from fdisk -l using Ubuntu liveCD...

    ubuntu@ubuntu:~$ sudo fdisk -l

    Disk /dev/sda: 4311 MB, 4311982080 bytes
    255 heads, 63 sectors/track, 524 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xec83ec83

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 523 4200966 7 HPFS/NTFS

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

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 7442 59769832 7 HPFS/NTFS
    Partition 1 does not end on cylinder boundary.
    /dev/sdb2 7443 19457 96510487+ f W95 Ext'd (LBA)
    /dev/sdb5 7443 7704 2104483+ 82 Linux swap / Solaris
    /dev/sdb6 7705 10315 20972826 83 Linux
    /dev/sdb7 10316 19457 73433083+ 83 Linux
    ubuntu@ubuntu:~$

    Cheers

    Lee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •