Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

create a bootable stick

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
metalfan
Posts: 79
Joined: 2011-02-04 14:30

create a bootable stick

#1 Post by metalfan »

hi,


ive created a bootable stick, or more correct the only line it prints is:
failed to load ldlinux.c32

following this howto
https://l3net.wordpress.com/2013/09/21/ ... an-livecd/
its a bit older, still using wheezy. one directory location was outdated, changed isolinux to ISOLINUX.



here are the final commands i used:

Code: Select all

cd /home/julius/livework
rm -f binary/live/filesystem.squashfs 
mkdir -p binary/live && mkdir -p binary/isolinux
cp chroot/boot/vmlinuz-3.16.0-4-amd64 binary/live/vmlinuz
cp chroot/boot/initrd.img-3.16.0-4-amd64 binary/live/initrd
mksquashfs chroot binary/live/filesystem.squashfs -comp xz -e boot
cp chroot/usr/lib/ISOLINUX/isolinux.bin binary/isolinux/
cp chroot/usr/lib/syslinux/modules/bios/menu.c32 binary/isolinux/


xorriso -as mkisofs -r -J -joliet-long -l -cache-inodes -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin -partition_offset 16 -A "Debian Live"  -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o remaster.iso binary

any idea where to copy ldlinux.c32?

its in the install:
livework# find -name 'ldlinux.c32'
./chroot/usr/lib/syslinux/modules/bios/ldlinux.c32

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: create a bootable stick

#2 Post by debiman »

i'm pretty sure the best instructions to create a bootable debian usb medium are found on debian's pages.
i'm also pretty sure that you should just dd the iso to the stick.
https://www.debian.org/CD/faq/#write-usb

metalfan
Posts: 79
Joined: 2011-02-04 14:30

Re: create a bootable stick

#3 Post by metalfan »

Of course, that woud be a working solution.

yet, i would like to configure the image with a running ssh server and some ip.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: create a bootable stick

#4 Post by debiman »

metalfan wrote:yet, i would like to configure the image with a running ssh server and some ip.
what?
methinks you are talking of something else than a live usb stick.

User avatar
GarryRicketson
Posts: 5644
Joined: 2015-01-20 22:16
Location: Durango, Mexico

Re: create a bootable stick

#5 Post by GarryRicketson »

methinks you are talking of something else than a live usb stick.
If the OP would explain more clearly what they want to do with the "bootable stick",
it would be better.
Just a "bootable stick" could mean many things, is it to install Debian ?
or do they want a USB stick with a operating system , in this case Debian, ?
---yet, i would like to configure the image with a running ssh server and some ip.
It is not at all clear what the OP is trying to do, the title " create a bootable stick "
and then "How to Build a Debian LiveCD" , are 2 different things, .. are we trying to
create a "live" install image, or a working USB device ?
Simply , install Debian to the USB device, it needs to be big enough to support
the OS, 20gb minumal, 50gb is better. After you have installed Debian, and
checked it out making sure it does boot, and run,.. then you can install other packages
as needed, such as 'open ssh' or 'ssh' , IE:

Code: Select all

apt-get install openssh-server
secure shell (SSH) server, for secure access from remote machines
or
ssh
secure shell client and server (metapackage)
Actually many of the Debian install images , will include a 'webserver" and 'ssh server"
in the install,...
One last comment:
metalfan wrote: one directory location was outdated, changed isolinux to ISOLINUX.
Are you aware of the fact that all linux systems, including Debian are very
"case sensitive",... changing the directory name from lower case to upper
case would make everything that points toward the "isolinux" break,
it will not recognize "ISOLINUX " in upper case , as a valid directory.
Also, "Word Press" blogs, are not the best places to look for information
at all.
The OP shoud change the name of the topic, if they are trying to build a
"live CD", ""How to Build a Debian LiveCD", would be more appropriate, if that
is what they are trying to do.
If they are trying to " create a bootable stick", that is fine, but it would help
to clarify, IE: Bootable USB stick,.... and clarify, what it is the purpose of the
"boot stick", ? Installer, "live system", for repairs, or what ?

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: create a bootable stick

#6 Post by debiman »

re-reading i'm pretty sure that op wants a debian install TO usb, with persistence.

so, just to make this clear: debian live usbs exist, no need to create one manually.
i think i read recently that persistence is possible.
i'd recommend to explore that avenue, instead of an outdated wordpress article.

User avatar
dasein
Posts: 7680
Joined: 2011-03-04 01:06
Location: Terra Incantationum

Re: create a bootable stick

#7 Post by dasein »

Looks to me like what the OP wants is refracta snapshot.

User avatar
golinux
Posts: 1579
Joined: 2010-12-09 00:56
Location: not a 'buntard!
Been thanked: 1 time

Re: create a bootable stick

#8 Post by golinux »

More likely wants refracta2usb. Note: Not yet set up for uefi. There is a readme but can't find the SF link atm . . . OK try this
May the FORK be with you!

fsmithred
Posts: 1873
Joined: 2008-01-02 14:52

Re: create a bootable stick

#9 Post by fsmithred »

refracta2usb 2.3.x will make a uefi-bootable stick if you use a live iso that has uefi support. (2.2.x and lower only works with bios.)
refractasnapshot will make a live iso from an installed system. 9.3.4+10.0beta (or whatever that number is) will make a uefi-bootable iso.

It's the uefi installer I'm afraid to create and let loose.

Post Reply