Can't boot from usb-stick

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.
Tuipveus
Posts: 101
Joined: 18 Nov 2006, 13:09
Contact:

Can't boot from usb-stick

Postby Tuipveus » 04 Jan 2008, 05:49

I have pc which doesn't start from usb-stick. Normally when I boot that pc and press F11 to get bios-menu of bootable drives I will see:

+Harddrive
CD-ROM
DISKDRIVE
LAN

If I connect USB-cdrom I will see

+Harddrive
+CD-ROM
DISKDRIVE
LAN

and sysresccd starts correctly from CD-ROM. But If I unplug CD-ROM and plug USB stick (which works in another computers) I will see

+Harddrive
CD-ROM
+DISKDRIVE
LAN

Bios detects the usb-stick really slowly. Bios seems to think that my usb-stick is floppydrive. I have tried "syslinux e:", "syslinux -ma e:" and "syslinux -sma e:" but nothing seems to work. I also tried to disable floppydisk controller, but it didn't help too. When I try to start from DISKDRIVE, I will get blank black screen and cursor blinking in top left corner. If I choose any other selection, computer will start from harddrive. I do not want to install any bootloader to harddisk.

I can use external usb-cdrom to boot, but it is quite heavy to carry with me all the time. :?

Any ideas how to get usb-boot working?

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 04 Jan 2008, 07:40

It may be a problem with the disk geometry (partitions) of your usb key.

This page may help:
http://www.sysresccd.org/Howto_install-usb-stick

Tuipveus
Posts: 101
Joined: 18 Nov 2006, 13:09
Contact:

Postby Tuipveus » 04 Jan 2008, 09:09

After booting srcd from cdrom cfdisk complained that partition starts from outside of media or similar... I will try to format it later and try again.

I have 4GB usb-stick and it has some files. I already did every step of your instructions except formatting. Maybe syslinux can't start system over some cylinder etc. boundary. (for example over 1GB)

Tuipveus
Posts: 101
Joined: 18 Nov 2006, 13:09
Contact:

Postby Tuipveus » 04 Jan 2008, 12:18

No, problem still there. I did everything right way like in
http://www.sysresccd.org/Howto_install-usb-stick
but it wont boot.

I think reason might be buggy bios, because same flash stick boots with my laptop. I am however happy that same problematic pc boots from cd.

It has phoenix bios and motherboard model is D1688.

joelfranco
Posts: 3
Joined: 08 Jan 2008, 02:16

USB MBR rebuild

Postby joelfranco » 08 Jan 2008, 02:19

Hi,

I found the answer to exact boot problem like yours in Linux Magazine from Brasil:

ms-sys -s /dev/sdX

It rebuilds the MBR in the USB boot device.

Hope this helps.

admin
Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Postby admin » 08 Jan 2008, 07:41

I added your comment to the manual, thanks

Tuipveus
Posts: 101
Joined: 18 Nov 2006, 13:09
Contact:

Postby Tuipveus » 10 Jan 2008, 17:18

Wow! It works! :D

But after doing "ms-sys -s /dev/sda" I had to select floppydisk from bios menu. :lol: 8)

Thanks a lot from Finland to Brasil!!

Tuipveus
Posts: 101
Joined: 18 Nov 2006, 13:09
Contact:

Postby Tuipveus » 14 Feb 2008, 16:39

It works with one industrial PC, but doesn't work with another PC exactly same type. I am not sure why, but I think it might has to do something with bios-versions.

Boot-problem (without ms-sys -s /dev/sda) appears to be at least with these industrial PC's with Phoenix Bios and Fujitsu-Siemens motherboard, but also with home desktop (HP). I am not sure which brand that motherboard was.

These industrial pc's have some customised bios, which doesnt save all settings which user tries to save, so that might be the root of problem.

ps. I can't install any bootloader for this industrial pc's.

joelfranco
Posts: 3
Joined: 08 Jan 2008, 02:16

Postby joelfranco » 14 Feb 2008, 18:23

Hi,

But if "ps. I can't install any bootloader for this industrial pc's.", why do you think that it could work with ms-sys?

Regards,

Tuipveus
Posts: 101
Joined: 18 Nov 2006, 13:09
Contact:

Postby Tuipveus » 05 Apr 2008, 16:38

One part of this problem was that my usb-stick is perhaps broken. If I do syslinux and ms-sys -s for that stick, it will boot my laptop, but not industrial pc. If I write exactly same commands using another stick, it boots up both of those.

