LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-22-2014, 06:41 PM   #1
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Rep: Reputation: Disabled
FAIL: Migrating Chainloaded MBR to GPT on Intel dg965wh mb? Will not boot :(


EDIT: skip to the legacy BIOS and GRUB 0.99/2.0 etc. boot solutions here:
http://www.linuxquestions.org/questi...ml#post5228896

Although complicated and confusing (to me), the legacy BIOS booting issues turned out to be relatively minor compared to the larger issues of how to properly convert MBR->GPT, and how to move, align, and resize encrypted RAID partitions safely.

Tool bugs could complicate matters let alone one's unawareness of what a tool is actually doing (and not doing) as it performs partition table conversion or partition resizing and moving or file system resizing.

EDIT: link to Ubuntu's MBR->GPT migration guide:
http://askubuntu.com/questions/84501...untu-boot-from

This is a complicated procedure that I just found and I immediately identified issues that might have caused me to corrupt my disk copies while migrating them and expanding them to fill the new physical disks.

dd'ing the MBR partitions directly to larger physical volumes with larger physical sector sizes was probably a bad idea and I have abandoned it. Someone else facing a less complicated migration might be able to use dd to copy to new volumes successfully and easily.

Probably best to start by testing your system BIOS boot first by installing Linux uder GPT on a blank disk and troubleshooting the GRUB 2.0 boot, then considering if GRUB 0.99 complicates booting your migrated server (see the link to booting solutions I discovered, above).

Then at least you will know in advance how feasible and labor-intensive your planned in-place migration is.

Mine turned out to be potentially feasible but incredibly complicated and required abandoning GRUB 0.99 chainloading so I decided to boot my old server drives in a temporary system and build the new server from scratch.

I will also dd the existing OS to the new server (multiboot new and existing OS) before copying in the server data over network. The existing OS already has everything installed for the RAID and encryption and Mythtv and NFS, and could save me lots of time. This was the major reason for attempting dd in the first place.

I will probably also try to get chainloading working with GRUB2. It preserves maintenance function when one OS gets corrupted and allows for trivially easy scripted OS backup/restore from an encrypted partition (hides duplicate UUID that might confuse the boot). A chainloading 0.99 bootloader rarely needs anything except menu changes and is very stable. I hope to do something similar with GRUB2 since it is GPT aware.

One additional thought I had was in addition to backing up the OS I will also back up the bios-grub partition and the boot record to unencrypted files using a backup/restore script. That way I can restore everything 'boot' to its last known good configuration easily without having to chroot or other nastiness.

Wish me luck and same to you!

------------------

Hello everyone, this is my first post here. My background is retired electrical design engineer with a stint as disk controller application/design engineer so I should know but somehow I managed to screw this up.

My system is an Intel dg965wh Core2 Duo bios boot (no EFI) all firmware updated to the 'latest' 5 year old version with (originally) 2 400MB and 4 1.5TB SATA drives formatted to MBR with a dedicated boot partition for GRUB on one of the 400MB drives and all operating systems chainloading with GRUB2 installed to their respective partitions.

There is 4.5TB of audio/video etc. library on a RAID5 volume and one of the 1.5TB drives failed. The system was full anyway so I decided to install 6 4TB drives instead as this is my fileserver for my HTPC that runs in multiple rooms.

The operating system I use most is Ubuntu 12.04 LTS booting from a working drive so I left it as installed, especially since MythTV database requires MySQL and migrating it is finicky. It needs the exact same version of Ubuntu in order to be compatible with the existing database and I decided to skip the backup process since I have a copy already on the original drives if anything does not work out.

I use the desktop Ubuntu because my computing skills are patchy. I have had to basically learn everything 'NIX on my own. I am familiar with shell scripting but no guru and the server install intimidates me, especially since I cannot use it to verify MythTV is working unless I run a desktop version anyway or have uber skills to do everything with baling wire and chewing gum. Maybe that is part of my problem.

In hindsight I should have tried a new install to the new drives first just to make sure there was compatibility. I did not think of that. I took it for granted that I could fix any issues and now I have too much invested in the copy to wipe it and start over.

So my plan was to just copy the existing volumes to new drives and massage everything into the new system with more bigger drives in each RAID by using parted, gparted, grub-install to mold it into a bootable system.

First I used DD to copy all the drives bit-for-bit. Then I ran a utility to convert the drives to GPT (forgot which utility, but I know it comes with Ubuntu). Sorry I do not remember the commands I used; it was a year ago I tried to do this and I still have not got it working so I came here.

After copying the drives and before/after(?) converting them I also ran a utility to align the partitions since I also went from 512B to 4KiB sectors and DD did not align them of course, it left them as the original DOS spec said primary 0 at sector 63.

Once everything was in the correct format, I then used gparted to expand the volumes and move them around into the new boot/RAID/data partitions.

The last step was to load an Ubuntu LiveCD and run grubinstall(?) from a chroot to the existing installed OS. I figured GRUB was not going to boot a GPT so I decided to forego chainloading and just let one installation of GRUB2 (from the pre-existing main OS) handle the bootloading and deal with the pain of configuring GRUB2 for multiple OSs later.

It seemed to work but it did not boot. It says 'insert bootable disk' or something like that. So I never even got as far as rejoining all the RAIDs and expanding them with more partitions. I am still working on getting the bootloader running.

I did falter over the reserved grub partition but I decided to use the dedicated 200MB chainloading GRUB multiboot partition as the reserved partition. I think it is type bios_grub? and I had to run yet another utility to change the type from the original. I forgot the name of that utility but it was probably gparted. Anyway the type is correct. I eventually ignored all the 'set the boot flag' type comments on various forums because none of that information seemed to be correct. It did not work anyway.

I did not wipe the bios_grub(?) partition. I just left it as is with all my old GRUB menu files and documentation of the partition table and chainloading etc. on it. I figured that grub-install was going to ignore the formatting and write the bootloader in binary without regard to any filesystem, since BIOS booting systems boot from a reserved area within the MBR partition anyway, not from within a filesystem.

I really thought I was doing OK until I hit a brick wall at boot.

Anyway, there are so many places this process could have been derailed and I do not know where to start troubleshooting, or how. I really am not looking forward to viewing the hexadecimal to find out what the GPT actually looks like at the low level.

First off, I could have made a mistake when I converted from MBR to GPT. There is something called a protective MBR to help a bios machine boot a GPT without EFI. Did the conversion utility include a protective MBR? Did I pass the correct parameter to force it? I cannot remember the answer to either, or if I was even aware at the time. How would I check for this, short of looking up the hexadecimal for a GPT with MBR on Wikipedia etc. and comparing byte-by-byte in a hex editor (I do not even remember which editor willl let me view a disk directly)? How would I know if I checked properly or if there was some undocumented glitch somewhere that makes the actual hex data vary from what I can look up online?

Secondly, the Ubuntu installation I chrooted to was originally installed on an MBR. Did all the libraries etc. for GPT get installed by the liveCD when I first installed Ubuntu on the MBR server, and does grub-install know how to write a bootloader to a GPT if it was originally installed on MBR? How the heck would I even know if this is possible let alone check that it is configured properly to do this job? Would I have to run some installation under Synaptic and if so how would I know what needs installing and how would I configure it given all this usually happens with a fresh install during hardware detection?

Thirdly, perhaps the motherboard cannot boot a GPT. I think an Intel Core2 Duo bios should be able to but the motherboard I have is sort of a mongrel budget desktop 'media center' Vista-ready motherboard with 7.1 audio as its main selling point. Whoop.

I have looked up the process of migrating to GPT and one thing I noticed is that some motherboards just will not boot a GPT or at least require some massaging to get it working.

I would have checked for this if I thought to try it before copying all the data and re-working all the partitions. Then at least I would have known if this motherboard even boots a GPT at all. Now that I have done all that work I am loathe to delete it all just to check if the thing will boot at all.

I tried installing a small ATA drive but somehow Linux utils I used, or the installation utility on the liveCD (forgot which way I tried), would not let me install a GPT on the drive. Is there some minimum size requirement? Will Ubuntu install GPT on an ATA drive?

I am loathe to try it with one of the original 1.5TB SATA drives. First, it is my backup copy, and second, given my luck with a small ATA drive I do not know if 1.5TB SATA drive will take a GPT under Ubuntu 12.04 at all. MBR can handle up to 2TB. Is the limitation some other size constraint, is it ATA vs. SATA, is it 2TB, or what? I might delete everything on the volume just to find out that I cannot even test a GPT on that drive anyway.

So here I am, stuck. My last thought was to try a fresh install of Ubuntu 12.04 on a different partition, perhaps one of the other OSs (the only one I kept was Ubuntu Studio). Maybe then I might figure this out. The issue there is that I wrote that version to sdb thinking I would multiboot it off the OS on sda. sdb is not in the same state as sda but it is the best I can think of.

So given this situation, is there anyone here who knows of direct straightforward troubleshooting steps I can take to rule out these potential pitfalls one by one and get to the root of this problem?

Thanks in advance for your patience reading this post. I was not sure what was relevant so I just put everything in it I could think of. I am no uber guru, just a middling engineer trying to repair and expand the capacity of an old file server.

Last edited by CherylJosie; 08-29-2014 at 01:48 PM. Reason: Linked to the solution, and a related MBR-GPT conversion guide
 
Old 08-24-2014, 01:01 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quite an epistle.

How about you boot into a Linux of some sort (a liveCD is fine), and go here and do as it says. You can just double-click the tar in a GUI manager to unroll it. Post the RESULTS.txt.
This will give us all the info we need to see what your boot environment is (no personal data).
 
Old 08-25-2014, 01:19 AM   #3
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
Hello and thank you so much for the quick response and helpful suggestion.

I have not looked at the output yet. I will check it soon, but I appreciate your help since it looks like it goes into many things OS as well as drive apparently.

So was I supposed to chroot before I did this, or is it OK to run it from the LiveCD?

It looks like it was wanting to use a utility that it could not find. Should I do anything about that?

EDIT: gawk vs. awk apparently did not appreciably affect the result.

This was the stdout/stderr?:

--------------------

Boot Info Script 0.61 [1 April 2012]


"gawk" could not be found, using "busybox awk" instead.
This may lead to unreliable results.

Identifying MBRs...
Computing Partition Table of /dev/sda...
Computing Partition Table of /dev/sdb...
Computing Partition Table of /dev/sdc...
Computing Partition Table of /dev/sdd...
Computing Partition Table of /dev/sde...
Computing Partition Table of /dev/sdf...
Searching sda1 for information...
Searching sda2 for information...
Searching sda3 for information...
Searching sda4 for information...
Searching sda5 for information...
Searching sda6 for information...
Searching sda7 for information...
Searching sda11 for information...
Searching sdb1 for information...
Searching sdb2 for information...
Searching sdb3 for information...
Searching sdb4 for information...
Searching sdb5 for information...
Searching sdb6 for information...
Searching sdb15 for information...
Searching sdb16 for information...
Searching sdc1 for information...
Searching sdc2 for information...
Searching sdc3 for information...
Searching sdc4 for information...
Searching sdc5 for information...
Searching sdc6 for information...
Searching sdc7 for information...
Searching sdc8 for information...
Searching sdd1 for information...
Searching sdd2 for information...
Searching sdd3 for information...
Searching sdd4 for information...
Searching sdd5 for information...
Searching sdd6 for information...
Searching sdd7 for information...
Searching sdd8 for information...
Searching sde1 for information...
Searching sde2 for information...
Searching sde3 for information...
Searching sde4 for information...
Searching sde5 for information...
Searching sdf1 for information...
Searching sdf2 for information...
Searching sdf3 for information...
Searching sdf4 for information...
Searching sdf5 for information...
Searching sdf6 for information...
Searching sdf7 for information...
Searching sdf8 for information...

Finished. The results are in the file "bootinfo"

------------------

Last edited by CherylJosie; 08-29-2014 at 02:19 PM. Reason: gawk vs awk note
 
Old 08-25-2014, 04:51 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
No, that looks ok - quite a bit to look at tho', so could be a while.
 
Old 08-25-2014, 11:16 AM   #5
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
So I checked results.txt from bootinfo and noticed something strange immediately.

I originally had two boot drives sda and sdb, but sdb was more of a mirror than anything else (first I did a dd copy of sda to sdb, although I only did the 'mirror' incrementally for the OS partition after that).

I had both Ubuntu 12.04 and Ubuntu Studio 11.10 on sda, and the backups on sdb, done with a straight dd command to copy the partitions verbatim, or something like that. Originally I created the backup with a straight dd of the whole drive and then mirrored two data partitions with raid1. From that point forward I only dd'd the OS manuall and let the mirror handle the data partition, not knowing how to mirror a bootable OS partition.

I eventually went with uuid's for the raid because it got confusing when I referred to them as sda2, sdb2 etc. Removing a drive from the system could rename all the drives and break the system, especially because there were duplicate uuid's, so I generated unique uuids and started accessing them all by uuid. For future backups, I still used dd to mirror the OS on a different drive, but I also used crypto on the backup partition so that nothing in the backup was visible to the OS, not even the duplicate UUID. That made things much simpler. This is why there are no backups visible for the OS in the bootinfo output. The 12.04 backup partition is encrypted by dm-crypt(?) and looks like randomness.

The strange thing is that livecd gparted sees Ubuntu 12.04 on sda11 whereas bootinfo sees it on sdc11?

In addition, it looks like bootinfo sees the bootloaders installed on the mbr of sda (grub2 newer install via chroot from Ubuntu 12.04 livecd to 'sda11' partition) and sdb (grub legacy very old, mirrored install from Ubuntu 11.10 on the original drive not the replacement drive). This is as expected.

So bootinfo PROVES that sda and sdb are still the same sda and sdb, however somehow gparted has moved 12.04 from sda to sdc according to bootinfo, even though I already chrooted into it thinking it was on sda! I know I would have noticed... not only that, but when I boot the livecd, gparted STILL thinks that 12.04 is on sda and even shows the label I put on it, Ubuntu12.04-a (to indicate sda copy of the OS) but bootinfo has reported it as being installed to sdc! (no label is shown by bootinfo).

So now the chroot grub-install I did must have run from sdc11 according to bootinfo, but the livecd thought it was on sda11 (as does livecd gparted) and it also wrote the grub2 bootloader to sda even though it ran from chroot to sdc? Huh? Or did I actually chroot from livecd 12.04 into installed 11.10 on sdc, then wrote the bootloader to sda anyway?

What the ??? How does this happen?

I recall from wayback that I had issues with this motherboard bios before. Windows never had issues with it, but Ubuntu does.

The mb has two main boot modes, 'normal' and 'advanced'.

In normal mode, it sets the boot order in groups by device type and within a group, so I can boot from any optical drive first, then any other optical drive, etc. until all the optical drives have been tried, then I can boot from any hard drive in any order, then network, etc etc.. I can reorder by group and within a group.

In advanced mode, I can boot any device in arbitrary order.

When switching modes from normal to advanced, Ubuntu gets all confused about which drive is which. Some tools report a partition on sda whereas others report it on sdc. It seems to swap two pairs of the six SATA ports. On the MB they are labelled 0,1,4,5,2,3 in that exact order. But when the boot mode changes, suddenly they become ordered 0,1,2,3,4,5 or something like that, out of physical order but in numerical order.

It is the most confusing thing I ever dealt with on a computer. Somehow Windows never skipped a beat but Linux gets totally borked by it.

Anyway, it looks like I might have accidentally switched from 'advanced' to 'normal' when I replaced the drives. It is the only logical explanation for what I see in bootinfo not matching what I see in gparted. When I checked the bios it was in normal boot mode. Maybe I decided to change it to 'normal' thinking it was a synonym for 'safe'. Maybe I orinally used 'advanced' because it fixed this problem, or at least made it consistent enough to boot reliably.

I will play with it for a while today and let you know what I find.

Meanwhile, do you have any ideas? Ever see something like this before?

Does what I reported just now jive with what you see in bootinfo?

How should I handle it?

Totally confused and thinking maybe I should play with the bios for a few days until I find out some way to get things consistent, then see if I can massage this mess into what I originally intended. I would just replace the system but my plan is to get an i7 because none of my towers will play HD video (Core2 Duo cannot handle it) and my Dell i7 laptop shuts down from heat when it tries. I cannot afford the system I want now so I have to wait.

I am kicking myself for not having thought to check this bios problem a year ago.
 
Old 08-25-2014, 11:35 AM   #6
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
To play HD video it might be cheaper just to get a new graphics card than a whole new system. A reasonably priced nvidia card should be able to play any HD video.

GPT is backwards compatible with MBR, so a bootloader loaded into the MBR should still be able to boot. I think maybe your bootloader isn't configured properly or is too old to support GPT. I would also try to simplify your booting system. Have one bootloader on the MBR of one disk, and if you dual boot Windoze then that should be the only chainloading done.
 
Old 08-25-2014, 12:27 PM   #7
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
Hi, thanks for your suggestion.

This motherboard has only pciexpress 1.0, it was one of the first boards Intel made with pciexpress. The grapics is geforce 7300gs NVIDIA based, also pciexpress 1.0.

My understanding is that not only is a core2 duo at 2.1GHz inadequate to pipe HD video from disk to screen, but also that it requires picexpress 2.0 to handle full bandwidth 1080p and a core2 duo is limited to pciexpress 1.0 as is the motherboard. Maybe I got something wrong but as far as I know the graphics card does essentially nothing but send video from disk to the graphics device when playing a video stream. The advantages of this graphics card are in its 3d rendering and shading that NVIDIA never released Linux drivers for. Other than that it is a dog.

It can handle it fine if I transcode to a compressed version of 720p but it stutters and eventually freezes on full HD.

I have a more modern, ABIT core2 duo system, and that one cannot do full HD either.

If I update the graphics it will still be limited by pciexpress 1.0. The motherboards do not implement 2.0.

Strangely enough, I CAN stream full HD from my core2duo system disk through Ethernet to my I7 laptop and it plays fine. So it appears the graphics is the limiting factor. I wonder why there is such a performance disparity, but then I have designed for companies that did equally strange things.

If anyone has hard info on this graphics issue, I am all for fixing it, but I am not going to buy a graphics card just to find out it does not work anyway. I will put off that purchase for when I change out the whole system.

Anyone out there that can play full HD i.e. bluray via dvi/hdmi through a core2 duo system with pciexpress 1.0?

This is not really my priority yet anyway. I need it to boot first.

Thanks for the suggestion. I was not even really thinking about it just yet, but if there is someone out there who has already tested such system and got full HD working, please let me know.
 
Old 08-25-2014, 12:43 PM   #8
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I had a core 2 system with an nvidia 8000 series card and it could play full HD just fine, it also has only PCIE 1.0. I think this may be because the 8000 series added vdpau acceleration, which is not present in 7000 series.

It's true that graphics cards aren't cheap and you'll have to do some cost evaluation beforehand.
 
Old 08-25-2014, 03:52 PM   #9
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
I did notice that vdpau seems to be an indispensible part of NVIDIA. MythTV wants it. Thanks for the suggestion, I will check it out.

If I can find one really low price I might spring for it just to see if it helps. I am not planning on re-using anything but the drives from this system if I have to replace it, but I would rather not have that expense if I can get it working for HD. I would just put it in the living room instead.
 
Old 08-25-2014, 04:01 PM   #10
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
Wondering, is there any other solution besides VDPAU? What about ATI/AMD?
 
Old 08-25-2014, 04:23 PM   #11
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by CherylJosie View Post
Wondering, is there any other solution besides VDPAU? What about ATI/AMD?
Yeah, that should work too:
https://en.wikipedia.org/wiki/Unified_Video_Decoder
http://www.phoronix.com/scan.php?pag...3d_vdpau&num=1
 
Old 08-25-2014, 10:33 PM   #12
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
It looks like I may have 'misremembered' something, that's a first for me!

I just tried changing the boot mode and re-running bootinfo. Nothing changed. Gparted still disagrees, as does Nautilus, on the OS name vs. what bootinfo is reporting. I have proof now.

I checked the mount point and filesystems with Nautilus as well as Gparted.

Here is what ubuntu desktop believes the sda drive has on it. I checked into the actual files in the home directory to prove to myself that it is actually the Ubuntu 12.04 that I was using originally.

Ubuntu 12.04
mount point ubuntu-12.04-a (nautilus, gparted)
/dev/sda11 100.00 69.75 30.25 (gparted)
52.3 22.5 29.9 (nautilus)
size used free
Ubuntu 11.10 (bootinfo)

Here is the 'old' Ubuntu Studio 11.10 that I only ever used to experiment with, and to run the backup/restore (since I was re-writing the entire partition to prove I could restore the entire OS from backup) with a script, including using dm-crypt to hide the uuid and prevent duplicates.

Ubuntu Studio 11.10
mount point (uuid is here) (nautilus, gparted)
/dev/sdc4 100.00 67.51 32.49 (gparted)
52.3 20.1 32.3 (nautilus)
size used free
Ubuntu 12.04.3 LTS (bootinfo)

This is all consistent with what I remember, except somehow bootinfo has identified Ubuntu 12.04 as Ubuntu 11.10. and vice-versa.

Maybe this is a scripting bug. Maybe that confused me when I looked at things. Sorry if I misled you.

Gparted thinks the partition is larger than Nautilus because the filesystems are still sized for their original partitions on the old drives. When I dd'd them over, I moved and resized all the partitions with gparted, but never resized the filesystems.

One partition that got moved was Ubuntu Studio. I moved it from the sdb drive to the sdc drive. Originally, my sdb drive was a firmware raid mirror of sda, but that quickly turned into a fiasco because of the TDLE problem marking good sectors bad every time I bumped the machine and got an uncorrectable read error that needed a retry. The firmware raid just wanted to get the data off the mirror and mark the sector bad, even though it was good, so I had to re-add and sync the mirror after the drive swapped in a spare sector. If I kept it up I would have lost the drives, as so many others did (all over the newegg ratings...). I had to go to software raid. Since Microsoft did not support software raid in XP, that was when I went to linux and never looked back.

At that point I just mirrored the data partitions and left the OS partitions unlinked so I could try using them as backup rather than raid. At the time, I was still using Ubuntu 11.10, and I also copied the chainload boot partition and bootloader to sdb so I could boot from that drive if I needed to. I tried it all out and it was working fine. I migrated the OS on sda to 12.04 and just kept making encrypted backups until a data raid drive died, at which point I tried the rest of the migration process to get to gpt.

The label, file system, and files in the filesystem all convince me beyond a shadow of a doubt that the sda drive is in fact the one I used to boot from, on sda11 partition. Everything except bootinfo header agrees that it is 12.04.

So the next thing I did was run grub-install, and it wanted to use blocklists. At that point I tried setting boot flags but none of that helped. Then I learned about the bios-grub partition so I changed my chainloading partition to bios-grub type and re-did the chroot/grub-install, but it still did not boot.

bootinfo is reporting a grub2 bootloader on sda mbr pointing to a grub-bios partition, a grub-bios partition pointing to an OS on sda, and an OS on sda, with the bootloader pointing to it.

bootinfo is reporting a grub bootloader on sdb mbr but there is no way to discern what it points to from the script output. Another bug?

bootinfo is reporting an OS on sdc with no mbr bootloader pointing to it.

All of this is consistent with what I remember doing.

It is also consistent with a properly installed bootloader. Maybe I did it right after all?

Am I booting from sda or sdb? I am booting from drive on port 0 and that should be sda. If I were booting from sdb, I could understand this issue but it looks like no I did everything correctly.

I am going to try looking further into the script output. I guess I should have kept in mind that it is a script and it is using a utility it was not expecting to, since it could not find it in the livecd.

I will also try finding a copy of gawk or whatever it wanted, to see if anything changes. If it does I will post the results here.

Thanks again for the quick responses and helpful suggestions. You guys are the greatest.

Last edited by CherylJosie; 08-25-2014 at 11:23 PM. Reason: typo
 
Old 08-25-2014, 10:59 PM   #13
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
bootinfo w/gawk (instead of awk) output has an r instead of a d (or vice-versa) on line 551, otherwise the output is identical. Time to dig into it again.

Thinking about that video card...

Is there a simple place to go to find out about compatibility etc? I noticed that there are several gradations of support that get better over time in all the lines with the newer codecs.

I have too much information and too little background. I have been out of the loop on computer hardware since 2005. I have no idea what make or model to target. Ideally it is one I can get online dirt cheap (even used) that has the latest codecs. I am obviously not gaming on a core2 so who cares about interactive rocket fuel, if it plays all the media that is good enough for me.

My GEForce fan is a tiny dingbat that melted. I have a case fan zip-tied to the edge of the cards. It will be good to throw the thing out.
 
Old 08-26-2014, 02:06 AM   #14
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
Here is part of the output from bootinfo that confuses me. SDA11 is 12.04 and the kernel is 3.2 so why is grub2 looking at kernel 3.0? Is this a bootinfo scripting bug or did something really weird happen? I just checked the sda11 boot directory with Nautilus and the kernel is really 3.0! Wah....?

Then I checked the directory of sdc4 11.10 and that one has kernel 3.2 in it...

I cannot figure this out. What is it trying to tell me?

The only possibility is that I got confused moving partitions around. If that happened, could I have chrooted from a 12.04 livecd to my pre-upgrade 11.10 install, and then run grub-install with two different operating systems blended? I can see how that might not boot, if grub-install was running under the wrong kernel.

Checking again, I see that the fstab files seem to support the possibility that I actually got confused moving partitions. The fstab on sdc4 looks like the latest.

Maybe what I see in the home directory of each OS partition is misleading me somehow. Maybe I actually saved the old 11.10 installation, not the Ubuntu Studio installation. Maybe what I saw in the home directory was actually the original install from way back when before I upgraded and just assumed all those old files were from my latest OS.

Sheesh, I feel like such a dufus now.

If that is the case, maybe I should try chrooting into the sdc4 partition instead and see if I can run grub-install successfully from that one.

My last option is to dd the 12.04 OS from the original sda drive onto the new sda and see if that fixes anything.

Anyway, it looks like I might have the root cause. Later guys. Thanks again for the help. bootinfo seems to be pointing me in the right direction. I will check in when I have more info.
 
Old 08-26-2014, 01:40 PM   #15
CherylJosie
Member
 
Registered: Aug 2014
Posts: 44

Original Poster
Rep: Reputation: Disabled
Re-installing grub2 from within the 12.04 environment chroot...

still will not boot.

Grub reported a bunch of 'redundant raid members' that probably has to do with copying or moving partitions.

Would it barf on that error? It said

error...
error...
error...
no errors...

as it did it. Well, what was it, an error or not an error?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving from MBR to GPT on a 3 year old T4400, Intel ICH9 based laptop. edbarx Linux - General 3 09-16-2013 04:48 AM
GPT vs MBR asipper Linux - General 9 12-23-2011 08:29 PM
[SOLVED] Slackware 13.37 - gdisk choices, MBR, GPT or Blank GPT CFet Slackware - Installation 3 04-01-2011 04:46 PM
GPT to MBR mrwall-e Linux - Software 3 08-26-2010 09:00 PM
gpt and mbr out of sync after every ubuntu boot on my macbook cbiscuit Linux - General 1 11-02-2007 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 11:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration