Różnice pomiędzy wersjami 1 i 2
⇤ ← Wersja 1 z 2008-04-07 23:08:13 →
Rozmiar: 2054
Edytor: 67-moc-10
Komentarz:
← Wersja 2 z 2008-04-19 11:14:46 → ⇥
Rozmiar: 2456
Edytor: 67-moc-10
Komentarz:
Usunięcia zostały oznaczone w ten sposób. Dodatki zostały oznaczone w ten sposób.
Linia 31: Linia 31:
echo "Extracting disc $cd3"
tar -xf $cd3 -C /opt/samba/public/all
echo "Extracting disc $cd2"
tar -xf $cd2 -C /opt/samba/public/all
echo "Extracting disc $cd1"
tar -xf $cd1 -C /opt/samba/public/all
echo "Extracting disc $cd4"
tar -xf $cd4 -C /opt/samba/public/all
echo "Extracting disc ${cd1}"
mdconfig -a -t vnode -f $cd1 -u 0
mount -t cd9660 /dev/md0 /mnt
tar -xf /mnt -C /opt/samba/public/all
umount /mnt
mdconfig -d -u 0

echo "Extracting disc ${cd2}"
mdconfig -a -t vnode -f $cd2 -u 0
mount -t cd9660 /dev/md0 /mnt
tar -xf /mnt -C /opt/samba/public/all
umount /mnt
mdconfig -d -u 0

echo "Extracting disc ${cd3}"
mdconfig -a -t vnode -f $cd3 -u 0
mount -t cd9660 /dev/md0 /mnt
tar -xf /mnt -C /opt/samba/public/all
umount /mnt
mdconfig -d -u 0

echo "Extracting disc ${cd4}"
mdconfig -a -t vnode -f $cd4 -u 0
mount -t cd9660 /dev/md0 /mnt
tar -xf /mnt -C /opt/samba/public/all
umount /mnt
mdconfig -d -u 0

Boot FreeBSD: jak zrobić DVD z obrazów ISO CD

System FreeBSD rozrósł się bardzo i obecnie zajumje więcej niż jedną płytę CD. Zatem warto zmienić sobie płyty CD na jedną DVD. Oto jak to zrobić:

  • Należy pobrać z mirrora wszystkie obrazy ISO interesującego nas wydanie (np. 7.0-RELEASE)

wget ftp://ftp.uk.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RELEASE-i386-disc1.iso
wget ftp://ftp.uk.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RELEASE-i386-disc2.iso
wget ftp://ftp.uk.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RELEASE-i386-disc3.iso
wget ftp://ftp.uk.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/7.0/7.0-RELEASE-i386-docs.iso
  • Następnie należy rozpakować te obrazy nalezy poddać poniższej obróbce:

# extract all ISO for creation 1 DVD disc
# set path to our ISO's 
cd1="/opt/samba/public/7.0-RELEASE-i386-disc1.iso"
cd2="/opt/samba/public/7.0-RELEASE-i386-disc2.iso"
cd3="/opt/samba/public/7.0-RELEASE-i386-disc3.iso"
cd4="/opt/samba/public/7.0-RELEASE-i386-docs.iso"

mkdir -p /opt/samba/public/all

# extract all from archive
echo "Extracting disc ${cd1}"
mdconfig -a -t vnode -f $cd1 -u 0
mount -t cd9660 /dev/md0 /mnt
tar -xf /mnt -C /opt/samba/public/all
umount /mnt
mdconfig -d -u 0

echo "Extracting disc ${cd2}"
mdconfig -a -t vnode -f $cd2 -u 0
mount -t cd9660 /dev/md0 /mnt
tar -xf /mnt -C /opt/samba/public/all
umount /mnt
mdconfig -d -u 0

echo "Extracting disc ${cd3}"
mdconfig -a -t vnode -f $cd3 -u 0
mount -t cd9660 /dev/md0 /mnt
tar -xf /mnt -C /opt/samba/public/all
umount /mnt
mdconfig -d -u 0

echo "Extracting disc ${cd4}"
mdconfig -a -t vnode -f $cd4 -u 0
mount -t cd9660 /dev/md0 /mnt
tar -xf /mnt -C /opt/samba/public/all
umount /mnt
mdconfig -d -u 0

# chage INDEX
echo "Change INDEX"
sed -ie 's/|2/|1/g' /opt/samba/public/all/packages/INDEX
sed -ie 's/|3/|1/g' /opt/samba/public/all/packages/INDEX

rm -Rf all/rr_moved

# creating dvd-iso
echo -n "Creating DVD iso image... "

mkisofs -v -J -R -no-emul-boot -b boot/cdboot -o /opt/samba/public/7.0-RELEASE-i386-dvd.iso /opt/samba/public/all

echo " Done."
  • Na koniec pozostaje wypalić obraz na płytę za pomocą growisofs:

growisofs -dvd-compat -Z /dev/cd0=/opt/samba/public/7.0-RELEASE-i386-dvd.iso

I już można instalowac FreeBSD z płyty DVD.