USB stick won't boot

Post in this forum for problems at boot time, if there was no problem for burning the disc. For example can't find the CD, or strange errors when you press enter at the very first prompt.
jib
Posts: 2
Joined: 09 Oct 2010, 08:07
Location: Paris, France

USB stick won't boot

Postby jib » 09 Oct 2010, 08:14

I tried installing Rescuecd on 2 different usb sticks and could never get any of them to boot.
I tried both automated and manuel installation, following how-to step-to-step instructions.
I always end up with a message on boot:

Code: Select all

boot : no DEFAULT or UI configuration...


Googling around gave no indication on what I did wrong.
Thanks for your help.

SystemRescueCd-x86-1.6.1
USB stick Cruzer Micro 512 MB
SD card in a USB adapter 2GB

gernot
Posts: 1127
Joined: 07 Apr 2010, 16:19

Re: USB stick won't boot

Postby gernot » 09 Oct 2010, 11:23

jib wrote:I tried installing Rescuecd on 2 different usb sticks and could never get any of them to boot.

Tried you installing from a running sysrcd or used you a other system?

Running from CD is the safest way else make sure your USB-stick is FAT better FAT32 formated before running the syslinux part.

Maybe your Bios and syslinux dont have the same view of the stick. You can this recheck with the plop-bootloader.

Gernot

jib
Posts: 2
Joined: 09 Oct 2010, 08:07
Location: Paris, France

Re: USB stick won't boot

Postby jib » 09 Oct 2010, 13:21

You're right, it must be the BIOS, because I tried on another computer and it worked.

NickRivers
Posts: 1
Joined: 10 Oct 2010, 11:21

Re: USB stick won't boot

Postby NickRivers » 10 Oct 2010, 11:46

Yesterday I had the same problems with the same error message at the start when I tried to boot from a USB-Stick. It worked for me with former versions of System Rescue CD.

In the meantime between my last use of System Rescue CD form the USB stick and yesterday I've made a bios-update. I use the Gigabyte Motherboard GA-P35-DS3 - Bios Version F14.

Booting from the CD worked well.

linux
Posts: 3
Joined: 01 Nov 2015, 12:10

Re: USB stick won't boot

Postby linux » 15 Dec 2017, 01:59

I had the same problem with a Gigabyte GA-P35C-DS3R with BIOS F12 (2009/06/19).

As an experiment I hacked the usb_inst.sh script to create a FAT16 file system instead of a FAT32 file system:

Code: Select all

--- a/usb_inst.sh   2017-03-19 19:06:36.000000000 +0000
+++ b/usb_inst.sh   2017-12-15 01:14:33.822959273 +0000
@@ -287,7 +287,7 @@
       die "mkfs.vfat not found on your system, please install dosfstools first."
    fi
    
-   if ${PROG_MKVFATFS} -F 32 -n SYSRESC ${partname}
+   if ${PROG_MKVFATFS} -F 16 -n SYSRESC ${partname}
    then
       echo "Partition ${partname} has been successfully formatted"
       return 0

That fixed it.

linux
Posts: 3
Joined: 01 Nov 2015, 12:10

Re: USB stick won't boot

Postby linux » 15 Dec 2017, 15:24

The above patch worked for me because my 2GB USB drive is within the 4GB limit of FAT16. It may not work for larger USB drives.

So by changing another line in the usb_inst.sh script I limit the FAT16 partition to MINSIZEMB (512):

Code: Select all

--- a/usb_inst.sh   2017-03-19 19:06:36.000000000 +0000
+++ b/usb_inst.sh   2017-12-15 14:29:06.682576653 +0000
@@ -260,7 +260,7 @@
       die "${cmd} --> failed"
    fi
    
-   cmd="${PROG_PARTED} -s ${devname} mkpart primary fat32 0 100%"
+   cmd="${PROG_PARTED} -s ${devname} mkpart primary fat16 8s $((8+MINSIZEMB*2048-1))s"
    echo "--> ${cmd}"
    if ! ${cmd} 2>/dev/null
    then
@@ -287,7 +287,7 @@
       die "mkfs.vfat not found on your system, please install dosfstools first."
    fi
    
-   if ${PROG_MKVFATFS} -F 32 -n SYSRESC ${partname}
+   if ${PROG_MKVFATFS} -F 16 -n SYSRESC ${partname}
    then
       echo "Partition ${partname} has been successfully formatted"
       return 0

That creates a FAT16 partition of exactly 512MB:

Code: Select all

# parted --script --align=none /dev/sdb unit s print
Model: USB DISK (scsi)
Disk /dev/sdb: 3913344s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number  Start     End       Size      Type     File system  Flags
 1      8s        1048583s  1048576s  primary  fat16        boot, lba

I have tested this USB drive in the following cases:

  1. MBR boot of old Gigabyte GA-P35C-DS3R with BIOS F12 (2009/06/19).
  2. MBR boot of old Gigabyte GA-Q35M-S2 with BIOS F7 (2009/04/20).
  3. MBR boot of new Gigabyte GA-Z270-Gaming K3 with BIOS F8 (2017/08/02).
  4. EFI boot of new Gigabyte GA-Z270-Gaming K3 with BIOS F8 (2017/08/02).


Return to “Boot problems”

Who is online

Users browsing this forum: No registered users and 3 guests