Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: refit for triple boot - remove legacy os from boot menu

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

    Re: refit for triple boot - remove legacy os from boot menu

    Quote Originally Posted by drewjurecka View Post
    Hi Mario,
    When I ran the script you sent me, I got the following message: "dd: /dev/sda: Operation not supported"
    what was supposed to happen and how can I fix it?
    you'll need to run it using sudo:
    Code:
    sudo dd if=/dev/zero of=/dev/sda bs=440 count=1
    Quote Originally Posted by drewjurecka View Post
    is there some way I can check to see if any unnecessary boot codes are installed?
    the only way i know of is reading the boot code to a file:
    Code:
    sudo dd if=/dev/sda of=some-file bs=440 count=1
    and using a hex editor to check whether the content is something other than completely zero.

    ciao,
    Mario

  2. #12
    Join Date
    Apr 2006
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: refit for triple boot - remove legacy os from boot menu

    Code:
     sudo hexdump -Cn512 /dev/sda
    And dont dd anything to the disk before saving from the disk to a file to restore if it goes wrong.

  3. #13
    Join Date
    May 2009
    Location
    Toronto, Canada
    Beans
    16
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: refit for triple boot - remove legacy os from boot menu

    Mario, I fixed the issue using the dd command you sent me. It wouldn't run from an OSX terminal, but worked from Linux.
    Thanks!

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

    Re: refit for triple boot - remove legacy os from boot menu

    Quote Originally Posted by drewjurecka View Post
    Mario, I fixed the issue using the dd command you sent me. It wouldn't run from an OSX terminal, but worked from Linux.
    Thanks!
    no problem. for those that need to run this command from OSX, you'll have to substitute /dev/sda, /dev/sdb,... with /dev/disk0, /dev/disk1,...

    ciao,
    Mario

  5. #15
    Join Date
    Jan 2010
    Beans
    3

    Re: refit for triple boot - remove legacy os from boot menu

    So the terminal command would be:

    sudo dd if=/dev/zero of=/dev/disk0 bs=440 count=1
    Because I'm only getting:

    dd: /dev/disk0: Resource busy
    Would appreciate help.

  6. #16
    Join Date
    Jan 2010
    Beans
    4
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: refit for triple boot - remove legacy os from boot menu

    Im having the same issue.
    dd: /dev/disk0: Resource busy

  7. #17
    Join Date
    Jan 2008
    Location
    Netherlands
    Beans
    2,930
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: refit for triple boot - remove legacy os from boot menu

    try it from within Linux in a live environment.
    Linux on your Apple Mac │ iLinux
    http://mac.linux.be
    http://www.mintppc.org

  8. #18
    Join Date
    Dec 2006
    Location
    Manila, Philippines
    Beans
    1,886
    Distro
    Ubuntu Development Release

    Re: refit for triple boot - remove legacy os from boot menu

    After running sudo dd if=/dev/zero of=/dev/sda bs=440 count=1, I lost my Ubuntu entry instead of the Legacy OS.

    My setup is dual booting OS X and Ubuntu with a FAT32 partition for shared files.
    MacBook Air 3,1 128gb | Fujitsu Esprimo U9200 | Google Nexus One

    Pinoy ka ba? | Google Profile | Twitter: @AllanCaeg| Identi.ca: allancaeg

  9. #19
    Join Date
    Dec 2006
    Location
    Manila, Philippines
    Beans
    1,886
    Distro
    Ubuntu Development Release

    Re: refit for triple boot - remove legacy os from boot menu

    Looks like sudo dd if=/dev/zero of=/dev/sda bs=440 count=1 nuked my Ubuntu partition. Reformatting now.

    My setup is
    /dev/sda1 - fat32 EFI
    /dev/sda2 - hfs+ Macintosh HD
    /dev/sda3 - fat32 shared media drive for OS X and Ubuntu (where rEFIt got "Legacy OS")
    /dev/sda4 - ext4 Ubuntu root
    /dev/sda5 - ext4 Ubuntu home
    /dev/sda6 - linux-swap

    What command do I run to remove the "Legacy OS" on my rEFIt?
    MacBook Air 3,1 128gb | Fujitsu Esprimo U9200 | Google Nexus One

    Pinoy ka ba? | Google Profile | Twitter: @AllanCaeg| Identi.ca: allancaeg

Page 2 of 2 FirstFirst 12

Tags for this Thread

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
  •