在运行以下脚本文件后,我发现它很奇怪。
#! /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文件。
一些网站建议我使用带有参数-iso-level 3的mkisofs,这样就不会对大小有限制,但是有没有genisoimage等效的命令?
因此,如果有人能启发我如何使用genisoimage来创建光盘,我将不胜感激,因为我怀疑下面的命令,我已经出来可能不工作。
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。
发布于 2014-10-23 22:20:14
mkisofs -allow-limited-size -l -J -r -iso-level 3 -o <output.iso> <source file or directory>
genisoimage -allow-limited-size -l -J -r -iso-level 3 -o <output.iso> <source file or directory>
这些命令中的任何一个都将生成大于4 4GB的ISO。
发布于 2018-03-23 20:20:45
使用此命令(-iso-level 3解决问题):
"C:\Program Files (x86)\cdrtools\mkisofs.exe" -r -R -J -l -iso-level 3 -o "C:\temp\image-file.iso" "C:\files_for_iso"发布于 2015-10-10 01:10:34
减小linux的大小,然后就可以创建iso了。下面是手动删除代码:(在chroot之后运行) find /etc/usr/share/doc -depth -type f!-name版权所有| xargs rm || true
https://stackoverflow.com/questions/20209263
复制相似问题