Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 50

Thread: Installing on External Hard Disk - Where does Grub 2 go

  1. #11
    Join Date
    Nov 2009
    Location
    New Delhi, India
    Posts
    174

    Default Re: Installing on External Hard Disk - Where does Grub 2 go

    Hi,

    Refer to above post. Attempt to "repair" MBR on external HDD, using Windows Vista Install DVD failed. The program, just as the BIOS, did not detect the drive! Any suggestions please?
    The 12.2 installation program at some point offers an option to write generic MBR to the disk. Would that work?

    Checked jdmcdaniel's blog in re of Grub 2. It addresses Windows 7 and efi filesystem and not of use to me.

    Also checked Grub 2 official documentation and (to me) it appears to say that it (Grub 2) will write/be written (if selected to write to MBR) to the MBR of first disk only! Am I correct in this? If yes, and Grub 2 is installed in a logical partition (and not in the MBR) how does the BIOS hand over control to Grub2.

    I also note that Grub 2 identifies disks by UUIDs. That should simplify matters for the boot loader in respect of booting sequence set up BIOS.

    Of course I only wish to leave my first disk sda (primary master) untouched and install 12.2 on external hard disk with Grub 2 as boot loader. Knowing how to do it and how it works is the bonus!

    PrakashC

  2. #12
    Join Date
    Nov 2009
    Location
    New Delhi, India
    Posts
    174

    Default Re: Installing on External Hard Disk - Where does Grub 2 go

    Quote Originally Posted by PrakashC View Post
    Hi,

    Checked jdmcdaniel's blog in re of Grub 2. It addresses Windows 7 and efi filesystem and not of use to me.

    PrakashC
    Sorry! I meant "It addresses Windows 7 with UEFI BIOS and not of much use to me."

    PrakashC
    Last edited by PrakashC; 19-Oct-2012 at 01:03. Reason: Forgot to sign!

  3. #13
    Join Date
    Jul 2008
    Location
    Toronto, Canada
    Posts
    1,253

    Default Re: Installing on External Hard Disk - Where does Grub 2 go

    I have different renditions of openSUSE installed on two drives and each Grub1 or Grub2 is pointing to its own " / " (root) partition.
    The first openSUSE is installed to MBR and the next openSUSE is installed to its " / " (root) partition.


    Have a look at this Arch Linux website.

    The Master Boot Record (MBR) occupies the first 512 bytes of the first hard disk, and is the first thing loaded by the BIOS to hand over control to a program capable of booting the desired operating system. In general, a bootloader is installed in the MBR, removing its previous content.
    My Linux Box
    OS:
    openSUSE 42.3 - Plasma 5.8.7
    OS:
    Tumbleweed Plasma 5.15.4
    ASUS P5Q | Intel Quad 6600 @3.02 GHz | 8GB G.SKILL RAM | Nvidia GeForce 750 Ti

  4. #14
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Installing on External Hard Disk - Where does Grub 2 go

    On 2012-10-12 16:46, PrakashC wrote:
    >
    > Hi,
    > Further to the above post, I have gone through openSUSE 12.2 Reference
    > document. The chapter 9 still is covering Grub Legacy and has nothing
    > on the Grub 2 use which is the default selection!!


    So, report in in Bugzilla, as a documentation issue.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  5. #15
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Installing on External Hard Disk - Where does Grub 2 go

    On 2012-10-19 18:28, Carlos E. R. wrote:
    > On 2012-10-12 16:46, PrakashC wrote:
    >>
    >> Hi,
    >> Further to the above post, I have gone through openSUSE 12.2 Reference
    >> document. The chapter 9 still is covering Grub Legacy and has nothing
    >> on the Grub 2 use which is the default selection!!

    >
    > So, report in in Bugzilla, as a documentation issue.


    Correction. GRUB 2 _is_ documented, chapter 10 of the reference book.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 12.1 x86_64 "Asparagus" at Telcontar)

  6. #16
    Join Date
    Nov 2009
    Location
    New Delhi, India
    Posts
    174

    Default Re: Installing on External Hard Disk - Where does Grub 2 go

    Hi,
    Yes, I eventually found (embarrassed) Grub 2 in Chapter 10 of the Reference. However, it does not contain info I need. In fact the now the problem has become a little more complex. Let me restate the matter in detail.



    I have a Seagate FA GoFlex Desk - 2000 (2 TB) external hard disk. I use it with a Dell Dimension C521 desk top. The internal HDD of 160 GB is dedicated to running Windows Vista Home Premium (32 bit) OS. The PC BIOS can boot off the USB. The GoFlex drive has Seagates pre installed instant back up program etc. I used shrink volume to reduce the single partition to half the size (1 TB) in order to install Linux distributions in remaining space. Till this point the drive was recognised as bootable by the BIOS.
    I wished to first install open SUSE 12.2 with Grub 2 as boot manager. The plan was to set up BIOS booting sequence to internal DVD, external HDD and last the internal HDD. This way if the external drive is not connected or switched on the system boots into Windows and if the external disk is connected the boot manager comes into play. This had worked with earlier version installs 11.4 and 12.1 with Legacy Grub. Those installations were lost due to external HDD crash. The present drive is a replacement. So I do not have Linux installation available on my PC.
    When installing 12.2, I opted to install Grub 2 to the /boot partition which is a primary partition (the second on the external drive). The option to write to MBR of internal HDD was unchecked. There was no option to write to MBR of external drive. The install appeared to have gone OK and this partition shows up with bootable flag in GParted. "BUT" the external drive is no longer bootable! BIOS does not recognise its presence nor does Windows Vista bootrec program when I tried to repair possibly damaged MBR. The first primary partition containing the Seagate proprietary software is still available to windows OS. Gparted can see all the partitions. Only I cant boot off the external drive now!
    My understanding of the situation:

    1. Grub 2 identifies drives by UUID. The disk sda is (always?) the SATA primary master. The external disk on USB is shown as sdb or sdf , which does not matter much as the UUID is used to identify it.
    2. The booting sequence in BIOS set up should determine which drive the computer boots off from. Yet when installing 12.2 from DVD the installation programme (Yast) will write only to MBR of sda.
    3. My problem of the drive not being recognised or detected by BIOS is related to something written to MBR when installing 12.2. I recall an option to write “generic MBR” to the drive, but I had not checked or selected it.

    Possible recovery methods:

    1. 1.If the problem is only with MBR of external drive, finding a way to repair it should do the trick. With Grub 2 installed in the /boot partition, which is flagged as bootable, the system should work the same way as it would if it was sda.
    2. 2. In view of earlier failure to repair MBR with Vista disc, I could try reinstalling or repairing 12.2 and selecting the option to write generic MBR to the disk “ONLY IF IT IS TO THE EXTERNAL DISK”.


    Any suggestions please.

    PrakashC

  7. #17
    Join Date
    Sep 2012
    Posts
    4,972

    Default Re: Installing on External Hard Disk - Where does Grub 2 go

    Quote Originally Posted by PrakashC View Post
    2 TB
    Is it possible that openSUSE formatted it as GPT? Could you boot any live Linux and show results of "fdisk -l /dev/sdX", where /dev/sdX is your external disk?

  8. #18
    Join Date
    Nov 2009
    Location
    New Delhi, India
    Posts
    174

    Default Re: Installing on External Hard Disk - Where does Grub 2 go

    I was certain that open SUSE did format the disk as GPT, primarily because all data on the first partition is intact and accessible to Windows Vista. But I did check and the results are:

    Result of fdisk -l /dev/sdb


    Disk /dev/sdb: 200.4 GB, 2xxxxxx bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907xxxxx sectors
    Units = sector of 1*512 bytes
    Sector size (logical/physical) 512 bytes /512 bytes
    I/O size (minimum/optimum) 512 bytes / 512 bytes
    Disk identifier )x00008baf


    Device Boot Start End Blocks Id System
    /dev/sdb1 63 1953733822 9968668800 7 HPFS/NTFS/exFAT
    /dev/sdb2 * xxxxx xxxxxxxxxxx xxxxxxxx 83 Linux
    /dev/sdb3 xxxxxxx xxxxxxxxxxx xxxxxxxx f W95 Ext'd (LBA)
    /dev/sdb5 xxxxxxxx xxxxxxxxxx xxxxxxxx 82 Linux Swap/Solaris
    /dev/sdb6 xxxxxxxx xxxxxxxxxx xxxxxxxx 83 Linux

    I also checked my sda and it is on the same lines!

    By the way I noticed that Gparted also has the facility to write generic MBR to a disk and it should be able to do the trick. Any warning advice on the matter? I would not like to mess up or complicate matters further.

    PrakashC

  9. #19

    Default similar issue to PrakeshC's

    I've run into something similar with the full 12.2 dvd iso. I have a Dell notebook with single hda drive that I use and need to boot windows xp, and Ubuntu via wubi.

    I installed 12.2 onto an external usb drive (sdb), giving the whole drive, and lvm partitioning to the 12.2 installer. I've seen previous installs where there was an option to select which drive (sda or sdb) to place the bootloader on.

    However, I didn't get this prompt on this particular 12.2 install, and from reading above, it appears that at least in the way I installed 12.2, it's writing it's grub (grub2) data to both hda and hdb.

    I can get the full grub menu (suse 12, windows xp, ubuntu) if I plug the usb drive in, but it's not always convenient to haul that extra drive around.

    Booting without the external drive just kicks me into the grub error> console

    I have backups, and recovery disks, and would be interested in opinions on restoring the windows mbr and trying to add the usb suse option as a 3rd entry, or I wouldn't mind putting/keeping grub(2)? as the main sda mbr as long as I can always boot windows xp and wubi's ubuntu boot (e.g. I'm not bothered by having an entry for suse that won't work, if the usb drive is not there).

    For reference, I have Fedora 17 on a different usb drive, and when I want to boot it, I just plug that drive in and boot from usb.

    Did 12.2 install remove the ability to write it's grub loader to external drive only? I'm wondering if I missed a prompt, or the UI selector for which volume to write the loader to changed?

    Thanks for any input.




    Quote Originally Posted by PrakashC View Post
    I was certain that open SUSE did format the disk as GPT, primarily because all data on the first partition is intact and accessible to Windows Vista. But I did check and the results are:

    Result of fdisk -l /dev/sdb


    Disk /dev/sdb: 200.4 GB, 2xxxxxx bytes
    255 heads, 63 sectors/track, 243201 cylinders, total 3907xxxxx sectors
    Units = sector of 1*512 bytes
    Sector size (logical/physical) 512 bytes /512 bytes
    I/O size (minimum/optimum) 512 bytes / 512 bytes
    Disk identifier )x00008baf


    Device Boot Start End Blocks Id System
    /dev/sdb1 63 1953733822 9968668800 7 HPFS/NTFS/exFAT
    /dev/sdb2 * xxxxx xxxxxxxxxxx xxxxxxxx 83 Linux
    /dev/sdb3 xxxxxxx xxxxxxxxxxx xxxxxxxx f W95 Ext'd (LBA)
    /dev/sdb5 xxxxxxxx xxxxxxxxxx xxxxxxxx 82 Linux Swap/Solaris
    /dev/sdb6 xxxxxxxx xxxxxxxxxx xxxxxxxx 83 Linux

    I also checked my sda and it is on the same lines!

    By the way I noticed that Gparted also has the facility to write generic MBR to a disk and it should be able to do the trick. Any warning advice on the matter? I would not like to mess up or complicate matters further.

    PrakashC

  10. #20

    Default Re: similar issue to PrakeshC's

    OK, I should have read ch. 10 before installing 12.2, my bad there. But I have many books and links on installing opensuse from pre 12.2 versions that mention going through the previous install steps pre - 12.2's grub 2 implementation method but using the latest opensuse distribution, that may now be difficult with removable media installs.

    What I'm considering is restoring the windows mbr with either the gparted or easybcd utility with the opensuse 12.2 usb drive disconnected, which will get the windows xp boot back (when external usb drive with 12.2 is not attached), then there are some steps here to remount the ubuntu wubi files: How To Restore the Wubi Ubuntu Bootloader - How-To Geek

    Any suggestions on how to get a full bootable 12.2 on external usb that will leave the host windows mbr intact (when the external suse drive is not attached) would be helpful. I'll try to see what fedora 17 is doing to allow that. Thanks.

Page 2 of 5 FirstFirst 1234 ... LastLast

Posting Permissions

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