运行以下脚本文件后发现它很奇怪。
#! /bin/sh
# krhowto_4
# Path to partition you will work on
PFAD="/media/sda1"
START=$(date +'%s')
# Disable screensaver
xscreensaver-command -exit
# Build new inital RAM-disk
cd $PFAD/knx/minirt/minirtdir/
find . | cpio -oH newc | gzip -9 > ../minirt.gz
cp $PFAD/knx/minirt/minirt.gz $PFAD/knx/master/boot/isolinux/
# Make the big compressed filesystem KNOPPIX
genisoimage -input-charset ISO-8859-15 -R -l -D -V KNOPPIX_FS -quiet \
-no-split-symlink-components -no-split-symlink-fields \
-hide-rr-moved -cache-inodes $PFAD/knx/source/KNOPPIX \
| /usr/sbin/create_compressed_fs -q -B 65536 -t 8 -L 9 \
-f $PFAD/knx/isotemp - $PFAD/knx/master/KNOPPIX/KNOPPIX
# Update the file hashes used by the "testcd" boot option
cd $PFAD/knx/master ; find -type f -not -name \
sha1sums -not -name boot.cat -not \
-name isolinux.bin -exec sha1sum '{}' \; > KNOPPIX/sha1sums
# Create new Knoppix ISO
genisoimage -l -r -J -V "KNOPPIX" \
-b boot/isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \
-boot-info-table -c boot/isolinux/boot.cat \
-o $PFAD/knx/remastered.iso $PFAD/knx/master
# Enable screensaver
su knoppix -c "xscreensaver -nosplash &"
echo -e "\nFinished! Used time: $(expr $(expr $(date +'%s') - $START) / 60) min. \
and $(expr $(expr $(date +'%s') - $START) % 60) sec. \
\n\nThe new ISO is stored in '$PFAD/knx/remastered.iso' "
当脚本文件在
运行时genisoimage -l -r -J -V "KNOPPIX" \
-b boot/isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \
-boot-info-table -c boot/isolinux/boot.cat \
-o $PFAD/knx/remastered.iso $PFAD/knx/master
显示以下错误消息:
I: -input-charset not specified, using utf-8
File /media/sda1/knx/master/KNOPPIX/KNOPPIX is larger than 4GiB-1.
-allow-limited-size was not specified. There is no way to represent this file size. Aborting.
虽然我尝试使用CD版,但它确实有用。但对于DVD版本,它无法生成ISO文件。
有些网站建议我将mkisofs
与参数-iso-level 3
一起使用,这样对大小没有限制,但有genisoimage
等效命令吗?
因此,如果有人能告诉我如何使用genisoimage
创建DVD,我将不胜感激,因为我怀疑我发布的以下命令可能无效。
genisoimage -input-charset ISO-8859-15 -l -r -J -V "KNOPPIX" \
-b boot/isolinux/isolinux.bin -no-emul-boot -boot-load-size 4 \
-iso-level 3 \
-boot-info-table -c boot/isolinux/boot.cat \
-o $PFAD/knx/remastered.iso $PFAD/knx/master
添加信息:/ media / sda1 /的分区是ext2
。
答案 0 :(得分:6)
mkisofs -allow-limited-size -l -J -r -iso-level 3 -o 此命令将生成大于4GB的ISO。
答案 1 :(得分:0)
使用此命令(-iso-level 3 resolve issue):
"C:\Program Files (x86)\cdrtools\mkisofs.exe" -r -R -J -l -iso-level 3 -o "C:\temp\image-file.iso" "C:\files_for_iso"