Find the answer to your Linux question:
Results 1 to 9 of 9
I have been having so many problem with ubuntu! I finally got it and windows 7 installed on seprate hard drives. Windows installed first, then ubuntu 10.04.01. Had to use ...
  1. #1
    Just Joined!
    Join Date
    Oct 2010
    Posts
    11

    Question Grub Help Please!

    I have been having so many problem with ubuntu!

    I finally got it and windows 7 installed on seprate hard drives.

    Windows installed first, then ubuntu 10.04.01.

    Had to use the alternate ubuntu install cd to make it work. During the install it said there were no other operating systems installed on the computer and asked if grub could overwrite the master boor record. I knew this was something I wanted to do and if it was wrong it could most likely be fixed later.

    So that being said, ubuntu has taken over the boot of my pc. No grub menu pops up. Not sure how to add windows to grub to make it give me a choice.

    Can you guys help with this please?

    Couple more things... I did try pressing shift durning startup to get grub to load, and nothing happened.

    Here is my fdisk.

    Windows is on sda and ubuntu is on sdb.. i think at least.

    Also please note I am almost a complete n00b at ubuntu and linux in general. Please give details instructions on anything you would like me to do.




    Disk /dev/sda: 74.4 GB, 74355769344 bytes
    255 heads, 63 sectors/track, 9039 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000ddedc

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 102400 7 HPFS/NTFS
    Partition 1 does not end on cylinder boundary.
    /dev/sda2 13 9040 72508416 7 HPFS/NTFS

    Disk /dev/sdc: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x02f94d51

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 1 19458 156295361 7 HPFS/NTFS

    Disk /dev/sdb: 74.4 GB, 74355769344 bytes
    255 heads, 63 sectors/track, 9039 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0005cb95

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 8666 69606400 83 Linux
    /dev/sdb2 8666 9040 3004417 5 Extended
    /dev/sdb5 8666 9040 3004416 82 Linux swap / Solaris

    Disk /dev/sdd: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0195c00b

    Device Boot Start End Blocks Id System
    /dev/sdd1 2 30401 244188000 f W95 Ext'd (LBA)
    /dev/sdd5 2 30401 244187968+ 7 HPFS/NTFS

  2. #2
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Have you tried to run
    Code:
    sudo update-grub
    To see if a new grub.cfg file is created?
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  3. #3
    Just Joined!
    Join Date
    Oct 2010
    Posts
    11
    Quote Originally Posted by jayd512 View Post
    Have you tried to run
    Code:
    sudo update-grub
    To see if a new grub.cfg file is created?
    No I had not. Just did though.

    Output was:

    Generating grub.cfg ...
    Found linux image: /boot/vmlinuz-2.6.35-22-generic
    Found initrd image: /boot/initrd.img-2.6.35-22-generic
    Found linux image: /boot/vmlinuz-2.6.32-25-generic
    Found initrd image: /boot/initrd.img-2.6.32-25-generic
    Found memtest86+ image: /boot/memtest86+.bin
    ls: cannot access /var/lib/os-prober/mount/boot
    Boot: No such file or directory
    done

    No idea what that means.

    I have to go pick up my gal, be back in a hour.

  4. #4
    Just Joined! tyho's Avatar
    Join Date
    Oct 2010
    Location
    Mwanza, Tanzania
    Posts
    76
    It seems like you have the same problem as in this post: ubuntuforums.org/showthread.php?t=1374445 . Especially take a look on Post #5 ubuntuforums.org/showpost.php?p=9922017&postcount=5 , that might fix your problem.

    (I hate this stupid 15 posts or more limitation for URLs)

  5. #5
    Just Joined!
    Join Date
    Oct 2010
    Posts
    11
    I read that thread and that does seem to be on the right track.

    However I am not sure how to:

    Run a boot info scrpit

    or how to

    - navigate to /mnt in nautilus and delete /boot folder.

  6. #6
    Just Joined! tyho's Avatar
    Join Date
    Oct 2010
    Location
    Mwanza, Tanzania
    Posts
    76
    OK, do this at first:
    Code:
    sudo mkdir /mnt/windows
    sudo mount /dev/sda1 /mnt/windows
    (I assume /dev/sda1 is the partition Windows boots of)

    I've never used Windows 7, so I don't know how it boots, but according to the mentioned forum post, there should be a folder called Boot on /dev/sda1. If there is also a folder called boot, that's your problem. You might want to rename it instead of deleting it, just to make sure you won't break anything.

    You can rename it by running
    Code:
    sudo mv /mnt/windows/boot /mnt/windows/boot_backup
    The new name of the boot folder will be boot_backup. You can name it whatever you want, boot_backup is just an example.

    After that, run
    Code:
    sudo update-grub
    again.

    Now it should work. If not, post the output of update-grub.

  7. #7
    Just Joined!
    Join Date
    Oct 2010
    Posts
    11
    Quote Originally Posted by tyho View Post
    OK, do this at first:
    Code:
    sudo mkdir /mnt/windows
    sudo mount /dev/sda1 /mnt/windows
    (I assume /dev/sda1 is the partition Windows boots of)

    I've never used Windows 7, so I don't know how it boots, but according to the mentioned forum post, there should be a folder called Boot on /dev/sda1. If there is also a folder called boot, that's your problem. You might want to rename it instead of deleting it, just to make sure you won't break anything.

    You can rename it by running
    Code:
    sudo mv /mnt/windows/boot /mnt/windows/boot_backup
    The new name of the boot folder will be boot_backup. You can name it whatever you want, boot_backup is just an example.

    After that, run
    Code:
    sudo update-grub
    again.

    Now it should work. If not, post the output of update-grub.
    tyho you rock! That worked perfectly. I now get a grub menu and windows is a option.

    For some reason grub has two ubuntu installs listed is this normal? (Two ubuntus and two ubuntus recovery modes that is)

  8. #8
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,073
    Do they happen to have different kernel versions listed with them?
    That will happen when doing system updates.
    If you want to remove the unwanted entries, look to the Grub 2 Guide.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  9. #9
    Just Joined!
    Join Date
    Oct 2010
    Posts
    11
    Quote Originally Posted by jayd512 View Post
    Do they happen to have different kernel versions listed with them?
    That will happen when doing system updates.
    If you want to remove the unwanted entries, look to the
    Thanks

    ....................

Posting Permissions

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