Unix Technical Forum

make a USB key bootable

This is a discussion on make a USB key bootable within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I tried to make a USK key ext2 partition bootable with extlinux but that didn't work. actually this is ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 08:50 PM
heavytull
 
Posts: n/a
Default make a USB key bootable

I tried to make a USK key ext2 partition bootable with extlinux but
that didn't work.
actually this is to put slax on it.

I proceeded as follows:

made the partition with fdisk and wrote the fs with mkfs

the device is /dev/sda and the partition is /dev/sda1

I copied all files from cd to the mounted sda1

#cd /mnt/sda1
#mv boot/*.gz ./
#mv boot/splash* ./
#mv boot/vmlinuz ./
#mv syslinux.cfg extlinux.conf
i then vimed extlinux.conf and removed '/boot' of the path to access
initrd.gz at both lines in whch it appears.
#extlinux -i ./
cat mbr.bin >/dev/sda

this is derived from the method i found on the slax forum in which
they install on a FAT32 partition and which I tried for curiosity and
it didn't work.
and the rest of my method is derived from the extlinux.doc found in
the syslinux package.

Since i did exactly what was written in the extlinux.doc it should
work although i don't understand how it can work:
the file mbr.bin has to be written in the few first bytes of the hard
drive, but i don't understand how the system will reach the partition
on which to boot since i could have choosen sda4 or sda3 or sda2 as
well as sda1. I think the mbr has to link to the boot partition,
unless i get a menu at boot.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 08:50 PM
Grant
 
Posts: n/a
Default Re: make a USB key bootable

On 28 Apr 2007 14:17:51 -0700, heavytull <heavytull@hotmail.com> wrote:

> but i don't understand how the system will reach the partition
>on which to boot since i could have choosen sda4 or sda3 or sda2 as
>well as sda1. I think the mbr has to link to the boot partition,
>unless i get a menu at boot.


Perhaps it follows the active flag? Have you set that?

Grant.
--
http://bugsplatter.mine.nu/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 08:50 PM
Damjan
 
Posts: n/a
Default Re: make a USB key bootable

It's best to create a sda4 partition on the USB device, that's compatible
with the original Iomega ZIP drive and is the most compatible scheme with
most BIOS's.

Then you'll need syslinux, syslinux is a boot manager for Linux that boots
Linux from a VFAT filesystem.

It works very similar to Grub and Lilo, so you need to put the kernel file
and the initramfs image on the USB, set the syslinux.cfg file, umount the
USB and then run 'syslinux /dev/sda4'.

I'd suggest you to get the latest version of syslinux from
http://syslinux.zytor.com/ since the version in Slackware 11.0 is a bit
old. You can also find info on making USB's bootable there
http://syslinux.zytor.com/usbkey.php

--
damjan
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 08:51 PM
notbob
 
Posts: n/a
Default Re: make a USB key bootable

On 2007-04-28, heavytull <heavytull@hotmail.com> wrote:
> I tried to make a USK key ext2 partition bootable with extlinux but
> that didn't work.


I just now bought a 4G key and am learning about them. Apparently,
slax has a shell script for creating a bootable key. See how this
works for you and get back to us.

http://wiki.arslinux.com/Linux.Ars_Volume_33

I'm still going about mounting my key and dwnlding slax. Which version did
you use? Keep up posted.

nb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 08:54 PM
Sambo
 
Posts: n/a
Default Re: make a USB key bootable

notbob wrote:
> On 2007-04-28, heavytull <heavytull@hotmail.com> wrote:
>
>>I tried to make a USK key ext2 partition bootable with extlinux but
>>that didn't work.

>
>
> I just now bought a 4G key and am learning about them. Apparently,
> slax has a shell script for creating a bootable key. See how this
> works for you and get back to us.
>
> http://wiki.arslinux.com/Linux.Ars_Volume_33
>
> I'm still going about mounting my key and dwnlding slax. Which version did
> you use? Keep up posted.
>
> nb

Well I went to check the site out (with my netscape 7), clicked on PNG and got some warning page that
the file may contain malicious code. can't even download it to disk.
&^$%^$%&%^*$%*%#*^#
in PNG? just like someone tried to tell me that MP3 have viruses.
one of the first lines also says mime type: unknown/unknown
Which is also starting to crop up in many places.

Why even have that page there, then.

Is it part of WIKI or ARSLINUX?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 08:54 PM
sammy
 
Posts: n/a
Default Re: make a USB key bootable

notbob wrote:
> On 2007-04-28, heavytull <heavytull@hotmail.com> wrote:
>
>>I tried to make a USK key ext2 partition bootable with extlinux but
>>that didn't work.

>
>
> I just now bought a 4G key and am learning about them. Apparently,
> slax has a shell script for creating a bootable key. See how this
> works for you and get back to us.
>
> http://wiki.arslinux.com/Linux.Ars_Volume_33
>
> I'm still going about mounting my key and dwnlding slax. Which version did
> you use? Keep up posted.
>
> nb


Well I went to check the site out (with my netscape 7), clicked on PNG and got some warning page that
the file may contain malicious code. can't even download it to disk.
&^$%^$%&%^*$%*%#*^#
in PNG? just like someone tried to tell me that MP3 have viruses.
one of the first lines also says mime type: unknown/unknown
Which is also starting to crop up in many places.

Why even have that page there, then.

Is it part of WIKI or ARSLINUX?

I should add the links I am referring to are under the filelight near the bottom of that page.
Unrelated material though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 08:54 PM
notbob
 
Posts: n/a
Default Re: make a USB key bootable

On 2007-05-03, sammy <sammy@mycybernet.net> wrote:

> one of the first lines also says mime type: unknown/unknown
> Which is also starting to crop up in many places.


> Unrelated material though.


Yeah... weird, huh.

nb
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 01:40 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com