LinuxQuestions.org
Visit Jeremy's Blog.
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 07-21-2008, 06:52 PM   #16
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled

Larry
I am already 50 but feel over 50 pls forgive me.
 
Old 07-21-2008, 07:00 PM   #17
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Patrick

This is the first I have heard that your grub is in the mbr of drive 2.

what is the bootloader in drive 1?

2) assuming you do not want grub in mbr of drive 1.....change the numbers as grub is now tricked by your f12 thingeee.

lets do it manually since you can still get into windows.

so bios jumps to bootloader (vista) and you press f12?
you select drive 2 as the drive to boot....so grub now thinks its on the first drive.

press c

(get into windows)
Code:
rootnoverify (hd1,1)
hide (hd1,0)
chainloader +1
boot
.....if that fails then vista is on sda1 so try
Code:
rootnoverify (hd1,0)
chainloader +1
boot
IMHO vista should act like w98 and not think anything of linux systems so we do not need to hide hd0 stuff

--------

to boot linux manually try
Code:
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro
initrd /boot/initrd.img-2.6.24-16-generic
boot
pls report and if successful we will amend the grub menu to reflect the change in boot order
 
Old 07-21-2008, 07:14 PM   #18
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Patrick

please explain what does F12 do?

I am now thinking.....we may need to change the kernel line from root=sdb1 to sda1.

I am thinking f12 is a bios boot order change?

please report when you get a chance.
 
Old 07-21-2008, 07:45 PM   #19
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
ok re-read your post 6.

I am fairly confident that we need to change the linux attempt
Code:
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.24-16-generic
boot
bear in mind that you can use the trouble shooter to see what kernel (vmlinuz) options you have and same for initrds.
 
Old 07-22-2008, 02:45 PM   #20
P@trick99
LQ Newbie
 
Registered: Jun 2008
Location: UK
Distribution: Linux Mint
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
ok re-read your post 6.

I am fairly confident that we need to change the linux attempt
Code:
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.24-16-generic
boot
bear in mind that you can use the trouble shooter to see what kernel (vmlinuz) options you have and same for initrds.
Thank you for your reply

I have tried what you told me to and here is the result;

Bios jumps to bootloader (vista) and I press F12
selected drive 2 as the drive to boot
Then at the boot menu (linux, Linux Safe mode, .......)

Press C

Code:
rootnoverify (hd1,1)
hide (hd1,0)
chainloader +1
boot
This worked, it boot Vista successfully (Only Kaspersky failed to start.)


Code:
rootnoverify (hd1,0)
chainloader +1
boot
This worked sa well, it boot Vista. I thing with no problems

I am not really bothered to boot Vista from second HD. If I don't press F12 Vista boot up anyway.
It's Linux I would like to have working from second HD.


Here is the linux part

Code:
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro
initrd /boot/initrd.img-2.6.24-16-generic
boot
This didn't work, after this line kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro I pressed enter and I've got ERROR 15

This one

Code:
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sda1 ro
initrd /boot/initrd.img-2.6.24-16-generic
boot
This didn't work, it start to boot then I got BusyBox v1.1.3 (Debian 1:1.1.3-5ubuntu12) See help............


Then I have tried this:
At the Linux boot up screen I hit E this came up
Code:
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet
I have change root (hd1,0) to root (hd0,0)
and it looks like this
Code:
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet 
Then I hit B (to boot) This is working