When I boot industrial pc with this problematical Kingston stick, it will take about 30-60 seconds before bios detects it. But my compact flash & Sandisk drive combo, gets detected by bios less than second.

I can save files to Kingston and boot normal pc from that stick, so is it really broken or not? Does SRCD has any programs for checking compact flash cards? badblocks perhaps?

frank
Posts: 1
Joined: 07 Apr 2008, 07:48
Location: Germany

MBR required for booting from USB-Stick

Postby frank » 07 Apr 2008, 07:58

Hello USB-Stick-Booters,

i followed the instructions on this site to install sysrescue on a bootable
USB-Stick and plugged it into my CF18 Toughbook. Booting didn't work,
instead the CF18 reported "Missing operating system"

Installing lilo as a bootmanager in the MBR of my USB-Stick resolved the problem.

The command i used: lilo -M /dev/sdb

with my USB-Stick being dev/sdb and the partition on which sysrescue is
installed being dev/sdb1. lilo automatically detects the primary partition which is marked active / bootable and installs the MBR accordingly.

You can use fdisk or other partition managers on the USB-Stick like fdisk /dev/sdb to make sure that the partition you wish to boot is marked as active / bootable.

Dolmio
Posts: 2
Joined: 26 Aug 2008, 08:25

Re: MBR required for booting from USB-Stick

Postby Dolmio » 26 Aug 2008, 08:36

frank wrote:Hello USB-Stick-Booters,
You can use fdisk or other partition managers on the USB-Stick like fdisk /dev/sdb to make sure that the partition you wish to boot is marked as active / bootable.


Thanks. You solved my problem. I can boot on my USB-stick after I made it bootable in Gparted.

It works with Lilo, as you suggest but it also works with

Code: Select all

install-mbr /dev/sdx



Thanks again. You have saved me a lot of time :D

/Dolmio

steve6375
Posts: 1
Joined: 21 Mar 2013, 00:28

Re: Can't boot from usb-stick

Postby steve6375 » 21 Mar 2013, 00:32

To boot from nearly any linux iso, use the partnew method in grub4dos - tested and works fine!
The ISO file must be contiguous (use WinContig to defrag it if you get Error 60)

Code: Select all

title systemrescuecd-x86-3.4.2.iso
#enable parttype output
debug on
# check if an empty table entry in 4th position in ptn table
parttype (hd0,3) | set check=
debug off
set check=%check:~-5,4%
if "%check%"=="0x00" partnew (hd0,3) 0 0 0
if not "%check%"=="0x00" echo WARNING: PTN TABLE 4 IS ALREADY IN USE! && pause && configfile /menu.lst
debug on
map /systemrescuecd-x86-3.4.2.iso (0xff)
map --hook
partnew (hd0,3) 0 /systemrescuecd-x86-3.4.2.iso
root (0xff)
chainloader (0xff)

EdP
Posts: 16
Joined: 29 Mar 2013, 19:45
Location: Western New York, USA

Re: Can't boot from usb-stick

Postby EdP » 29 Mar 2013, 20:06

I'm not sure that will work with newer pcs Steve. Many have multiple partitions as a standard hdd config. EFI, boot, Rescue, Recovery in addition to C:.

This is a picture of my wife's new netbook hdd config.

Image
Uploaded with ImageShack.us


Image Sorry Steve, I misunderstood. Your code is referring to the 4 partition on a Flash drive NOT the harddrive. Image

user700512
Posts: 13
Joined: 11 Nov 2003, 08:49
Location: Bulgaria
Contact:

Re: Can't boot from usb-stick

Postby user700512 » 19 Jun 2013, 12:56

I had a strange result after installing SRCD 3.7.0 on a usb stick from Windows. The installation was stictly following the how-to.
I have created 1 primary FAT32 partition on the usb stick and flagged it as boot using GParted 0.16.1.
Then I used the install application from Windows (7).

Some PCs booted from the usb stick, some didn't, issuing a "Missing operating system" at boot time.
I was able to fix the usb stick and get it to boot on all PCs, so I share this small addition to the "Install from Windows" how-to.

What made the usb stick boot on all PCs was the following (from a Windows cmd window):
syslinux -a -m x:
(x: is my usb stick).

Hope it's helpful.


Return to “Boot problems”

Who is online

Users browsing this forum: Google [Bot] and 2 guests