Bug 506886 - gparted creates an unbootable usb stick.
gparted creates an unbootable usb stick.
Product: Fedora
Classification: Fedora
Component: livecd-tools (Show other bugs)
All Linux
low Severity urgent
: ---
: ---
Assigned To: Jeremy Katz
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-06-19 02:35 EDT by Luke Macken
Modified: 2016-09-19 22:39 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-06-19 13:19:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Luke Macken 2009-06-19 02:35:09 EDT
Description of problem:

After doing a complete wipe of a USB stick, using Gparted to lay down a new partition table and a FAT32 partition yields an unbootable Master Boot Record..

I hit this problem while testing the liveusb-creator, and it causes your stick to boot up to a black screen with a blinking cursor.  A workaround could be to ensure that the system-wide mbr.bin matches what is on the drive?

[root@x300 ~]# dd if=/usr/share/syslinux/mbr.bin bs=512 count=1 2>/dev/null | hexdump -n 2 | head -n 1 | awk {'print $2;'} 

After zeroing out drive, and doing a fresh msdos partition table in Gparted

[root@x300 ~]# dd if=/dev/sdb bs=512 count=1 2>/dev/null | hexdump -n 2 | head -n 1 | awk {'print $2;'}

Using `livecd-iso-to-disk --reset-mbr` fixes this issue, but I have seen many people hit this problem and it is not obvious what causes it.

Version-Release number of selected component (if applicable):
git HEAD of livecd-tools

How reproducible:

Steps to Reproduce:
0. dd if=/dev/zero of=/dev/sdb1 bs=1024 count=1
1. Open up gparted, lay down a new msdos partition table
2. Create a new FAT32 bootable partition
3. Run the livecd-iso-to-disk (without --format or --reset-mbr)
Actual results:
Machine boots to a blank screen with a blinking cursor

Expected results:
USB Stick should boot into Fedora
Comment 1 Jeremy Katz 2009-06-19 13:19:33 EDT
livecd-iso-to-disk checks for a blank MBR already (see checkMBR() ), but we can't really do much more that checking for blank -- the syslinux mbr is just one implementation; a stock out of the factory bootable USB stick is almost certain to have a different one (as it will have been an image of something done with dos/windows formatting tools)

Note You need to log in before you can comment on or make changes to this bug.