LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2011, 01:13 AM   #61
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled

Quote:
Originally Posted by Erik_FL View Post
I can't speak for anyone else, but I don't mind helping with this later.
I agree

Markus
 
Old 04-30-2011, 03:01 AM   #62
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 61
I like this site for one reason people in community and community itself is really like to help. (well nobody still helped to solve my arm kernel problem but this needed people with knowledge in this area).

2Erik_FL yep missed this. Disassembly of MBR w2k-XP code here (ENG).

But there is disadvantage of using standard windows MBR. You must change active partition before reboot(and stage2 must be at one same location).What if main OS FAILED? Yep, Live(CD|USB)(if you have one at hand)! Too long and sometimes impossible. On other hand in grub you have bootmenu and commandline with tools to make changes to disks,bootoptions etc.. couple of times this was lifesaver.

Last edited by sunnydrake; 04-30-2011 at 03:02 AM.
 
1 members found this post helpful.
Old 04-30-2011, 03:40 AM   #63
spankbot
Member
 
Registered: Aug 2007
Posts: 133

Rep: Reputation: 16
Quote:
Originally Posted by Engineeringtech View Post
Wow! and thanks to all. Lot of stuff here to digest. Good ideas.

Sorry I haven't been responsive about trying this stuff. But I've been dealing with a bunch of difficulties. Health problems the past two weeks. Car's been on the fritz, and the mechanics can't diagnose it. Meanwhile, my boss is throwing a lot of overtime at me. When I get home I've been dealing with a flooded basement, and electrical storms. So I really haven't had much sit down time at the target machine. There is no hardwired internet access to it, and it's out of the range of my wireless router. I'm communicating on a very old laptop that overheats quickly, and has no printer port. So you see what I'm up against.

I realize you've spent a lot of time analyzing my machine, and want to see some fruits for your effort. Would you mind if we shelved this for about a week and a half while I get my life back in order?

JC
Friend, it's time to bite the bullet and do this the right way - with emulation!!! At the very least, emulate the DOS system, there is absolutely no reason not to. DOSbox might not be the best solution, but VMWare, VirtualBox or Xen are a perfect fit.

A good engineer will tell you that the best solution is almost always the simplest one!
 
Old 04-30-2011, 05:40 AM   #64
sunnydrake
Member
 
Registered: Jul 2009
Location: Kiev,Ukraine
Distribution: Ubuntu,Slax,RedHat
Posts: 289
Blog Entries: 1

Rep: Reputation: 61
Emulation can emulate hardware features but it's very complex to emulate hardware timings and sometimes low-level features(limited by host OS).
 
Old 04-30-2011, 05:47 AM   #65
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
mh, I think you're both right, in my opinion a virtual machine would be the solution in most cases. But referring to sunnydrake I would suggest to buy an old computer (an old 386 with 1MB of Ram would be sufficient) and install Dos there. For Win98 I would suggest a virtual machine.

Markus
 
Old 04-30-2011, 02:40 PM   #66
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 821

Rep: Reputation: 258Reputation: 258Reputation: 258
That's a great site, sunnydrake. I've gone there many times to get detailed information for solving problems. Virtual machines work pretty well except for high-performance 3D graphics or specific hardware requirements.

The bare-bones Intel Atom motherboards with an included 1.6 Ghz. CPU are good for development work. You can get those for around $160 depending on the features. Add another $40 for RAM and a power supply and you can have something for experimenting. That does not include a computer case though. I just keep one computer case for rigging up hardware that I need.

I do software development for embedded applications. The hardware never looks exactly like what is in a virtual machine or PC. The operating systems are embedded, so they don't look like DOS, Linux or Windows. I do use GRUB to boot software. Just tack a multi-boot header in front of some assembly language code and load it in. Linux is a much larger and more complicated OS than what I work with, and I've only studied a small part of Linux source.
 
Old 04-30-2011, 04:24 PM   #67
rmknox
Member
 
Registered: May 2010
Posts: 354

Rep: Reputation: 34
Please excuse - dont have time to read all of the above.

Disks are cheap ( I get 2 40 gig ata drives for $20 delivered on ebay) and all the motherboards I've used recenty allow you to pick the boot drive

Im currently using an MSI board. F11 gets a menu of which disk to boot - on prior board it was F8

I merely install an opsys on a drive, insatll as many drives as i want in the box, and boot the one i want

Multiple boots from the same disk made sense when disks were expensive, but you add a lot of complication and the risk that you will damage the system that really matters by messing up the boot sector. Make life easy - install multiple drives. My opinion.

Dick
 
Old 05-07-2011, 09:09 PM   #68
Engineeringtech
Member
 
Registered: Apr 2011
Posts: 32

Original Poster
Rep: Reputation: 0
Hello everyone. I got brief respite from the personal difficulties I was facing, and hope I can still get some help. I performed a test last night, which I hope might tell someone what is going wrong with my Ubuntu installations.

Erik FL and others suggested the reason the GRUB bootloader repeatedly failed to install, was because I was trying to install to a logical partition. I was reluctant to believe that for a couple reasons:

