LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-28-2011, 03:20 PM   #1
Fcukinyahoo
Member
 
Registered: Sep 2011
Posts: 44

Rep: Reputation: Disabled
Change boot flag in TERMINAL


Good Day:

What is the code to change the boot flag from sdb1 to sdb2 in Terminal (not using gparted)? Thank you for your help in advance.
 
Old 09-28-2011, 03:42 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,281

Rep: Reputation: 320Reputation: 320Reputation: 320Reputation: 320
You can use "parted":
Code:
parted /dev/sdb set 2 boot on
 
Old 09-28-2011, 04:19 PM   #3
Fcukinyahoo
Member
 
Registered: Sep 2011
Posts: 44

Original Poster
Rep: Reputation: Disabled
Solved. Thank you.
 
Old 09-28-2011, 05:33 PM   #4
Fcukinyahoo
Member
 
Registered: Sep 2011
Posts: 44

Original Poster
Rep: Reputation: Disabled
The following text was an answer to a question in another forum. I wanted to share the experience here so maybe i could be helpful to others too. I got the answer to my original question here so thank you.

I found the answer in a different forum. What i was looking for was "parted /dev/sdb set 2 boot on"

What i m trying to do is actually is very interesting and can help others if they r interested. I want to have Ubuntu Prsistent Live and Backtract Live(not Persistent) on the same usb drive.

I have tried so many ways but it wouldnt work. But today here is the solution that i came up with and it seems like it is working. What i did was i format the usb drive into two partitions fat32. By using UNetBootin i installed ubuntu in one partition and backtrack in the other one. But i couldnt choose which os to start at unetbootin start up. Since i installed backtrack after ubuntu, unetbootin would start backtrack at start up. In the usb there is ununtu and backtrack but i had to change the boot flag in order to change unetbootin's start up os. Backtrack doesnt have gparted. Thats why i needed to figure out how to change the boot flag throught the terminal. Now what i do is i log into lets say ubuntu lets say in sdb1 through unetbootin on the usb then if i want to change the os to backtrack i change the boot flag to sdb2 in ubuntu before restart then when i restart and i chose to boot from usb, unetbootin logs in and opens the backtrack options. Then i login to backtrack. If i wantt o change to ubuntu then in backtrack i change the boot flag in terminal again to ubuntu then reboot start from usb unetbootin loads ubuntu ))

I had written here before thats what i wanted to do so it seems like i found the solution. It would be much better if i could work in grub meaning that i start the computer from the usb and at grub choose either ubuntu persistent or backtrack live. That would be the best but i couldnt do it that way. If you have a better way of doing it let me know. But for now thats what i ll be suggesting people.

The main reason why i wanted to have the ubuntu persistent is because i dont want to change the settings everytime and install necessary packages everytime. But in Bactrack i dont want to mess up the settings so i want a clean default backtrack everytime i log in. Thats why. Makes sense?

Last edited by Fcukinyahoo; 09-28-2011 at 05:36 PM.
 
  


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
Necessary to set a boot flag? alfredo10 Linux - General 2 01-24-2011 11:11 AM
How to set boot flag on USB through the terminal? linus72 Linux - Newbie 10 08-10-2010 12:18 PM
How can I change the Debian boot sequence from the Root Terminal? habreu Linux - Newbie 1 01-26-2009 12:09 PM
Does /boot need boot flag when dual booting? dr_zayus69 Linux - Software 4 09-15-2007 08:55 PM
windows keeps erasing boot flag zowey Linux - General 13 03-17-2007 09:21 AM

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

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