Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2006.1 LiveUSB can't find bootable medium [WORKAROUND]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ozbird
Apprentice
Apprentice


Joined: 21 Oct 2003
Posts: 184

PostPosted: Sat Sep 09, 2006 11:58 pm    Post subject: 2006.1 LiveUSB can't find bootable medium [WORKAROUND] Reply with quote

I've just rebuilt my USB stick with the 2006.1 i686 LiveCD (following the Gentoo LiveUSB HOWTO, http://www.gentoo.org/doc/en/liveusb.xml), but it doesn't boot correctly. (2006.0 worked fine.)

Syslinux boots the USB stick correctly, and after I select the gentoo image, it loads the various drivers and does an initial disk scan (/dev/sda*). It reports "No bootable medium found. Waiting for new devices." It then detects all of the available disks (including /dev/sdb1, the USB stick), but the reports "Could not find CD to boot, something else needed!"

I've tried using the "doscsi" and "noapic" options (separately and together), but the problem persists.

Any ideas?

Update: babyfai's instructions will make the image work for non-CD devices; I've updated the status, but it isn't "SOLVED" yet.


Last edited by ozbird on Mon Sep 18, 2006 4:37 am; edited 1 time in total
Back to top
View user's profile Send private message
babyfai
n00b
n00b


Joined: 09 Jun 2002
Posts: 40

PostPosted: Fri Sep 15, 2006 9:22 am    Post subject: Reply with quote

2 changes in the version-2006.1 :
First, during booting, it checks the contents of your livecd and tries to mount that as an iso9660 filesystem.
Of course, you never got an iso9660 filesystem in a USB-Disk, so the mounting failed!
Second, the option :"dobladecenter" was changed to "doslowusb", (no related announcement inside the docs :?: :?: )

My solution :
After you did all procedures which comes from here : http://www.gentoo.org/doc/en/liveusb.xml
Then: mount USB-disk , copy "gentoo.igz" to a dir and hack it.
Go here to get a script "unigz.pl" written by wmd:
https://forums.gentoo.org/viewtopic-t-383198-start-0-postdays-0-postorder-asc-highlight-igz.html
Copy the codes with a text-editor and save as "unigz.pl".
You must do all as a 'su' user, otherwise, inodes in dir '/dev' will be missd.
Code:
mkdir /mnt/hack
# put the script "unigz.pl" into /mnt/hack/ by yourself
mkdir /mnt/usb
mount /dev/sda1 /mnt/usb                                      # mount your USB-Disk here
cp /mnt/usb/gentoo.igz /mnt/hack/
cd /mnt/hack
chmod +x unigz.pl
mv gentoo.igz new.gz
gunzip new.gz
./unigz.pl new
cd new.dir
sed -i -e "s:mount -r -t iso9660:mount -r:" etc/initrd.scripts
find . -print | cpio -o -H newc > ../gentoo                    # repack all files as 'gentoo'
cd ..
gzip gentoo
mv /mnt/usb/gentoo.igz /mnt/usb/gentoo.igz~          # backup the old gentoo.igz
mv /mnt/hack/gentoo.gz /mnt/usb/gentoo.igz            # move a new one into your USB-Disk
cd /mnt/usb
sed -i -e "s:cdroot dobladecenter:cdroot doslowusb:" syslinux.cfg      # use the new option "doslowusb" .
cd /
umount /mnt/usb
syslinux /dev/sda1     # Finished !


Reboot your USB-Disk .
Back to top
View user's profile Send private message
ozbird
Apprentice
Apprentice


Joined: 21 Oct 2003
Posts: 184

PostPosted: Sun Sep 17, 2006 10:55 am    Post subject: Reply with quote

babyfai wrote:
2 changes in the version-2006.1 :
First, during booting, it checks the contents of your livecd and tries to mount that as an iso9660 filesystem.
Of course, you never got an iso9660 filesystem in a USB-Disk, so the mounting failed!
Second, the option :"dobladecenter" was changed to "doslowusb", (no related announcement inside the docs :?: :?: )

My solution :<snip>


Eureka! It works! :D

Thanks for that - hopefully the documentation and/or the CD image will be corrected shortly.
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Mon Sep 18, 2006 10:28 am    Post subject: Reply with quote

The document is not designed for 2006.1 -- notice that only a 2006.0 tarball is used; as it is expressly designed for that release. The 2006.1 tarball is sufficiently different from 2006.0 that it won't work.

The new boot parameter has been updated for the 2006.1 GLI handbook, and an explicit 2006.0-only note has been added to the LiveUSB guide.
Back to top
View user's profile Send private message
-Tommppa-
n00b
n00b


Joined: 04 Jul 2006
Posts: 9

PostPosted: Thu Sep 21, 2006 7:45 am    Post subject: Reply with quote

Could you post the liveusb image, so I can dd it into my usbstick.
Back to top
View user's profile Send private message
saintpa
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 77

PostPosted: Thu Sep 28, 2006 7:05 pm    Post subject: Usb hd Reply with quote

