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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-13-2016, 06:02 PM
|
#1
|
LQ Newbie
Registered: Oct 2016
Posts: 4
Rep: 
|
How can I change the boot flag from one device to another device? SUSE
How do you change the boot flag on one device to another device?
Here is my fdisk -l output:
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 4192255 4190208 2G 82 Linux swap / Solaris
/dev/sda2 * 4192256 976773119 972580864 463.8G 83 Linux
/dev/sda3 1044480 8388604 367252212 4.6G 83 Linux
I want to change the boot flag from /dev/sda2 to /dev/sda3. I am running SLES11 SP3.
|
|
|
10-13-2016, 06:05 PM
|
#2
|
LQ Newbie
Registered: Oct 2016
Posts: 4
Original Poster
Rep: 
|
Change boot flag from one device to another device on SUSE
This would be one way to do it:
parted /dev/sda -s toggle *device number* boot
In your case you would execute:
parted /dev/sda -s toggle 3 boot
Last edited by sudotanner; 10-13-2016 at 06:11 PM.
Reason: Redundant info
|
|
|
10-13-2016, 06:56 PM
|
#3
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,340
|
Any of the disk tools (fdisk as well) can change the flag. Note that Linux bootloaders generally ignore that flag.
|
|
|
10-13-2016, 07:01 PM
|
#4
|
LQ Newbie
Registered: Oct 2016
Posts: 4
Original Poster
Rep: 
|
Thank you for the information syg00. Since you mentioned it, how would you change the boot flag with fdisk to achieve the same outcome?
|
|
|
10-13-2016, 07:08 PM
|
#5
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,340
|
Can't be scripted, but from within fdisk /dev/sda, enter the command "m" as it says. Should be obvious from there.
|
|
|
10-13-2016, 08:09 PM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,551
|
The linux bootloader does not use the boot flag so changing it will not do anything. What are you trying to accomplish?
|
|
|
10-14-2016, 10:23 AM
|
#7
|
LQ Newbie
Registered: Oct 2016
Posts: 4
Original Poster
Rep: 
|
A server I was working on somehow had the boot flag set on the root filesystem partition instead of the boot partition. As a result I was getting errors that read:
"Error No Active Partition
Operating system not found"
I couldn't find any information online how to simply change the boot flag after booting into the installed system via CD/DVD. I figured someone, somewhere would eventually have the same issue and find this thread helpful.
|
|
|
10-14-2016, 10:29 AM
|
#8
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
gparted handles flags on hdd's
|
|
|
10-15-2016, 12:34 AM
|
#9
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,676
|
should not be needed for any newish hardware
a 10 year old server well.....
i use Gparted live cd and set it from that
|
|
|
All times are GMT -5. The time now is 03:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|