Re: Making a custom FreeBSD iso
On 2005-06-18 21:12, Wojciech Puchar <[EMAIL PROTECTED]> wrote: >> Im ripping the iso image from the cd with dd >> >> dd if=/dev/acd0 of=file.iso bs=2048 >> >> Then, Im mounting the iso image >> >> mdconfig -a -t vnode -f /usr/iso-orig/file.iso -u 0 >> >> mount -t cd9660 /dev/md0 /iso >> >> ..and copying its contents to disk with cp -R > > tar cf - .|(cd /newdir;tar xpf -) would be better and copy all dev's > etc properly. True. This will also copy hard links as hard links, which seems to be bitting the previous poster. Just using cp(1) is not enough some times: % gothmog:/tmp/foo$ mkdir src dst % gothmog:/tmp/foo$ echo hello world > src/0 % gothmog:/tmp/foo$ for linkcount in `jot 100 1 100`; do link src/0 src/$linkcount; done % gothmog:/tmp/foo$ du -sk src dst % 4 src % 2 dst % gothmog:/tmp/foo$ cp -Rp src/* dst/ % gothmog:/tmp/foo$ du -sk src dst % 4 src % 204 dst On the other hand, tar(1) can help a lot: % gothmog:/tmp/foo$ mkdir dst2 % tar: Error opening archive: Empty input file: Inappropriate file type or format % gothmog:/tmp/foo$ tar -c -C src -f - . | tar -xv -C dst2 -f - % x . % x 0 % [...] % x 98 % x 99 % x 100 % gothmog:/tmp/foo$ du -sk src dst* % 4 src % 204 dst % 4 dst2 % gothmog:/tmp/foo$ > >Now, all of the sudden, the /rescue dir grows from 3.5M to 455M so after i > >copy my scripts to the extracted iso filesystem on my hard disk and try to > >make an iso I cannot burn the ISO because its way too big. Can anyone help > >me with this? > > iso9660 doesn't have links marked as links. just relink them all > same-sized files to one Or just scratch the existing (cp -R) copy of the ISO files and start over with tar, cpio or any tool that knows how to deal with hard links :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Making a custom FreeBSD iso
Im ripping the iso image from the cd with dd dd if=/dev/acd0 of=file.iso bs=2048 Then, Im mounting the iso image mdconfig -a -t vnode -f /usr/iso-orig/file.iso -u 0 mount -t cd9660 /dev/md0 /iso ..and copying its contents to disk with cp -R tar cf - .|(cd /newdir;tar xpf -) would be better and copy all dev's etc properly. Now, all of the sudden, the /rescue dir grows from 3.5M to 455M so after i copy my scripts to the extracted iso filesystem on my hard disk and try to make an iso I cannot burn the ISO because its way too big. Can anyone help me with this? iso9660 doesn't have links marked as links. just relink them all same-sized files to one ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Making a custom FreeBSD iso
Chris Huff wrote: Hi: Im trying to get a couple of scripts of mine onto a bootable FreeBSD 5.4 install cd. Im going about this as follows. Im ripping the iso image from the cd with dd dd if=/dev/acd0 of=file.iso bs=2048 Then, Im mounting the iso image mdconfig -a -t vnode -f /usr/iso-orig/file.iso -u 0 mount -t cd9660 /dev/md0 /iso ..and copying its contents to disk with cp -R Now, all of the sudden, the /rescue dir grows from 3.5M to 455M so after i copy my scripts to the extracted iso filesystem on my hard disk and try to make an iso I cannot burn the ISO because its way too big. Can anyone help me with this? Im trying to get some kind of autoinstall going ( above just install.cfg with sysinstall ). Thanks --CH ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" You might want to try 'live-cd' its the same program which is used to create the FreeBSD livecd's ( FreeSBIE ) you should check in sysutils/livecd and then just follow the 'wizzard' http://liveucd.sf.net for more info Good luck -- -Frank Staals ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Making a custom FreeBSD iso
Hi: Im trying to get a couple of scripts of mine onto a bootable FreeBSD 5.4 install cd. Im going about this as follows. Im ripping the iso image from the cd with dd dd if=/dev/acd0 of=file.iso bs=2048 Then, Im mounting the iso image mdconfig -a -t vnode -f /usr/iso-orig/file.iso -u 0 mount -t cd9660 /dev/md0 /iso ..and copying its contents to disk with cp -R Now, all of the sudden, the /rescue dir grows from 3.5M to 455M so after i copy my scripts to the extracted iso filesystem on my hard disk and try to make an iso I cannot burn the ISO because its way too big. Can anyone help me with this? Im trying to get some kind of autoinstall going ( above just install.cfg with sysinstall ). Thanks --CH ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"