Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt?

  1. #1
    Join Date
    May 2007
    Beans
    1,245

    Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt?

    I set up a dual boot with OSX/Jaunty on my MBP 5,2. But by mistake, I forgot to go to "advanced" during the install process and tell the installer to put the boot loader in sda3. So when it finished the install, I booted back up to the livecd, deleted the install, and reinstalled this time with the boot loader in sda3. But when it finished, I found on bootup that at the rEFIt screen, not one but two linux icons appears! rEFIt added a linux icon for each Jaunty install, and despite the fact that the first Jaunty install was deleted, rEFIt still kept that icon plus added a second one for the new Jaunty install. (Under one icon it says "Boot Linux from HD", and under the second icon it says "Boot Linux from partition 3".) Only one of the icons works (the one listed as booting Linux from partition3), and the second icon is useless (and confusing for anyone who uses the computer). What is the way to get rid of the excess linux icon on the rEFIt boot screen? Should I boot into OSX and re-download and install rEFIt? Would this bring about a clean setup of the rEFIt boot screen and solve the problem?
    Last edited by swarup; August 21st, 2009 at 02:40 PM.

  2. #2
    Join Date
    Jul 2008
    Beans
    245
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    rEFIt always displays all boot loaders, it finds. your first try installed the boot loader grub into the disk's MBR (the one entitled "Boot Linux from HD"). it remained there despite the fact that you deleted your first installation. the second try was correct, installing grub into the root/boot partition (entitled "Boot Linux from partition 3").

    so you should delete the superfluous instance of grub from the MBR, by running:

    Code:
    sudo dd if=/dev/zero of=/dev/sda bs=440 count=1
    be aware: this command may entirely erase your hard disk if typed wrongly.

    ciao,
    Mario

  3. #3
    Join Date
    May 2007
    Beans
    1,245

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    All I'll do is copy what you've given and paste it into a terminal window. Are you certain what you've given is proper? In view of what you've written vis-a-vis the danger of putting an incorrect command here, I want to be sure what I'm pasting is correct. If you are certain I can paste what you've given and execute it, then I'll go ahead. I want to get rid of the unwanted icon, but I certainly don't want to end up deleting the entire HD!

  4. #4
    Join Date
    May 2009
    Location
    Gelsenkirchen, Germany
    Beans
    113

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    thanks, I tried this one, and it leaves only the entries "Boot from Partition 3" and "OSX".

    But:
    If I try to boot from Partition 3, it just leaves a black screen with the word "GRUB" and a blinking cursor....

    After reinstallation of the bootloader with the Ubuntu live-CD
    (boot from live-cd, open a terminal and type in:
    Code:
    sudo mount /dev/sda3 /mnt  # sda3 is my ubuntu-installation
    sudo mount -o bind /dev /mnt/dev 
    sudo mount -t proc /proc /mnt/proc 
    sudo chroot /mnt /bin/bash 
    grub-install /dev/sda 
    update-grub 
    reboot
    )

    ..rEFIt shows again 3 boot-option:
    1) OSX
    2) Boot Linux from HD
    3) Boot Linux from Partition 3

    The crazy thing: both Linux-Options work!!
    But after trying to delete the HD-option with your code
    Code:
    sudo dd if=/dev/zero of=/dev/sda bs=440 count=1
    it again leaves the "Boot Linux from Partition 3" which is not able to boot
    and again ends up showing a black screen with the word "GRUB" and a blinking cursor...

    any suggestions?

  5. #5
    Join Date
    Jul 2008
    Beans
    245
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    Quote Originally Posted by produnis View Post
    thanks, I tried this one, and it leaves only the entries "Boot from Partition 3" and "OSX".

    [...]

    any suggestions?
    yes. grub uses several stages to boot from. the first one may reside in the disk's MBR or a partition. the other ones are loaded off the linux boot/root partition.

    if you choose to install grub to /dev/sda, it installs to the MBR, which is deleted with my command. but the grub installation in the linux partition is not actually working. hence, you should re-install to the partition, by running:
    Code:
    grub-install /dev/sda3
    using the live CD (the other steps, you mentioned, seem to be ok).

    alternatively, instead of the previous command you may also run grub to open a grub-shell and issue the commands:
    Code:
    root (hd0,2)
    setup (hd0,2)
    ciao,
    Mario

  6. #6
    Join Date
    Jul 2008
    Beans
    245
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    Quote Originally Posted by swarup View Post
    All I'll do is copy what you've given and paste it into a terminal window. Are you certain what you've given is proper? In view of what you've written vis-a-vis the danger of putting an incorrect command here, I want to be sure what I'm pasting is correct. If you are certain I can paste what you've given and execute it, then I'll go ahead. I want to get rid of the unwanted icon, but I certainly don't want to end up deleting the entire HD!
    it is correct. bs=440 selects a blocksize of 440 bytes. count=1 transfers exactly 1 block of the specified size. hence, this command overwrites the first 440 bytes of your disk with zeros. these bytes usually contain the standard MBR boot loader not needed by EFI machines. if rEFIt recognizes no boot loader, it displays no icon.

    do not attempt to delete the remaining bytes (up to 512) of the first sector, as this is the MBR partition table, although the MBR can be rebuild using rEFIt's partitioning tool. the second sector and consecutive ones contain the GPT. this is why you should not accidentally mis-type this command.

    ciao,
    Mario

  7. #7
    Join Date
    May 2007
    Beans
    1,245

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    Quote Originally Posted by _mario_ View Post
    it is correct.
    I see. Whereas for produnis (above), it did not work because his grub was not properly installed to the linux partition, right? That is why he got the problem when he used your method?

    Ok, so assuming I have understood correctly that this is why it didn't work for produnis, then, since my grub is correctly installed to the linux partition, so your method should work for me. I'll back up all my data carefully, and then try what you suggest. Let us cross our fingers and hope it goes well! It took me a long time to get my Ubuntu install configured the way I want it on this machine.

  8. #8
    Join Date
    Sep 2009
    Beans
    4

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    I ran the command below as was mentioned. Feeling comfortable as I am used to using dd and its different versions.

    Code:
    sudo dd if=/dev/zero of=/dev/sda bs=440 count=1
    Unfortunately I still have an extra icon. Luckily nothing was ruined though. Any other ideas on how to get rid of the second Linux icon?

  9. #9
    Join Date
    Sep 2009
    Beans
    6

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    Not to thread jack, but I tried your command

    sudo dd if=/dev/zero of=/dev/sda bs=440 count=1

    and it gives me this error:

    dd: /dev/sda: Operation not supported

    I'm having a similar problem, except I'm running a triple boot system with EFI on partition 1, Mac OS 10.5 on partition 2, Ubuntu on 3 and windows on 4. What happens is that I get 4 icons in this order: Mac OS from Macbook HD, Windows from Macbook HD, Linux from sda3, and Windows from ______. Everything works except for the Windows from Macbook HD. Here's a copy of the partition table via refit's tool for reference.


    *** Report for internal hard disk ***

    Current GPT partition table:
    # Start LBA End LBA Type
    1 40 409639 EFI System (FAT)
    2 409640 488777991 Mac OS X HFS+
    3 488777992 558258460 Basic Data
    4 558258750 625137344 MS Reserved

    Current MBR partition table:
    # A Start LBA End LBA Type
    1 1 409639 ee EFI Protective
    2 409640 488777991 af Mac OS X HFS+
    3 488777992 558258460 83 Linux
    4 * 558258750 625137344 0b FAT32 (CHS)

    MBR contents:
    Boot Code: Unknown, but bootable

    Partition at LBA 40:
    Boot Code: None (Non-system disk message)
    File System: FAT32
    Listed in GPT as partition 1, type EFI System (FAT)

    Partition at LBA 409640:
    Boot Code: Windows NTLDR
    File System: FAT12
    Listed in GPT as partition 2, type Mac OS X HFS+
    Listed in MBR as partition 2, type af Mac OS X HFS+

    Partition at LBA 488777992:
    Boot Code: GRUB
    File System: ext3
    Listed in GPT as partition 3, type Basic Data
    Listed in MBR as partition 3, type 83 Linux

    Partition at LBA 558258750:
    Boot Code: Windows NTLDR
    File System: FAT32
    Listed in GPT as partition 4, type MS Reserved
    Listed in MBR as partition 4, type 0b FAT32 (CHS), active

  10. #10
    Join Date
    Sep 2009
    Beans
    4

    Re: Reinstalled Jaunty, now 2 linux icons appear at rEFIt boot: Can I reinstall rEFIt

    Not to thread jack, but I tried your command

    sudo dd if=/dev/zero of=/dev/sda bs=440 count=1

    and it gives me this error:
    You need to determine the device name for your hard drive. Once you have booted into the Linux live CD open a terminal and type:

    Code:
    sudo fdisk -l
    This will give you some output and I am betting it will have different partitions on /dev/hda. If it is "hda" then use that in place of sda. Your command would look like:
    Code:
    sudo dd if=/dev/zero of=/dev/hda bs=440 count=1
    The difference is between using a SATA/SCSI/USB device (sda, sdb, etc) or an IDE device (hda, hdb, etc).

    It could also be that you have more than one hard drive and your triple boot drive is sdb.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

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