SliTaz SliTaz Forum

You are not logged in.

#1 2011-08-09 12:37:42

pcromagnon
Member
Registered: 2011-08-07
Posts: 9

tazlito error

I backed up and created a live cd from my slitaz setup so far with tazlito writeiso gzip. Worked fine. However, a few changes later, I wanted to create a new iso but this time it kept insisting to put in the live cd. It was inserted, the cd tray turned unresponsive. Trying to eject the cd  didn't work cause sr0 wasn't being recognized. It was just blocked. Any ideas anyone?

Offline

#2 2011-08-14 01:05:05

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: tazlito error

Many computers don't include a cdrom drive or the drive/disk is unreliable.

tazlito writeiso should offer the option of loop mounting a slitaz iso image file as an alternative source to a cdrom drive/live cd for the kernel and bootloader files.

/usr/bin/tazlito <= line 2194

    # Now we need the kernel and isolinux files.

                if mount /dev/cdrom /media/cdrom 2>/dev/null; then

                        cp /media/cdrom/boot/bzImage $ROOTCD/boot

                        cp -a /media/cdrom/boot/isolinux $ROOTCD/boot

                        umount /media/cdrom

                else

                        echo -e "

Unable to mount the cdrom to copy the Kernel and needed files. When SliTaz

is running in RAM the kernel and bootloader files are kept on the cdrom.

Please insert a LiveCD or unmount the current cdrom to let Tazlito handle

the media.\n"

                        echo -en "----\nENTER to continue..."; read i

                        exit 1

                fi

wodim -checkdrive

If your cdrom is /dev/sr0

tux@slitaz:~$ ls -la /dev/cdrom

lrwxrwxrwx    1 root     root             8 Aug  7 09:02 /dev/cdrom -> /dev/sr0

If the live cd is mounted it won't eject.

root@slitaz:~#umount /media/cdrom

Try this to open/close tray in xterm as root:

eject     <=open tray

eject -t  <=close tray

On some installs a regular user must be added to disk group to use the eject command and have full cdrom drive access:

root@slitaz:~# addgroup tux disk

Offline

#3 2012-01-20 18:37:03

ms
Member
Registered: 2011-04-01
Posts: 90

Re: tazlito error

Probably not the most elegant solution, but I got around the cdrom requirement by commenting out everything between lines 2206 to 2219 except the copy commands. Then just mount the iso using 'mount -o loop...' and tazlito writeiso works fine.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]