Used dd to move file with ext3 bootstick
same result

ver 4.0 making live usb ..... are these instructions correct ? ..... usb must be ext. 2 ? ......
(48 posts) (7 voices)-
Posted 10 years ago #
-
Even after re reading this thread, I am not sure if you are trying to create a 'live' pendrive or whether you are trying to make an 'ordinary installation' onto a pendrive.
Please clarify which, so that we may be able to help further.Posted 10 years ago # -
Sorry for the confusion......I tried both.
O.K. Starting over :I would like to make a 'live' pendrive
with the addition of a couple of apps
(midicom and wine ( with a couple of windows programs installed ) )Posted 10 years ago # -
OK, so are you getting a new .iso file or just a new rootfs.gz?
(Using the slitaz-4.0-core.iso.)
In the root of your .iso there should be,
boot index.html md5sum README style.css& under /boot there should be,
bzImage gpxe grub isolinux rootfs.gz vmlinuz-2.6.37-slitazPosted 10 years ago # -
> are you getting a new .iso file or just a new rootfs.gz?
edit: stick is fat32 since I use XP app to make it
booting on 4.0-core usb stick
making no additions
using live cd tool (write iso).....after some time I get this:
"
filesystem size: 31.6M
When Slitaz is running in RAM the kernal and bootloader files are kept on the cdrom.
Please insert a live cd or loop mount the slitaz.iso to /media/cdrom to let Tazlito
copy the files........enter to continue
"
when I hit enter the window goes away.Posted 10 years ago # -
I only use Linux, so have no idea how your XP version is creating your cd/iso.
Best if you do it the SliTaz way, then we will know where it is going wrong.
However if you have an .iso file, it looks like maybe the grub boot line is perhaps wrong, pointing to the wrong HDD. (I forgot SliTaz puts the root designator into the grub boot line.)
When your live cd starts to boot, at the grub screen, type 'e' to edit the boot line. You will need to type 'e' again to actually edit the line. See if it is showing the correct boot partition. If not, change it, also check the init line, edit if necessary, then continue to boot up.
(Let us know if you had to alter it, & to what.)Posted 10 years ago # -
> I only use Linux, so have no idea how
> your XP version is creating your cd/iso.I have Slitaz 4.0 on HD of 2nd PC...
Acts the same way.
It will not make an .iso file from the running system file
Again I get :
filesystem size: 31.6M
When Slitaz is running in RAM the kernal and bootloader files are kept on the cdrom.
Please insert a live cd or loop mount the slitaz.iso to /media/cdrom to let Tazlito
copy the files........enter to continue
I can make a bootable stick using an existing .iso, but can't make a new one (.iso)
with added apps. Or even from running system without modifications.
I can make a rootfs.gz, but when I replace the existing rootfs.gz I get the
'failed to execute login command' error on attempted boot.
Do you,in fact, make bootable sticks with added apps ?Posted 10 years ago # -
[quote]Please insert a live cd or loop mount the slitaz.iso to /media/cdrom to let Tazlito
copy the files........enter to continue[/quote]Did you do this, as that is where it will copy files from to create your live cd.iso.
Either mount your 'live' system to /media/cdrom or loop mount a .iso file to /media/cdrom.
That is, mount <my-livecd-drive> /media/cdrom or mount -o loop <your-iso-image-file> /media/cdrom.
[quote]Do you,in fact, make bootable sticks with added apps ?[/quote]
Yes, I used tazlito to do it. I created a livecd .iso & then dd'd it to my pendrive.
Posted 10 years ago # -
My notes that I wrote for my future reference say -
tazlito writeiso lzma <name>
Needs a .iso file loop mounted at /media/cdrom => creates a live cd image of an installed filesystem.
So it definately does work.
Posted 10 years ago # -
So from re reading my notes, make the changes to your installed system, mount a live cd or loop mount an live .iso image at /media/cdrom, run tazlito writeiso lzma <whatever-name-to-call-your-new-iso>.
That should create a new .iso file for you to burn to cd or dd to a pendrive.If it doesn't boot up, you will need to run isohybrid <your-iso-name> to make it a 'hybrid' iso that will boot from a pendrive.
Posted 10 years ago # -
OK ........tried the cd ..........doesn't seem to recognize it .........
I have no idea how to 'loop mount' ...... Can I do that from GUI
or do I have to use the terminal ????Posted 10 years ago # -
@hitsware
The gui mount tool that included loop mounting was removed after slitaz-3.0
There is a mount section in slitaz-5.0/cooking hardware section of tazpanel:
http://tazpanel:82/hardware.cgi
It doesn't look like it will loop mount an iso.
It shows what is loop mounted on the system and has the option to Setup a backing file.
tazpanel/hardware.cgi http://hg.slitaz.org/tazpanel/file/6adca10ef270/hardware.cgi
I was able to unmount the iso I had mounted in terminal.This is how to do it in terminal:
Substitute your iso name in the following commands for slitaz.iso
Move a copy of the slitaz.iso to /home/tux
When you login as tux you won't have to type the path to the iso in your commands.
Open terminal.
tux@slitaz:~ $
Type
su
Hit Enter key
Note: When a password is typed in terminal it is not visible in the terminal.
You won't see a dot for each character you type in either.
This is to prevent someone looking at the terminal from seeing your password.
Password:
Type
root
Hit Enter key
root@slitaz:/home/tux #
Type
mount -o loop slitaz.iso /media/cdrom
Hit Enter keyVerify the slitaz.iso is loop mounted to /media/cdrom
Type
ls /media/cdrom
Hit Enter key
boot index.html md5sum README style.css
Yes it's mounted, if it wasn't the contents of the iso wouldn't be listed.
To clone my running system into an iso:
Type:
tazlito writeiso gzip
Hit Enter
or
tazlito writeiso lzma
Hit EnterPosted 10 years ago # -
@Mojo .... thanks !
Will the below work with some older version ?
It seems the newer versions get further and further away from the documentation ?To generate your own LiveUSB media, first you need to login as root with su and locate your usb storage device using the command:
# fdisk -l # normally /dev/sdb1
Then format and label your device (Warning: this will erase all data, make sure you specify the right device):# tazusb format /dev/sdb1
And finally generate your LiveUSB media device:# tazusb gen-liveusb /dev/sdb1
And that's all you need to do, you can now boot SliTaz from usb media (providing your computer bios supports this method).Maintaining system settings
When you finish your LiveUSB session, make sure you maintain your installed packages, system settings, etc, by backing up the entire current filesystem with one the following commands:
fast compression, average filesize:
# tazusb writefs gzip
slow compression, smaller filesize:
# tazusb writefs lzma
no compression, larger filesize:
# tazusb writefs none
Each of these writes everything to a 'rootfs.gz' archive to be loaded the next time you boot.POSTED 5 DAYS AGO #
Posted 10 years ago # -
Thank You mojo !
I got as far as having home/slitaz/distro/slitaz.iso
(which I'm assuming has the apps)
How do I make that into a bootable usb stick ?Posted 10 years ago # -
Use dd to put it onto your pendrive.
dd if=slitaz.iso of=<your-pendrive> bs=1MIf it doesn't boot up you will need to run isohybrid on your slitaz.iso file,
isohybrid slitaz.iso
then use dd to put it onto your pendrive again.Posted 10 years ago #
Reply »
You must log in to post.