Has anyone tried the liveusb guide with an external USB HD? I followed the guide step-by-step with my usb harddrive, and got an error message when booting from the USB: No Operating System. And then the machine hangs.

[EDIT]: I figured out why. I forgot to toggle the boot flag of the partition.
Back to top
View user's profile Send private message
Kthulhu
n00b
n00b


Joined: 28 Sep 2006
Posts: 17

PostPosted: Thu Sep 28, 2006 10:52 pm    Post subject: Reply with quote

I didn't get it - in first message there's 2006.1, and then nightmorph told that it's not for 2006.1...at last, is it ok for 2006.1?
_________________
Fhtagn!
Back to top
View user's profile Send private message
saintpa
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 77

PostPosted: Thu Sep 28, 2006 11:08 pm    Post subject: Reply with quote

Kthulhu wrote:
I didn't get it - in first message there's 2006.1, and then nightmorph told that it's not for 2006.1...at last, is it ok for 2006.1?

Read babyfai's comment. The original gentoo guide is for 2006.0, but his fixes allows you to use 2006.1.
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Thu Oct 19, 2006 3:11 pm    Post subject: Reply with quote

That fix doesn't work for me (unigz.pl ends with errors). Anyone care to host (or send via email) the modified gentoo.igz file?
Back to top
View user's profile Send private message
babyfai
n00b
n00b


Joined: 09 Jun 2002
Posts: 40

PostPosted: Thu Oct 19, 2006 3:58 pm    Post subject: Reply with quote

R!tman wrote:
That fix doesn't work for me (unigz.pl ends with errors). Anyone care to host (or send via email) the modified gentoo.igz file?

OK, post your email please
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Thu Oct 19, 2006 6:38 pm    Post subject: Reply with quote

babyfai wrote:
R!tman wrote:
That fix doesn't work for me (unigz.pl ends with errors). Anyone care to host (or send via email) the modified gentoo.igz file?

OK, post your email please

hmm... I tried to send you a pm, but something is wrong about that, messages don't get sent, they stay in outbox instead :?.

Anyway, my email is: EDITED OUT!


Last edited by R!tman on Thu Oct 19, 2006 6:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4939
Location: Gothenburg, Sweden

PostPosted: Thu Oct 19, 2006 6:53 pm    Post subject: Reply with quote

R!tman wrote:
hmm... I tried to send you a pm, but something is wrong about that, messages don't get sent, they stay in outbox instead :?.

That's perfectly normal. A PM stays in the outbox until the recipient has read it.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Thu Oct 19, 2006 6:55 pm    Post subject: Reply with quote

kallamej wrote:
R!tman wrote:
hmm... I tried to send you a pm, but something is wrong about that, messages don't get sent, they stay in outbox instead :?.

That's perfectly normal. A PM stays in the outbox until the recipient has read it.

:oops: Oops... I usually don't write many pms. Thanks for the info. I edited my email out in the post above.
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri Oct 20, 2006 10:13 am    Post subject: Reply with quote

@babyfai: Thanks for the file! I can boot now (at all), but it seems like after booting from USB, the kernel does not recognize the usb device. I get things like
Code:
ide0:
>> Loading modules
>> Activating mdev
>> Making tmpfs for /newroot
>> Attempting to mount CD:- /dev/hdc
>> No bootable medium found. Waiting for new devices...
>> Attempting to mount CD:- /dev/hdc
>> Attempting to mount CD:- /dev/hdc
!! Could not find CD to boot, something else is needed!
>> Loading keymaps
... keymaps stuff ...
>> Keeping default keymap
>> Determining root device...
!! The root block device is unspecified or not detected.
   Please specify a device to boot, or "shell" for a shell...
boot() ::

I didn't find the usb stick in /dev using shell :-(.

Any suggestions?
Back to top
View user's profile Send private message
babyfai
n00b
n00b


Joined: 09 Jun 2002
Posts: 40

PostPosted: Fri Oct 20, 2006 11:52 am    Post subject: Reply with quote

Did you edit the syslinux.cfg.
If not, during boot ,type the command first:
gentoo doslowusb
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri Oct 20, 2006 1:07 pm    Post subject: Reply with quote

babyfai wrote:
Did you edit the syslinux.cfg.
If not, during boot ,type the command first:
gentoo doslowusb

"doslowusb" is included in syslinux.cfg and I did
Code:
syslinux /dev/sdb1

after editing it.

Nevertheless, I tried using the command line. It didn't work either!
Back to top
View user's profile Send private message
babyfai
n00b
n00b


Joined: 09 Jun 2002
Posts: 40

PostPosted: Fri Oct 20, 2006 2:05 pm    Post subject: Reply with quote

Quote:
I didn't find the usb stick in /dev using shell :-(
You mean there wasn't a /dev/sda or /dev/sdb ,etc ?
Have your usb stick been found during you boot from this livecd ?
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Fri Oct 20, 2006 7:35 pm    Post subject: Reply with quote

babyfai wrote:
Quote:
I didn't find the usb stick in /dev using shell :-(
You mean there wasn't a /dev/sda or /dev/sdb ,etc ?
Have your usb stick been found during you boot from this livecd ?

