Page 92 of 94 FirstFirst ... 42829091929394 LastLast
Results 911 to 920 of 931

Thread: Grub 2 Basics

  1. #911
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Grub 2 Basics

    Thanks! I am just hoping I can get back to Ubuntu and windows.
    I'll give it a try.

    Thanks and I'll post back the results.

  2. #912
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Grub 2 Basics

    Well, it went really well. I was able to install it and it also asks where to put the grub, which was nice.
    It defaulted to my 1TB USB drive, so it's a good thing I noticed that and fixed it.
    I could see the Mint and recovery were the 1st two options and then my custom 3 entries.
    Followed by 10_linux and 30_os-prober.

    The only bad thing that happened is that it would not accept my user or password. I am not sure which.
    So, I may have to re-install but, at least I know how to do it.
    Thanks for the help.
    ------------------------------------------------------------------------------------------------
    I see what I did now. I misspelled my username. It's a good thing I have access to the mint home directory to see that.
    Guess I'll see if I can fix that or else I'll have to re-install but, at least it is pretty fast.
    Thanks again!

  3. #913
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Grub 2 Basics

    Quote Originally Posted by drs305 View Post
    I'm sure you are familiar with the perils of installing Ubuntu, but I still recommend using the manual partitioning scheme to make sure your other OS's don't get overwritten.

    But as far as Grub goes, the only main issue is which Grub controls your boot. If you accept the default installation settings, your new mint will control the boot until you change it back. That's easy - just boot to your original OS and run "sudo grub-install /dev/sdX".

    I assume you will stick to your maintenance-free grub menu, so if you enable 10_* and 30_* and run it once you can copy the Mint data it finds to your custom menu and disable them again.

    And if you left the Mint grub menu as is, you would certainly know if and when it took over. (I have different backgrounds to easily tell the difference, but my menus are almost identical on all the OSs.) You could even go to the extreme of disabling Mint's grub commands or not installing it at all, but I probably wouldn't go that far.

    I've never had a problem with installing to a USB drive for testing, and if you keep the OS booting from a main drive you won't notice much difference.

    Hope you enjoy the experience.

    I installed Mate which is supposed to be based on gnome 2. I'm not sure I like it. I'll have to play around with it more.

    The grub is not the one I have edited, although it must contain some of 06_custom as the 3 entries are there except
    that they say "sda1" etc beside each, which is not what I have.

    So, do I just enter sudo grub-install /dev/sda to put it back?

  4. #914
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by Cavsfan View Post
    So, do I just enter sudo grub-install /dev/sda to put it back?
    Yes, but only from the OS you want to control things. That will point the MBR instructions to look for the Grub folder on your currently-running OS.
    Back to Xorg...

    Retired.

  5. #915
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Grub 2 Basics

    Quote Originally Posted by drs305 View Post
    Yes, but only from the OS you want to control things. That will point the MBR instructions to look for the Grub folder on your currently-running OS.
    Thanks for the quick reply! That would be Ubuntu 10.04 I would have to think right?
    That cannot be accomplished in windows 7, which my wife primarily uses.

  6. #916
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Grub 2 Basics

    You are good!

    It looks like it worked.

    Code:
    cavsfan@cavsfan-desktop:~$ sudo grub-install /dev/sda
    [sudo] password for cavsfan:
    Installation finished. No error reported.
    cavsfan@cavsfan-desktop:~$
    I added cairo-dock to Mint and compiz but, was unable to find/install emerald. The alt+tab doesn't work. Can't minimize windows, etc.
    Can't drag and drop things into the dock. It's like starting over from scratch.

    Here is what I have now (thanks to you):
    Code:
         0    Ubuntu Lucid Lynx
         1    Ubuntu Lucid Lynx (Recovery Mode)
         2    Windows 7
         3    Ubuntu, with Linux 2.6.32-41-generic
         4    Ubuntu, with Linux 2.6.32-41-generic (recovery mode)
         5    Ubuntu, with Linux 2.6.32-40-generic
         6    Ubuntu, with Linux 2.6.32-40-generic (recovery mode)
         7    Windows 7 (loader) (on /dev/sda1)
         8    Linux Mint 13 MATE 64-bit, 3.2.0-24-generic (/dev/sda5) (on /dev/sda7)
         9    Linux Mint 13 MATE 64-bit, 3.2.0-24-generic (/dev/sda5) -- recovery mode (on /dev/sda7)
        10    Linux Mint 13 MATE 64-bit, 3.2.0-23-generic (/dev/sda5) (on /dev/sda7)
        11    Linux Mint 13 MATE 64-bit, 3.2.0-23-generic (/dev/sda5) -- recovery mode (on /dev/sda7)
    I won't have a lot to do to get it back to normal.
    I think I like Ubuntu better.

  7. #917
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Grub 2 Basics

    One question: would you know how I could change this
    Code:
    menuentry "Linux Mint 13 MATE 64-bit, 3.2.0-24-generic (/dev/sda5) (on /dev/sda7)" {
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 283ef203-29c7-437f-9992-8ff6dad9f7e1
        linux /vmlinuz-3.2.0-24-generic root=UUID=f2943974-0a9f-47ec-b5d4-7389c9be2ac0 ro quiet splash $vt_handoff
        initrd /initrd.img-3.2.0-24-generic
    }
    Into this or else what must I add to this:
    Code:
    menuentry "Linux Mint 13 MATE 64-bit" {
            set root=(hd0,7)
            linux /vmlinuz root=/dev/sda7 ro quiet splash
            initrd /initrd.img
    }
    I tried both sda5 and sda7 and both got an error saying to load the kernel first.

    Although I set sda4 to /boot, sda5 to swap, sda6 to / and sda7 to /home this is what sudo blkid yields:

    Code:
    cavsfan@cavsfan-desktop:~$ sudo blkid
    /dev/sda1: UUID="1CFC7A8DFC7A60C6" TYPE="ntfs" 
    /dev/sda2: UUID="deb59f40-8300-4f51-95b2-ab5492a4f2c6" TYPE="swap" 
    /dev/sda5: UUID="283ef203-29c7-437f-9992-8ff6dad9f7e1" TYPE="ext4" 
    /dev/sda7: UUID="f2943974-0a9f-47ec-b5d4-7389c9be2ac0" TYPE="ext4" 
    /dev/sda8: UUID="38870dc0-cd26-47a4-84b1-22c8467fa753" TYPE="ext4" 
    /dev/sda3: UUID="a162dc8a-e4df-4b79-b4c3-524761ff7ae1" TYPE="ext4" 
    /dev/sdb1: LABEL="Fantom" UUID="78B8D1A1B8D15DE6" TYPE="ntfs"
    Thanks!

  8. #918
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by Cavsfan View Post
    One question: would you know how I could change this
    Code:
    menuentry "Linux Mint 13 MATE 64-bit, 3.2.0-24-generic (/dev/sda5) (on /dev/sda7)" {
        insmod ext2
        set root='(hd0,5)'
        search --no-floppy --fs-uuid --set 283ef203-29c7-437f-9992-8ff6dad9f7e1
        linux /vmlinuz-3.2.0-24-generic root=UUID=f2943974-0a9f-47ec-b5d4-7389c9be2ac0 ro quiet splash $vt_handoff
        initrd /initrd.img-3.2.0-24-generic
    }
    Into this or else what must I add to this:
    Code:
    menuentry "Linux Mint 13 MATE 64-bit" {
            set root=(hd0,7)
            linux /vmlinuz root=/dev/sda7 ro quiet splash
            initrd /initrd.img
    }
    I tried both sda5 and sda7 and both got an error saying to load the kernel first.

    Although I set sda4 to /boot, sda5 to swap, sda6 to / and sda7 to /home this is what sudo blkid yields:

    Code:
    cavsfan@cavsfan-desktop:~$ sudo blkid
    /dev/sda1: UUID="1CFC7A8DFC7A60C6" TYPE="ntfs" 
    /dev/sda2: UUID="deb59f40-8300-4f51-95b2-ab5492a4f2c6" TYPE="swap" 
    /dev/sda5: UUID="283ef203-29c7-437f-9992-8ff6dad9f7e1" TYPE="ext4" 
    /dev/sda7: UUID="f2943974-0a9f-47ec-b5d4-7389c9be2ac0" TYPE="ext4" 
    /dev/sda8: UUID="38870dc0-cd26-47a4-84b1-22c8467fa753" TYPE="ext4" 
    /dev/sda3: UUID="a162dc8a-e4df-4b79-b4c3-524761ff7ae1" TYPE="ext4" 
    /dev/sdb1: LABEL="Fantom" UUID="78B8D1A1B8D15DE6" TYPE="ntfs"
    Thanks!
    Lots of ?s...

    1. The original menuentry says both sda5 and sda7 in the title. When Grub automatically builds the menuentry, it doesn't (normally) make mistakes so I'm guessing it was on sda5. Did you make a manual entry and then make the title ... (on sda7). Maybe a separate boot partition does things like that to a menuentry, but I've limited experience experimenting with a separate /boot and not noticed it.

    Note the "set root" line and root in the search line (if present) refer to the /boot partition. The "root" reference in the linux line refers to the main files of the OS.

    In your proposal, if you are using a separate boot, the "set" line and the "linux" line should refer to different partitions. I'd give you the specifics but don't know which is which (see 2).

    Note: Also, if using a custom menuentry, Grub 1.99 now uses "--set=root=28..." rather than "--set 28..." so if you are using a custom menuentry in the latest Ubuntu manually change the search line accordingly (if you include the search line).

    2. Your blkid doesn't match what you tried to do. Don't bet against the blkid results - something must have gone wrong with your plan.
    First, I'd verify the contents of the various partitions to confirm the appropriate files are in each device as specified by the blkid results. Once you know the correct /boot and / partitions, you can build your menuentry (see 1.).

    3. If you continue to have problems, you can experiment in the grub terminal. Press c to get to the terminal, then try loading the kernel with the full command to see if you have the correct partition:
    linux (hd0,X)/vmlinuz-3.2.0-24-generic root=/dev/sdaX ro
    Notice there is no "boot" in the address since you have a separate boot partition. And again, the root and (hd0,X) values will be different. hd0,X will be your boot partition, root= will be your OS files.

    This post may be a bit confusing, but it would be clearer if I knew which partitions were which regarding your main OS's /boot, /, /swap.
    Back to Xorg...

    Retired.

  9. #919
    Join Date
    Aug 2009
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: Grub 2 Basics

    In Mint here is what blkid says:

    Code:
    /dev/sda1: UUID="1CFC7A8DFC7A60C6" TYPE="ntfs" 
    /dev/sda2: UUID="deb59f40-8300-4f51-95b2-ab5492a4f2c6" TYPE="swap" 
    /dev/sda3: UUID="a162dc8a-e4df-4b79-b4c3-524761ff7ae1" TYPE="ext4" 
    /dev/sda5: UUID="283ef203-29c7-437f-9992-8ff6dad9f7e1" TYPE="ext4" 
    /dev/sda6: UUID="4a88d030-5de4-4c4d-b5f3-9fb376f8df17" TYPE="swap" 
    /dev/sda7: UUID="f2943974-0a9f-47ec-b5d4-7389c9be2ac0" TYPE="ext4" 
    /dev/sda8: UUID="38870dc0-cd26-47a4-84b1-22c8467fa753" TYPE="ext4" 
    /dev/sdb1: LABEL="Fantom" UUID="78B8D1A1B8D15DE6" TYPE="ntfs"
    I'm 100% certain that sda5 is /boot, sda6 is swap, sda7 is / and sda8 is /home.
    I ended up installing it 3 times and wrote them down.

    But, my main OS (Ubuntu) sees the other one.

    It doesn't see the windows7 partition and sdb1 is my 1TB USB drive.

    Are you saying that this might work: (in red)
    Code:
    menuentry "Linux Mint 13 MATE 64-bit" {
            set root=(hd0,5)
            linux /vmlinuz root=/dev/sda7 ro quiet splash
            initrd /initrd.img
    }
    sda5 is /boot and sda7 is /.

  10. #920
    Join Date
    Jan 2007
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Grub 2 Basics

    Quote Originally Posted by Cavsfan View Post
    In Mint here is what blkid says:

    Code:
    /dev/sda1: UUID="1CFC7A8DFC7A60C6" TYPE="ntfs" 
    /dev/sda2: UUID="deb59f40-8300-4f51-95b2-ab5492a4f2c6" TYPE="swap" 
    /dev/sda3: UUID="a162dc8a-e4df-4b79-b4c3-524761ff7ae1" TYPE="ext4" 
    /dev/sda5: UUID="283ef203-29c7-437f-9992-8ff6dad9f7e1" TYPE="ext4" 
    /dev/sda6: UUID="4a88d030-5de4-4c4d-b5f3-9fb376f8df17" TYPE="swap" 
    /dev/sda7: UUID="f2943974-0a9f-47ec-b5d4-7389c9be2ac0" TYPE="ext4" 
    /dev/sda8: UUID="38870dc0-cd26-47a4-84b1-22c8467fa753" TYPE="ext4" 
    /dev/sdb1: LABEL="Fantom" UUID="78B8D1A1B8D15DE6" TYPE="ntfs"
    I'm 100% certain that sda5 is /boot, sda6 is swap, sda7 is / and sda8 is /home.
    I ended up installing it 3 times and wrote them down.

    But, my main OS (Ubuntu) sees the other one.

    It doesn't see the windows7 partition and sdb1 is my 1TB USB drive.

    Are you saying that this might work: (in red)
    Code:
    menuentry "Linux Mint 13 MATE 64-bit" {
            set root=(hd0,5)
            linux /vmlinuz root=/dev/sda7 ro quiet splash
            initrd /initrd.img
    }
    sda5 is /boot and sda7 is /.
    Those are the correct addresses for what you describe so I would expect that menuentry to work.

    On thing I've found helpful is to label everything, such as "Mintboot", "Precise", "Mint", etc. It helps, especially with the blkid output, which includes labels.
    Code:
    sudo tune2fs -L "Mintboot" /dev/sda5
    I didn't really understand this part:
    But, my main OS (Ubuntu) sees the other one.

    It doesn't see the windows7 partition and sdb1 is my 1TB USB drive.
    Back to Xorg...

    Retired.

Page 92 of 94 FirstFirst ... 42829091929394 LastLast

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
  •