WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: usbinstall -> unbootable stick  (Read 10635 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
usbinstall -> unbootable stick
« on: October 14, 2009, 03:39:55 AM »
Tried to install TC 2.4.1 with usbinstall on a running system. Everything looks OK during the installation, but the stick is not bootable. The only message from the BIOS:

Quote
Boot error

Stick is OK with TC installed with UNetbootin.

Installation:



Created partitions:

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: usbinstall -> unbootable stick
« Reply #1 on: October 14, 2009, 09:02:06 AM »
Is your usb stick in HDD mode, which means is HDD bit flipped on, using a utility like Lexmark? It looks this to me looking at fdisk report, but then I am surprised Unetbootin handled this optimal setting. For me Unetbootin liked only usb sticks as removeable media.

Offline Lee

  • Hero Member
  • *****
  • Posts: 646
    • My Core wiki user page
Re: usbinstall -> unbootable stick
« Reply #2 on: October 14, 2009, 09:10:33 AM »
Hmmm... Please tell me more about the HDD bit and Lexmark utility...  Just to educate me - I'm not having any troubles with USB sticks.
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: usbinstall -> unbootable stick
« Reply #3 on: October 14, 2009, 09:11:12 AM »
Is your usb stick in HDD mode, which means is HDD bit flipped on, using a utility like Lexmark? It looks this to me looking at fdisk report, but then I am surprised Unetbootin handled this optimal setting. For me Unetbootin liked only usb sticks as removeable media.


Just an ordinary USB stick. No U3, nothing special.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: usbinstall -> unbootable stick
« Reply #4 on: October 14, 2009, 09:15:10 AM »
Is your usb stick in HDD mode, which means is HDD bit flipped on, using a utility like Lexmark? It looks this to me looking at fdisk report, but then I am surprised Unetbootin handled this optimal setting. For me Unetbootin liked only usb sticks as removeable media.


What do you mean HDD bit?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline jls

  • Hero Member
  • *****
  • Posts: 2135
Re: usbinstall -> unbootable stick
« Reply #5 on: October 14, 2009, 09:17:13 AM »
have u tried h or e instead of z?
dCore user

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: usbinstall -> unbootable stick
« Reply #6 on: October 14, 2009, 09:20:59 AM »
It really depends on bios of machine and its capability. Not all install types will boot. That is why I offer 3 install types and UNetbootin. Between those four hopefully at least one will boot on machines that claim to boot from usb. Typically using option 'z' zip mode the bios will indicate usb boot zip.  FYI, I have found on some machines, you must also enable usb keyboard even if you are not using one. Also it seems the older computers offered zip booting and newer ones perfer HDD or Ext. There is no panacea for USB booting of pendrives. YMMV
10+ Years Contributing to Linux Open Source Projects.

Offline 3rail

  • Full Member
  • ***
  • Posts: 114
Re: usbinstall -> unbootable stick
« Reply #7 on: October 14, 2009, 09:25:42 AM »
fwiw, usbinstall has always worked for me if I

1.  use syslinux or extlinux (haven't tried usb zip)
2.  mount a cd copy of TC and use that for my (r)unning system instead of /tmp (as in /mnt/sr0/boot/)

good luck

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: usbinstall -> unbootable stick
« Reply #8 on: October 14, 2009, 09:37:12 AM »
Bmarkus, Lee:
Normally when you buy a usb stick it comes as removeable media. Hardware of the usb stick allows to set this media to be as removeable or look like a hard disk drive. You can use a utility to flip this bit in usb stick firmware, which decides in what mode this usb stick is going to work. One of such utilities is a Lexmark provided utility for their sticks, but it works for many other sticks as well.
When a usb is in HDD mode, then it shows in operating system as hard disk.
It is a huge difference between these modes, as some computers will boot from usb in removeable mode, but not on HDD mode and others vice versa.
Another huge difference is that when usb is as removeable media, when it is partitioned by TinyCore usbinstall zip option, the second partition (fat32) will not be visible in Windows environment, because Windows treats removeable media as one partition. Only the first partition 16M will be visible. When this usb is in hard disk mode, the second partion will also be visible and show in Windows, allowing for easy backup of \tce or storing other content there. This may not be huge for those who do not use Windows, though...
If a usb stick you buy can be flipped to HDD mode, then it is a huge advantage and I have been buying only such recently, but you cannot tell before you test it...

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: usbinstall -> unbootable stick
« Reply #9 on: October 14, 2009, 09:39:40 AM »
Edit: I meant Lexar utility, not Lexmark...

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: usbinstall -> unbootable stick
« Reply #10 on: October 14, 2009, 09:47:49 AM »
roberts, tclfan:

Thanks for the info, will spend some time on the subject.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: usbinstall -> unbootable stick
« Reply #11 on: October 14, 2009, 09:48:47 AM »
It really depends on bios of machine and its capability. Not all install types will boot. That is why I offer 3 install types and UNetbootin. Between those four hopefully at least one will boot on machines that claim to boot from usb. Typically using option 'z' zip mode the bios will indicate usb boot zip.  FYI, I have found on some machines, you must also enable usb keyboard even if you are not using one. Also it seems the older computers offered zip booting and newer ones perfer HDD or Ext. There is no panacea for USB booting of pendrives. YMMV
From my experience I found that TinyCore usbinstall in zip mode is far superior  to Unetbootin, particularly when you use usb stick in HDD mode. It beautifully partitions into 16M TinyCore and \tce is placed on the second partition.
Unetbootin is not capable of this, and dumps all stuff into one partition formatted as removeable, not optimal way at all...

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: usbinstall -> unbootable stick
« Reply #12 on: October 14, 2009, 10:09:08 AM »
From my experience I found that TinyCore usbinstall in zip mode is far superior  to Unetbootin, particularly when you use usb stick in HDD mode. It beautifully partitions into 16M TinyCore and \tce is placed on the second partition.
Unetbootin is not capable of this, and dumps all stuff into one partition formatted as removeable, not optimal way at all...

No, this not really true on this way. UNetbootin installs on the FAT partition but it is up to you how USB stick is partitioned! Also there is a big advantage of UNetbootin for newcomers mostly using WINDOWS, do not need TC already running.

My practice is to partition the USB drive on LINUX; with fdisk creating a 64M primary FAT partition for TC and to have some free space to transfer files between WINDOWS and LINUX and depending on size creating one or two primary LINUX partitions formatted for ext3 on the erst. Yes, I like (trust) more on journaling systems. When formatted, creating /tce directory on a LINUX partition.

Next I'm formatting the FAT partition on WINDOWS and installing TC with UNetbootin. When ready, editing boot parameters on WINDOWS with TOTAL COMMANDER.

On this way I have practically the same setup as ZIP installation on TC except that it boots :)
« Last Edit: October 14, 2009, 10:14:27 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline tclfan

  • Sr. Member
  • ****
  • Posts: 286
Re: usbinstall -> unbootable stick
« Reply #13 on: October 14, 2009, 10:23:28 AM »
This is a nice way to set up the second partition as Ext3, while preserving some portability with Windows...
Question: How do you TC usbinstall? Zip mode, let it set two partitions, second as Fat32, then reformat the second one to Ext3 and try to boot?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: usbinstall -> unbootable stick
« Reply #14 on: October 14, 2009, 10:29:07 AM »
This is a nice way to set up the second partition as Ext3, while preserving some portability with Windows...

Let everything up to TC usbinstall script, without changing anything.

This is a nice way to set up the second partition as Ext3, while preserving some portability with Windows...

Yes, and it can be done on a similar way by usbinstall also. This is what was my expectation. In the last years playing with bootable USB distros it is the first time seeing unbootable drive, I was really supprized seeing the boot error  >:( Just a small change.
« Last Edit: October 14, 2009, 10:31:12 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."