So what do I do now??? What would happened if I will make the last code which is working permanent? (I don't know how to do that)
Will linux still boot from second HD or I will get the Grub bootloader at the start of the PC? (Which I don't like)

Thank you, you are very good help.

Patrick
 
Old 07-22-2008, 04:03 PM   #21
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
aus9, I think we do not understand what he wants to accomplish. Patrick do you want windows to boot without grub appearing first and if you do not choose windows the grub screen to appear?


Quote:
Originally Posted by P@trick99 View Post
Thank you for your reply


So what do I do now??? What would happened if I will make the last code which is working permanent? (I don't know how to do that)
Will linux still boot from second HD or I will get the Grub bootloader at the start of the PC? (Which I don't like)

Thank you, you are very good help.

Patrick
 
Old 07-22-2008, 04:31 PM   #22
P@trick99
LQ Newbie
 
Registered: Jun 2008
Location: UK
Distribution: Linux Mint
Posts: 28

Original Poster
Rep: Reputation: 15
Hi there

It's simple, I want to turn my laptop on and boot vista, (normally)
Just turn it on and that is it, Vista is loaded.

If I want Linux Ubuntu to boot it up, at the beginning before Vista start booting, I will press F12 and I will get boot up menu (nothing to do with linux jet)
There are 4 options and lover bios setup
I will choose boot from second HD and then I will get the ubuntu booting menu, hit enter and Linux Ubuntu start to boot

Is that simple, I had this before with PClinuxOS exactly as I described
PClinuxOS had an option where to install grub loader and I selected sdb and delete Vista from the boot menu list before I install PClinuxOS. Wireless internet didn't work in PClinuxOS, that is why I want to try Ubuntu.

Patrick
 
Old 07-22-2008, 06:47 PM   #23
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Larry and interested readers

I am still not sure why F12 does not change bios boot order...must be a Vista bootloader function and I have yet to test that so will be happy to accept Patrick's explanation. I was pretty confident the boot order changed for grub hence changing to hd0 instead of hd1...but as its NOT a true bios function maybe thats why you still needed sdb instead of sda?

Patrick

Use your green text commands and boot into linux.

use root powers to edit your menu for grub...hopefully /boot/menu.lst so it looks like this (without the dashes)
----------------------------------------------------------------------------------------------
default 0
timeout 3

title Linux
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title recovery mode
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=/dev/sdb1 ro single
initrd /boot/initrd.img-2.6.24-16-generic
----------------------------------------------------------------------------
reboot to test.

Of course since you must press F12 to select a linux drive....you could set timer to 0?

I have left out color command so you will get black and white and not splash or gfxmenu either you can add that when you know the basics works.

see my signature if you want to add your own image etc

2) I am not sure why you have another quiet in there but it works so lets try it.
 
Old 07-23-2008, 12:25 AM   #24
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
syg00

Patrick can get in.....so issue is kinda resolved so forgive me for now attempting to email you but your settings forbid it apparently.

I have some comments on the code for your perusal if interested.

I am happy you pm or email me or if you do not think I can cause any michief I will post here...or if not interested post a reply please when you get a chance. ( I have pm and email turned on)
 
Old 07-23-2008, 11:46 AM   #25
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,431

Rep: Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471Reputation: 2471
If you want to boot from vista, you can download EasyBCD and modify your vista boot files to boot your Linux install with it.
http://neosmart.net/dl.php?id=1
 
Old 07-23-2008, 06:49 PM   #26
P@trick99
LQ Newbie
 
Registered: Jun 2008
Location: UK
Distribution: Linux Mint
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
syg00

Patrick can get in.....so issue is kinda resolved so forgive me for now attempting to email you but your settings forbid it apparently.

I have some comments on the code for your perusal if interested.

I am happy you pm or email me or if you do not think I can cause any michief I will post here...or if not interested post a reply please when you get a chance. ( I have pm and email turned on)
Hi Aus9

Thank you very much for your time and for your help, Thanks to all.

I had to reinstall Linux Ubuntu, I have done something wrong in Menu.lst
Then I change the menu.lst as you suggested, but I have change only the root

This is the original

Code:
## ## End Default Options ##

title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=c7ee2157-02f4-44e8-9e5f-433ab1ff2223 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=c7ee2157-02f4-44e8-9e5f-433ab1ff2223 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
chainloader +1


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista/Longhorn (loader)
root (hd0,1)
savedefault
chainloader +1
This is what I have changed
(In blue)
Code:
## ## End Default Options ##

title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=c7ee2157-02f4-44e8-9e5f-433ab1ff2223 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=c7ee2157-02f4-44e8-9e5f-433ab1ff2223 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04, memtest86+
root (hd1,0)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
root (hd0,0)
savedefault
chainloader +1
This time IT'S WORKING


Turn my laptop on and boot vista, (normally)
Just turn it on and that is it, Vista is loaded.

If I want Linux Ubuntu to boot it up, I will press F12 and I will get boot up menu, will choose boot from second HD and then I will get the ubuntu booting menu, hit enter and Linux Ubuntu start to boot

It is all working the way I wanted

Now I need a good book about Linux, so I can learn Linux. One day I will be Linux user.

Thank you again

Patrick

Last edited by P@trick99; 07-24-2008 at 12:55 AM.
 
Old 07-23-2008, 07:23 PM   #27
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
good oh...just remember that your new menu would be wrong if you change your mind and want to use grub to get back into vista.

well done....but the smarter way would be to use a linux live cd to edit the menu saving you some steps.

Since you have got used to the command line bit of grub...by watching the responses or error messages you may have got it.

grub can use cat...to read text files once root is defined.

anyhow signing off for you Patrick

good hunting....no need to reply
 
Old 07-23-2008, 08:09 PM   #28
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Patick

just seen your email.

as a general rule I prefer not to do private help via email as others do not gain from hidden info...I am not suggesting I am the holder of good knowledge.

My question to syg00 is more off topic but he can choose to ignore me and I still respect him for that as I have attempted a private conversation....not against the rules....but not normally done.

Do you have a live cd or not?

Do you have a problem with download limits or not?

cheerio
 
Old 07-24-2008, 05:48 PM   #29
P@trick99
LQ Newbie
 
Registered: Jun 2008
Location: UK
Distribution: Linux Mint
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by aus9 View Post
Patick

just seen your email.

as a general rule I prefer not to do private help via email as others do not gain from hidden info...I am not suggesting I am the holder of good knowledge.

My question to syg00 is more off topic but he can choose to ignore me and I still respect him for that as I have attempted a private conversation....not against the rules....but not normally done.

Do you have a live cd or not?

Do you have a problem with download limits or not?

cheerio
aus9

Yes I do have live CD.
Does live CD help to fix some problems which you can't normally fix it?

No I don't have problem with download limits, why are you asking?

I was playing with Linux Ubuntu and with compiz fusion, why is different than compiz fusion in PCLinuxOS? Some plug ins are missing (snow is not there and others)

Can you recommend a good theme manager or something similar to make ubuntu looks cool. I know first I should learn some useful staff and then play with the cool staff. ( I am going to)

Thanks
Patrick
 
Old 07-25-2008, 05:13 AM   #30
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
no I do not use ubuntu.

leaping ahead you boot the live cd next time...mount the naughty partition with rw powers then edit it to fix whatever....including a naughty grub file.....saving you from a fresh install.

2) If you have the bandwith can I suggest you install a good emulator...www.virtualbox.org is avail for ms or linux....then you can download and test the iso without having to burn it.

we um are smart cookies here...and it saves the planet from you burning a cdr.

2) another good use is to run partimage on a live cd to take and restore images....its a bit like norton ghost or acronis only it can only do a partition not the entire drive.....saving you from a fresh install and lots of updates

good hunting
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Software 11 02-25-2007 07:42 AM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Newbie 2 11-07-2006 11:58 AM
grub read error hermouche Linux - Software 1 09-02-2006 06:19 PM
GRUB Read Error GoBoy Linux - Software 4 04-10-2005 03:31 AM

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

All times are GMT -5. The time now is 12:14 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