#1 - I had no luck whatsoever installing GRUB to the MBR either.

#2 - I HAD a working triple boot (DOS, XP, and Ubuntu 9.04) two years ago, on the SCSI RAID array. Ubuntu 9.04 installed just fine to an XT3 logical partition. Too bad my SCSI hardware failed a week later, and I couldn't afford replacements.

Still, I wanted to see if Erik was right. He suggested I re-partition the drive to give Linux a primary partition. However, I'm totally discouraged after 27 months of working on this system. I don't want to risk my working DOS / XP dual boot by starting from scratch, unless I've exhausted all other ideas. So I cooked up another idea. I booted the Ubuntu 10.10 live disk, inserted a 256MB USB thumb drive, and installed GRUB to the thumb drive, using Method #3 at:

https://help.ubuntu.com/community/Grub2.

For the first time ever a boot sector was actually installed! I used the "DD" command to create a bootsector.lnx file that I could chainload from NTLoader. And the file is no longer empty.

On reboot I actually got something other than a "-" cursor. I got the follwing response from the GRUB bootloader:

error: no such device: 2ab378ca-ec5b-491c-a1e2-29114fd43579
GrubRescue>



I don't understand the error message. Does this mean lead to a possible solution that won't require that I re-partition my disk and start from scratch?

JC

Last edited by Engineeringtech; 05-07-2011 at 09:16 PM.
 
Old 05-07-2011, 09:21 PM   #69
Engineeringtech
Member
 
Registered: Apr 2011
Posts: 32

