Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-06-2013, 02:00 PM
|
#1
|
Member
Registered: Sep 2012
Distribution: Slackware-15
Posts: 121
Rep: 
|
mkrescue gives error (bug?)
Code:
root@darkstar# mkrescue --iso
mkdir: cannot create directory '/tmp/mkrescue.XXXX0tioxs': File exists
Could not create temporary directory.
Commenting out the following block (in /usr/sbin/mkrescue script) gets rid of the issue (and I get rescue.iso in pwd), as suggested in this Debian bug report
Code:
# mkdir $tmpbase || {
# echo "Could not create temporary directory."
# exit 1
# }
Is this solution ok?
|
|
|
11-06-2013, 03:10 PM
|
#2
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Something must be wrong on your computer with regard to creating temporary directories with mktemp. I ran "mkrescue --iso" multiple times. However, later on in the process, the ISO creation falls flat on its nose anyway:
Code:
mkrescue --iso
16384+0 records in
16384+0 records out
16777216 bytes (17 MB) copied, 0.0388587 s, 432 MB/s
Partitioning HD file (this will take a minute)
bsize = 16352
Making filesystem
mke2fs 1.42.8 (20-Jun-2013)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
32 inodes, 16352 blocks
817 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=16777216
2 block groups
8192 blocks per group, 8192 fragments per group
16 inodes per group
Superblock backups stored on blocks:
8193
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
Mounting filesystem
Copying files...
‘/boot/initrd_3.10.17.gz’ -> ‘/tmp/mkrescue.XXXXwPKDta/mkrescue-flp/initrd’
‘/boot/vmlinuz-generic-3.10.17’ -> ‘/tmp/mkrescue.XXXXwPKDta/mkrescue-flp/linux’
done.
Running /sbin/lilo ...
Warning: Ignoring entry 'boot'
Added linux + *
Added hard_disk
One warning was suppressed.
done.
START MakeISOFS:
/usr/sbin/mkrescue: line 673: genisoimage: command not found
END MakeISOFS: output is in 'rescue.iso'
The bootable CD can be burned with the 'cdrecord' or 'wodim' utility
using a command of the form:
cdrecord [<options>] [dev=<device>] rescue.iso
wodim [<options>] [dev=<device>] rescue.iso
All done.
I do not know if Slackware ever had a "genisoimage" program. It does not have one in 13.37 and newer releases.
Eric
|
|
|
11-07-2013, 03:57 AM
|
#3
|
Member
Registered: Sep 2012
Distribution: Slackware-15
Posts: 121
Original Poster
Rep: 
|
Here's what I get:
Code:
root@darkstar# mkrescue --iso
16384+0 records in
16384+0 records out
16777216 bytes (17 MB) copied, 0.0638111 s, 263 MB/s
Partitioning HD file (this will take a minute)
bsize = 16352
Making filesystem
mke2fs 1.42.6 (21-Sep-2012)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
32 inodes, 16352 blocks
817 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=16777216
2 block groups
8192 blocks per group, 8192 fragments per group
16 inodes per group
Superblock backups stored on blocks:
8193
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
Mounting filesystem
Copying files...
'/boot/initrd.gz' -> '/tmp/mkrescue.XXXXBKKMkf/mkrescue-flp/initrd'
'/boot/vmlinuz-generic-smp-3.2.45-smp' -> '/tmp/mkrescue.XXXXBKKMkf/mkrescue-flp/linux'
done.
Running /sbin/lilo ...
Warning: Ignoring entry 'boot'
Added linux + *
Added hard_disk
One warning was suppressed.
done.
MKISOFS
Setting input-charset to 'ISO-8859-1' from locale.
Size of boot image is 32768 sectors -> Emulating a hard disk
Warning: partition does not start at 0/1/1.
59.80% done, estimate finish Thu Nov 7 14:50:04 2013
Total translation table size: 2488
Total rockridge attributes bytes: 450
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 21000
8376 extents written (16 MB)
END MKISOFS: output is in 'rescue.iso'
The bootable CD can be burned with the 'cdrecord' utility
using a command of the form:
cdrecord [<options>] [dev=<device>] rescue.iso
All done.
I'm running Slackware 14, with 3.2.45-smp. mkrescue version 3.2.
Quoting from Debian bug link:
Quote:
the earlier line
tmpbase="`mktemp -dt $(basename $0).XXXXXXXXXX`" || exit
would have already created the directory if there were no errors, correct?
|
So later in the script when it tries to create the same directory again, we get the error (post 1). Commenting this block would get rid of the error.
Last edited by GNU/Linux; 11-07-2013 at 07:43 AM.
|
|
|
11-07-2013, 10:19 AM
|
#4
|
Member
Registered: Aug 2004
Location: MD
Distribution: Slackware
Posts: 114
Rep:
|
Quote:
Originally Posted by Alien Bob
Something must be wrong on your computer with regard to creating temporary directories with mktemp. I ran "mkrescue --iso" multiple times. However, later on in the process, the ISO creation falls flat on its nose anyway:
Code:
mkrescue --iso
16384+0 records in
16384+0 records out
16777216 bytes (17 MB) copied, 0.0388587 s, 432 MB/s
Partitioning HD file (this will take a minute)
bsize = 16352
Making filesystem
mke2fs 1.42.8 (20-Jun-2013)
Discarding device blocks: done
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
32 inodes, 16352 blocks
817 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=16777216
2 block groups
8192 blocks per group, 8192 fragments per group
16 inodes per group
Superblock backups stored on blocks:
8193
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
Mounting filesystem
Copying files...
‘/boot/initrd_3.10.17.gz’ -> ‘/tmp/mkrescue.XXXXwPKDta/mkrescue-flp/initrd’
‘/boot/vmlinuz-generic-3.10.17’ -> ‘/tmp/mkrescue.XXXXwPKDta/mkrescue-flp/linux’
done.
Running /sbin/lilo ...
Warning: Ignoring entry 'boot'
Added linux + *
Added hard_disk
One warning was suppressed.
done.
START MakeISOFS:
/usr/sbin/mkrescue: line 673: genisoimage: command not found
END MakeISOFS: output is in 'rescue.iso'
The bootable CD can be burned with the 'cdrecord' or 'wodim' utility
using a command of the form:
cdrecord [<options>] [dev=<device>] rescue.iso
wodim [<options>] [dev=<device>] rescue.iso
All done.
I do not know if Slackware ever had a "genisoimage" program. It does not have one in 13.37 and newer releases.
Eric
|
Hmm, Looks like the use of genisoimage is new to the mkrescue/lilo version in current
|
|
|
11-07-2013, 12:51 PM
|
#5
|
Member
Registered: Aug 2012
Posts: 484
Rep: 
|
GNU/Linux: You're absolutely right, you've found a bug in lilo as shipped in Slackware 14.0. Your change is OK but I've improved it a bit to make it more informative. The patch below fixes:
lilo-23.2-mkrescue-fix.diff
Also, in so doing, you've revealed an issue in Slackware-current's mkrescue. It now invokes genisoimage from cdrkit (a Debian fork of cdrtools) rather than mkisofs. The patch below makes it Slackware-compatible:
lilo-24.0-mkrescue-fix.diff
Thanks for this report; two birds with one stone.
--mancha
Last edited by mancha; 11-07-2013 at 01:22 PM.
|
|
|
12-30-2013, 03:01 PM
|
#6
|
Member
Registered: Aug 2012
Posts: 484
Rep: 
|
I never heard back from the OP on this and I've seen no bug-fix patches for lilo on 14.0 or 14.1 so it seems the thread didn't percolate up to Pat.
If "mkrescue" is relatively esoteric then it probably doesn't matter, otherwise someone might want to send smoke signals to the appropriate people.
--mancha
|
|
|
All times are GMT -5. The time now is 11:24 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|