LinuxQuestions.org
Help answer threads with 0 replies.
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 05-04-2010, 03:56 PM   #1
Kap1234
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Rep: Reputation: 0
Editing boot file


Hey all.
I have samsung laptop and there is a nasty program called samsung recovery solution that changes the active partition to Windows each time you enter it. The trouble is: I have 2 OSes, Opensuse and Windows 7, and Grub that is installed in my Extended partition, so each time I enter this recovery program active flag is changed and Windows is loaded instead of grub. I have noticed some boot files in that program's folder, so the question is how can I edit them in most convenient manner? I have kde 4.5.3 is there some sort of included program that would help?
 
Old 05-04-2010, 04:15 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Maybe you should tell Samsung...

 
Old 05-04-2010, 04:20 PM   #3
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Is there a reason you didn't install GRUB to the MBR? Can you remove the bootable flag from windows and still have it boot? I've also noticed that sometimes you need the bootable flag on the extended partition and the boot partition that is in the extended partition.

Regards,

Alunduil
 
Old 05-04-2010, 04:52 PM   #4
Kap1234
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alunduil View Post
Is there a reason you didn't install GRUB to the MBR? Can you remove the bootable flag from windows and still have it boot? I've also noticed that sometimes you need the bootable flag on the extended partition and the boot partition that is in the extended partition.
There were 2 reasons: It was auto defined when I had been installing linux, and the second reason is that I've heard Windows needs MBR for itself and I didn't want to encounter unnecessary errors, though I think windows 7 would do just fine with Grub in MBR. But now I'm quite sure that this samsung program will kill Grub if it's in MBR as it rewrites mbr each time you enter it. I think contacting samsung is useless for such things, my point is trying to edit those boot files, think they hold the answer but don't know for sure. So how to edit them? So i could read them just like i read grub config files?
 
Old 05-04-2010, 05:06 PM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Have you thought about editing the windows bootloader to load Linux? I've seen instructions elsewhere but don't have a link off-hand. If you need help finding it let me know.

Regards,

Alunduil

P.S. Would be pretty awesome if Windows defaulted to loading Linux.
 
Old 05-04-2010, 06:46 PM   #6
Kap1234
LQ Newbie
 
Registered: Jul 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alunduil View Post
Have you thought about editing the windows bootloader to load Linux? I've seen instructions elsewhere but don't have a link off-hand. If you need help finding it let me know.
Linux.
For that I would need to edit bootloader, thats what i ask of you, how can I do that? I think it's not possible to do this from Windows, because EasyBCD shows some sort of error, guess it's because this recovery program alters mbr so it's unreadable by most programs. SO is it possible to do it from linux?? with any program??

I have thought of another solution to my problem, much easier but i still can't make it work. What i actually need is to make active my extended partition when i select certain menu item in grub. Grub is installed on extended partition, but editing grub .lst and setting makeactive command for menu item bring black screen with Invalid device message. I guess grub doesn't like activating extended partition? ;( any ideas how to do this??

Last edited by Kap1234; 05-04-2010 at 06:47 PM. Reason: Update
 
Old 05-04-2010, 09:42 PM   #7
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 16
Posts: 5,298

Rep: Reputation: Disabled
hi

there are a number of solutions each has some merit

1) You can make windows boot linux using windows to "chainload" to the image of the linux bootloader.

http://www.geocities.com/epark/linux...w2k-HOWTO.html

YMMV as not sure if you need to tweak it as w7 uses a slightly diff bootloader I suspect.

2) Use a live cd to install boot loader into MBR....may cause your recovery partition to think you have installed malware....I AM NOT JOKING which then rewrites (recovers) your old mbr

which leads to a decision by you on whether you really need disk space used by hidden recovery partititon?

only you can decide.....lots use a live cd to wipe the partitions ....all of them....build a new partition table
install windows into its precious c partition
install linux into another primary partition
maybe have swap partition



3) makeactive.....is a windows "type" command used by grub legacy or grub2.....its to cause a bootable flag in msdos partitions so windows can boot...if you use grub* as a bootloader

I have not tested W7 so not sure this is still required.

good luck

Last edited by aus9; 05-04-2010 at 09:52 PM.
 
  


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
Setting numlock on at boot, editing the Init/Default file, don't want to mess it up sandaili Fedora 2 07-08-2008 05:35 PM
read-only file system error when editing a config file smallfrowne Linux - Newbie 5 02-19-2008 07:06 PM
editing a very large HTML file (or, extracting URLs from a file) Chriswaterguy Linux - Software 3 11-27-2007 07:07 PM
Editing boot file???? partyk1d24 Linux - General 2 09-08-2005 11:58 PM
Editing the boot file janjam_640 Linux - Newbie 1 01-24-2005 04:20 PM

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

All times are GMT -5. The time now is 06:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration