SliTaz SliTaz Forum

You are not logged in.

#1 2012-12-22 00:44:13

neru
Member
Registered: 2012-12-09
Posts: 8

Boot flag

Hello all

I've looked on a command to set the bootable flag on Linux. I've found out that fdisk would TOGGLE the boot flag only. What about if I liked to set a partition as bootable?? Specially that I've had some issues with G-parted not running so that I could make my partition bootable?

Thanks

Offline

#2 2012-12-22 02:05:02

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Boot flag

Hi neru,

What a problem? If it cleared - TOGGLE it, and it will set. If it is already set - just don't touch it. Really, I'm not in my Linux now, and have no any terminal in my smartphone, sorry if I can't understand your problem.

Hope, it helps you:

http://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-boot-flag-on-usb-through-the-terminal-717280/

They wrote that Linux bootloader not look at boot flag at all.

Offline

#3 2012-12-22 02:16:33

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Boot flag

Open terminal,su,password:root

Type in terminal:

[c]gparted[/c]

Hit enter key

Post the output/errors if gparted doesn't start.

Offline

#4 2012-12-22 09:55:49

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Boot flag

Probably the Language error again. Try running it as LANG=C gparted from the terminal as root and see if that helps.

Offline

#5 2012-12-22 12:55:25

domcox
Administrator
Registered: 2011-03-29
Posts: 104

Re: Boot flag

if gparted is broken, try parted:

[c]$ parted -l[/c]

lists partition layout on all devices

and to set the boot flag on:

[c]# parted /dev/sda1 set 1 boot on[/c]

for the first partition on /dev/sda1

[c]# parted /dev/hda1 set 2 boot on[/c]

for the second partition on /dev/hda1

Offline

#6 2012-12-22 16:40:50

neru
Member
Registered: 2012-12-09
Posts: 8

Re: Boot flag

Thanks for your help and advices.

In fact there might be some kind of hardware problems since I've encountered many errors messages like "no bootable partition" before that were resolved...even if it isn't obvious for you, I'm quite sure that it's specific to Slitaz 4 Core that I'm running and my hard disk.

Once I run G-Parted, it goes a little for a devices scan then shutdown.

Also run from terminal...

While I don't have any problems with Slitaz 3 (but I'm encountering Wifi problems smile )

Offline

#7 2012-12-23 23:49:58

neru
Member
Registered: 2012-12-09
Posts: 8

Re: Boot flag

um,

Did a format and reinstalled windows XP, then Slitaz 4. Guess what G-parted again functionnal.

Oh and happy holidays!

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]