Exactly, no /dev/sd[ab]. Using the CD it works, both booting and finding the stick.

There is one difference though. When booting from the CD I get
Code:
>> Loading modules
   :: Scanning for ehci-hcd...usbcore, ehci-hcd loaded.
.... and other stuff

using the stick I only get
Code:
>> Loading modules

but I don't see any of the "Scanning for ..." stuff.
Back to top
View user's profile Send private message
babyfai
n00b
n00b


Joined: 09 Jun 2002
Posts: 40

PostPosted: Sat Oct 21, 2006 6:33 am    Post subject: Reply with quote

The file gentoo.igz which was tested and exactly worked on my system.
Quote:
Exactly, no /dev/sd[ab]. Using the CD it works, both booting and finding the stick.

There is one difference though. When booting from the CD I get
Code:
>> Loading modules
:: Scanning for ehci-hcd...usbcore, ehci-hcd loaded.
.... and other stuff

using the stick I only get
Code:
>> Loading modules

but I don't see any of the "Scanning for ..." stuff.

It's very strange or something out of my knowledge....... :roll:
Or try the option:
gentoo doslowusb doload=usb-storage

But, I think it may not help, may be........
Aren't you using a i686-livecd-2006.1 ?
Would you like to repeat all install procedures from the beginning ?
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Mon Oct 23, 2006 7:43 am    Post subject: Reply with quote

@babyfai: Thank you very much for sending the file :!:

Nevertheless, I still can't get it working. I have no idea what's wrong!

2006.0 is working, Damn Small Linux is working, 2006.1 seems to work for you guys, but just not for me! :evil:

I'll do some hex-editing this evening...


Last edited by R!tman on Sun Apr 08, 2007 8:46 am; edited 1 time in total
Back to top
View user's profile Send private message
UberPinguin
Guru
Guru


Joined: 20 Nov 2005
Posts: 510
Location: 2416.94 Miles From Home

PostPosted: Mon Nov 20, 2006 6:48 pm    Post subject: Reply with quote

R!tman - did you ever get this working? The perl script referenced above doesn't seem to work for me. It's leaving a lot of files out, so I can't get the gentoo.igz reconfigured.
If anyone has a fully-working gentoo.igz and would like to send a copy to me I would really appreciate it. Thanks.
_________________
aidanjt wrote:
You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines.
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Mon Nov 20, 2006 9:18 pm    Post subject: Reply with quote

UberPinguin wrote:
R!tman - did you ever get this working? The perl script referenced above doesn't seem to work for me. It's leaving a lot of files out, so I can't get the gentoo.igz reconfigured.
If anyone has a fully-working gentoo.igz and would like to send a copy to me I would really appreciate it. Thanks.

No, never got it to work. I tried the same thing, babyfai sent me his working gentoo.igz, nevertheless I couldn't boot. I still have his gentoo.igz, you can try that out by simply downloading it from here.

Good luck with it, please drop a message if it worked for you.

Cheers,
R!tman
Back to top
View user's profile Send private message
UberPinguin
Guru
Guru


Joined: 20 Nov 2005
Posts: 510
Location: 2416.94 Miles From Home

PostPosted: Tue Nov 21, 2006 12:45 am    Post subject: Reply with quote

Thanks. I'll see what I can do with it.
I think I'm going to check this out first, though. I like the idea of a really customized LiveUSB setup.

[EDIT]I think I may have a piece of the puzzle: the gentoo.igz that you posted is different than the ones on the install and live CDs. I just decompressed it and everything described in the HOWTO is there, plus it decompressed faster with fewer errors.
_________________
aidanjt wrote:
You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines.
Back to top
View user's profile Send private message
R!tman
Veteran
Veteran


Joined: 18 Dec 2003
Posts: 1303
Location: Zurich, Switzerland

PostPosted: Sat Dec 02, 2006 1:28 pm    Post subject: Reply with quote

UberPinguin wrote:
Thanks. I'll see what I can do with it.
I think I'm going to check this out first, though. I like the idea of a really customized LiveUSB setup.

[EDIT]I think I may have a piece of the puzzle: the gentoo.igz that you posted is different than the ones on the install and live CDs. I just decompressed it and everything described in the HOWTO is there, plus it decompressed faster with fewer errors.

So, does it work for you using a usb stick?
Back to top
View user's profile Send private message
UberPinguin
Guru
Guru


Joined: 20 Nov 2005
Posts: 510
Location: 2416.94 Miles From Home

PostPosted: Sat Dec 02, 2006 1:54 pm    Post subject: Reply with quote

To be honest I've been focusing on using Catalyst to build my own :oops:
Which hasn't worked, either.
I'm kind of stuck right now, but no one seems to take any interest in the topic.
_________________
aidanjt wrote:
You see, instead of arguing from ignorance, and fear, there is only one way to verify a theory. And that's not by clutching a black book and begging the sky fairy for deliverance from the mad scientists and their big machines.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum