Results 1 to 9 of 9

Thread: partition number changed grub install problem

  1. #1
    Member registered user
    Join Date
    Feb 2005
    Posts
    36

    partition number changed grub install problem

    i had to delete a partition in my system and new partition table
    knoppix does not boot.
    i am not able to reinstall grub.
    how do i rescue my knoppix installation now on hda10 mbr on root partition.
    previously it was on hda11.
    someone help to recover this installation please.

  2. #2
    Senior Member registered user
    Join Date
    Jan 2006
    Posts
    135

    partition number changed grub install problem

    I am not completely clear as to where grub is installed. The MBR or your knoppix partition?

    Either way, you will have to edit (as root) the files /etc/boot/grub/menu.lst and /etc/fstab to correctly point to your knoppix partitions (your swap partition is also probably changed).

    Now, you may have to reinstall grub to correct the hard coded location of the stage1 (?) code.

    Boot from the liveCD and from a root terminal mount your knoppix installation and enter the command: chroot </mount_point> and issue the command: grub-install <grub_location> (either (hd0) or /dev/hda or your partition?).

  3. #3
    Member registered user
    Join Date
    Feb 2005
    Posts
    36
    i tried it before.
    mounted /dev/hda10 /mnt
    chroot /mnt /bin/bsh
    i had edited fstab for / hda10 swap hda11
    grub-install /devhda10
    it gave me an error error reading stage 1

    then sewcond time it gave an error read error stage 5 but it is not important succeeded.
    but only grub cli is appearing on invoking hda10
    tab shows options of vmlinuz vmlinus-2.6.12 initrd.img -2.6.12 initrd.img etc
    what line should be booting in CLi
    which of these vmlinuz and initrd.img will boot
    i tried to boot with vmlinuz.2.6.12 initrd.img-2.6.12
    then it starts and stops saying kernel panic try telling kernel init level
    tried runlevel 3
    no success.

    still i have not edited menu.list
    i will look into that and get back here.

  4. #4
    Senior Member registered user
    Join Date
    Jan 2006
    Posts
    135

    partition number changed grub install problem

    I see a couple of problems here, possibly typos.

    "grub-install /devhda10" should be grub-install /dev/hda10

    "then sewcond time it gave an error read error stage 5 but it is not important succeeded". This is probably the stage2 code.

    "i tried to boot with vmlinuz.2.6.12 initrd.img-2.6.12". Grub needs to know where both of these files are located.

    "still i have not edited menu.list ". Once you have editted /boot/grub/menu.lst , at the grub command line simply issue the commands: root /dev/hda10 <enter> setup /dev/hda10 <enter>

  5. #5
    Member registered user
    Join Date
    Feb 2005
    Posts
    36
    there is lot of trouble
    root (hd0,10)
    unknown format
    the rest is given below
    grub>

    grub> setup /dev/hda10

    Error 11: Unrecognized device string

    grub> root (hd0,9)
    Filesystem type is ext2fs, partition type 0x83

    grub> setup /dev/hda9

    Error 11: Unrecognized device string

    grub> setup (hd0,9)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/e2fs_stage1_5" exists... yes
    Running "embed /boot/grub/e2fs_stage1_5 (hd0,9)"... failed (this is not fatal)
    Running "embed /boot/grub/e2fs_stage1_5 (hd0,9)"... failed (this is not fatal)
    Running "install /boot/grub/stage1 (hd0,9) /boot/grub/stage2 p /boot/grub/menu
    .lst "... succeeded
    Done.

    grub> setup (hd0,10)
    Checking if "/boot/grub/stage1" exists... yes
    Checking if "/boot/grub/stage2" exists... yes
    Checking if "/boot/grub/e2fs_stage1_5" exists... yes
    Running "embed /boot/grub/e2fs_stage1_5 (hd0,10)"... failed (this is not fatal
    )
    Running "embed /boot/grub/e2fs_stage1_5 (hd0,9)"... failed (this is not fatal)
    Running "install /boot/grub/stage1 (hd0,10) /boot/grub/stage2 p /boot/grub/men
    u.lst "... succeeded
    Done.

    grub>

    actually /dev/hda11 is my swap drive

    there is a confusion of dev numbers.
    looks like grub takes nmber +1 as device.
    let me reboot and see now

    grub>

  6. #6
    Member registered user
    Join Date
    Feb 2005
    Posts
    36
    yes now i got into knoppix bootup and all work well.


    eben though i feel stupid not really know what i have done.
    i still feel it worked by fluhe
    seems i have to learn more about grub working.
    i am not sure i can do this again . i have to remove another 2 more partitions.and reorganise my comp.
    i want to move 3 installations to other partitions.
    well kets see what happens.


    thanks for the time and guidance nad

  7. #7
    Senior Member registered user
    Join Date
    Jan 2006
    Posts
    135

    partition number changed grub install problem

    You are welcome. I am glad that I was of some assistance.

    Grub uses a _zero_ based numbering scheme. Your first hard drive, /dev/hda, is (hd0). Your first partition on that drive (hd0,0).

    Do yourself a favor at some point in your reorganization. Create a separate boot partition (usually the first one on a drive), install grub to your MBR and point it to this boot partition. In this way you may add and delete partitions at will and simply update the one /boot/grub/menu.lst whenever necessary. Just make certain that should you add another operating system do not install grub again, and once again, simply edit your menu.lst with the parameters for your new os while adding the necessary startup images to the /boot directory. This can usually be accomplished by booting to a different operating system after a fresh install, mounting your new root directory and copying the special startup files to your existing boot partition.

  8. #8
    Member registered user
    Join Date
    Feb 2005
    Posts
    36
    that suggestion of using boot partition is good only if all other installations use grub for booting..my primary linux is fedoracore4 and its having the mbr.
    i cannot have any other format than ext2 or 3 then only it can chainload the newly installed partition.
    thats why i have put grub /lilo to its own root partition.for other 8 installs of linux.
    as mbr dies for some reason then all of them will be dead.
    with boot loader in root partition recovery or boot is easy just point to the partition to boot.

  9. #9
    Senior Member registered user
    Join Date
    Jan 2006
    Posts
    135

    partition number changed grub install problem

    GRand Unified Bootloader will boot most x86 operating systems. It doesn't matter where the boot images for a particular operating system are stored as long as it knows where to find them. Hence, /boot/grub/menu.lst .

    Grub wiil map drives and chainload as required. You may use the ext2 filesystem for my referenced separate boot partition. Several filesystem types are supported.

    I am not familiar with fedora, but, imagine that it uses either lilo or grub, in which case your method of chainloading grub is redundant though it works for you.