Original Poster
Rep: Reputation: 0
There are some other things I forgot to ask. Since I believe I've got a full Linux installation (Ubuntu 10.10) on SDA7, (XT4 logical partition), is there any way to MANUALLY create a bootsector that will load and run the Linux installation? I.E. with a hex editor? Is there any reason I couldn't have the bootsector on a floppy (or the USB drive?

Last edited by Engineeringtech; 05-07-2011 at 09:24 PM.
 
Old 05-07-2011, 11:30 PM   #70
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Just to clarify, there are no XT3 or XT4 partitions. There are however, ext3 and ext4 filesystems.

Quote:
the GRUB bootloader repeatedly failed to install, was because I was trying to install to a logical partition
No, that is not the problem. Linux can be booted from a logical partition with either Grub or a windows bootloader in the mbr.
Windows needs its boot files on a primary partition, no Linux system I am aware of does, certainly not Ubuntu.

Do you get the error you reported after selecting Ubuntu from your windows menu?
The error you are getting is that Grub is looking for a partition by UUID number. That's what the long number is. You would have to run the blkid command from a terminal to find out if you actually have a partition with that number. Since you believe you have an Ubuntu installation on sda7, the first thing you should do is compare the output of blkid for sda7 with the UUID you got in the error message.

Quote:
is there any way to MANUALLY create a bootsector that will load and run the Linux installation? I.E. with a hex editor?
I imagine there is but I don't know how.

Quote:
Is there any reason I couldn't have the bootsector on a floppy (or the USB drive?
No. It would be basically a boot partition and you would just need the Grub boot files there. You could set your usb to first boot priority, run update-grub on the usb and it should detect the windows install. Then when you boot from the usb, you would have all options. When you removed the usb, you would have your xp/dos options only.
You didn't indicate whether you got this error when you tried to boot from the usb directly or when you booted from your xp boot menu to the Grub on the usb. That is necessary information if you want help.

Here's a link to the Official Gnu Grub2 manual on how to make a Grub bootable CD. There is no reason you could not do this on a USB and 256MB should be more than enough.

Last edited by yancek; 05-07-2011 at 11:36 PM.
 
Old 05-07-2011, 11:36 PM   #71
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Just to clarify, there are no XT3 or XT4 partitions. There are however, ext3 and ext4 filesystems.

Quote:
the GRUB bootloader repeatedly failed to install, was because I was trying to install to a logical partition
No, that is not the problem. Linux can be booted from a logical partition with either Grub or a windows bootloader in the mbr.
Windows needs its boot files on a primary partition, no Linux system I am aware of does, certainly not Ubuntu.

Do you get the error you reported after selecting Ubuntu from your windows menu?
The error you are getting is that Grub is looking for a partition by UUID number. That's what the long number is. You would have to run the blkid command from a terminal to find out if you actually have a partition with that number. Since you believe you have an Ubuntu installation on sda7, the first thing you should do is compare the output of blkid for sda7 with the UUID you got in the error message.

Quote:
is there any way to MANUALLY create a bootsector that will load and run the Linux installation? I.E. with a hex editor?
I imagine there is but I don't know how.

Quote:
Is there any reason I couldn't have the bootsector on a floppy (or the USB drive?
No. You would just need the Grub boot files there. You could set your usb to first boot priority, run update-grub on the usb and it should detect the windows install. Then when you boot from the usb, you would have all options. When you removed the usb, you would have your xp/dos options only.
You didn't indicate whether you got this error when you tried to boot from the usb directly or when you booted from your xp boot menu to the Grub on the usb. That is necessary information if you want help.
 
Old 05-08-2011, 06:20 AM   #72
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Quote:
Originally Posted by Engineeringtech View Post
On reboot I actually got something other than a "-" cursor. I got the follwing response from the GRUB bootloader:

error: no such device: 2ab378ca-ec5b-491c-a1e2-29114fd43579
GrubRescue>
Looks like grub is looking for a bootable entity (a partition on your HDD or possibly even on your USB thumb drive) with the above UUID. To find out which device has that UUID, boot from your bootable Ubuntu, plug in the 256MB thumb drive, open a terminal window, and enter the following:
Code:
sudo blkid -c /dev/null
 
Old 05-08-2011, 04:27 PM   #73
Engineeringtech
Member
 
Registered: Apr 2011
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
Just to clarify, there are no XT3 or XT4 partitions.
Typo on my part...

Quote:
Originally Posted by yancek View Post
Do you get the error you reported after selecting Ubuntu from your windows menu?
Yes, that is how I'm attempting to start Ubuntu. I used the DD command to create a file called bootsect.lnx from the first 512 bytes of the USB drive where I installed the GRUB bootloader. I reference "bootsect.lnx" in Windows "boot.ini"

Quote:
Originally Posted by yancek View Post
Windows needs its boot files on a primary partition, no Linux system I am aware of does...
That's what I believed, but others here said otherwise. And I have tried repeatedly to install the GRUB bootloader to my ext4 formatted logical partition. However, when I use the DD command to copy the first 512 bytes of that partition to "bootsect.lnx" the result is always an empty file.

Quote:
Originally Posted by yancek View Post
The error you are getting is that Grub is looking for a partition by UUID number. That's what the long number is. You would have to run the blkid command from a terminal to find out if you actually have a partition with that number. Since you believe you have an Ubuntu installation on sda7, the first thing you should do is compare the output of blkid for sda7 with the UUID you got in the error message.
I believe the next response shows me how to do that. I will get that for you.

Quote:
Originally Posted by yancek View Post
You didn't indicate whether you got this error when you tried to boot from the usb directly or when you booted from your xp boot menu to the Grub on the usb..

The FIRST thing I did after installing the GRUB bootloader to the USB drive (sdb1) see if I could boot directly from the USB drive. I made the USB drive the highest boot priority in the BIOS. On restart, the NTLOADER boot screen (boot.ini) presented.

So I booted the Ubuntu LiveCD, DD'd the first 512 bytes of sdb1 to "bootsect.lnx" on sda1, and tried to boot from that. Resulting in the error message I posted above. Would it be necessary that I also have all the GRUB FILES on the USB drive, if I wished to boot from it?

Last edited by Engineeringtech; 05-08-2011 at 04:48 PM.
 
Old 05-08-2011, 04:50 PM   #74
Engineeringtech
Member
 
Registered: Apr 2011
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by RockDoctor View Post
Looks like grub is looking for a bootable entity (a partition on your HDD or possibly even on your USB thumb drive) with the above UUID. To find out which device has that UUID, boot from your bootable Ubuntu, plug in the 256MB thumb drive, open a terminal window, and enter the following:
Code:
sudo blkid -c /dev/null
Thank you. I will get that for you as soon as possible. The target machine is at a different location. Please bear with me.
 
Old 05-08-2011, 05:32 PM   #75
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,547

Rep: Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498Reputation: 2498
Anyone who tells you Linux has to be on a primary or have its boot files on a primary partition is wrong. End of story.

Quote:
The FIRST thing I did after installing the GRUB bootloader to the USB drive (sdb1) see if I could boot directly from the USB drive. I made the USB drive the highest boot priority in the BIOS. On restart, the NTLOADER boot screen (boot.ini) presented.
You need to install Grub to sdb not to the partition (sdb1). You can see that didn't work if you get the ntldr boot screen. That is because it found nothing on the usb and went to the hard drive with xp to boot.

Use your Ubuntu CD, go to a terminal and enter: sudo mkdir /mnt/sdb1 (hit the enter key)
then type: sudo mount -t ext4 /dev/sdb1 /mnt/sdb1 ( hit the enter key)
then type: sudo grub-install --root-directory=/mnt/sdb1 /dev/sdb

That should install Grub on the usb and you should be able to boot it. The reason you couldn't boot is that you just installed Grub on the partition of the usb and it was never accessed. You need it on the mbr on sdb.
 
  


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
LXer: How to Triple-Boot Your Mac with Windows and Linux, No Boot Camp Required LXer Syndicated Linux News 0 05-05-2010 09:30 AM
Installing goblinX in triple boot laptop... no boot in the other linux OS amalgam Linux - Newbie 2 02-14-2008 01:08 PM
Trying to triple boot 3 Linux OSes gnumantsc Linux - Newbie 2 09-27-2004 06:22 PM
Linux with triple boot hsani Linux - General 4 04-15-2004 08:34 AM
How to triple-boot...two linux and one XP cbjhawks Linux - General 4 01-20-2004 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:01 AM.

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