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 09-28-2011, 04: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, 04:42 PM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

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

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


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