Similar Threads

  1. Knoppix 5.01 HD-INSTALL GRUB BOOT PROBLEM
    By hazelkid in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 09-02-2006, 04:57 PM
  2. HDD Install won´t boot (Grub in root partition:-( )
    By weirdjd in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 06-27-2005, 09:40 AM
  3. Partition problem - Post HDD install.
    By Arcflup in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 09-06-2004, 09:54 AM
  4. Major Problem - Changed my resolution to unsupported
    By ExtremeHobo in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 02-19-2004, 04:58 PM
  5. Using Grub in multi-OS with /boot partition
    By nuke in forum Hdd Install / Debian / Apt
    Replies: 7
    Last Post: 10-09-2003, 03:26 PM

Posting Permissions

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


LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA picture

LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA

$229.99



ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture

ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID

$58.99



Dell R630 8SFF 2.4Ghz 12-Core 128GB H330 RAID 10GB RJ-45 NIC 2x750W PSU 8x Trays picture

Dell R630 8SFF 2.4Ghz 12-Core 128GB H330 RAID 10GB RJ-45 NIC 2x750W PSU 8x Trays

$430.04



Dell R630 8SFF 2.6Ghz 28-Core 128GB H330 RAID 10GB RJ-45 NIC 2x750W PSU 8x Trays picture

Dell R630 8SFF 2.6Ghz 28-Core 128GB H330 RAID 10GB RJ-45 NIC 2x750W PSU 8x Trays

$490.04



Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE picture

Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE

$15.98



LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License picture

LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License

$39.95



ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs picture

ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs

$82.49



LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault picture

LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault

$39.00



2 Bay RAID Hard Drive Enclosure USB 3.0 Type-B for 2.5

2 Bay RAID Hard Drive Enclosure USB 3.0 Type-B for 2.5" SATA SSD/HDD Enclosure

$59.99



Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 04Y5H1 High Profile picture

Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 04Y5H1 High Profile

$17.99