[FUG-BR] Penbsd

Unixmafia unixmafia em yahoo.com.br
Ter Set 13 16:16:57 BRT 2005


http://www.freesbie.org/~saturnero/penBSD/


Entra no sysintall e formata o pendrive como ufs e eu alterei o script,
mas em 5 maquinas so consegui dar boot em uma , problema relacionado a
hardware não ao sistema , reconhecimento do pendrive no boot

############################################
#!/bin/sh

set -x -e

DISKIMG="FreeSBIE-pen.img"

DEF_DEV=/dev/da0

[ -f "${DISKIMG}.bz2" ] && bunzip2 ${DISKIMG}.bz2

if [ \! -f "${DISKIMG}" ]; then
    echo "Could not find image ${DISKIMG}, aborting"
    exit 1;
fi

echo -n "Device where your CF card is attached [${DEF_DEV}]: "
#read DEVICE

if [ "x${DEVICE}" = "x" ]; then
    DEVICE=$DEF_DEV
fi

if [ \! -c "${DEVICE}" ]; then
    echo "Unable to find ${DEVICE}, please check the pathname"
    exit 1;
fi


DISKMD=/dev/`mdconfig -a -t vnode -f ${DISKIMG}`
TEMP2DIR=$PWD/tmp2dir.$$

fsck -y ${DISKMD}s1a

mkdir $TEMP2DIR
mount ${DISKMD}s1a $TEMP2DIR


#dd if=/dev/zero of=${DEVICE} bs=512 count=32
#fdisk -BI ${DEVICE}
#dd if=/dev/zero of=${DEVICE}s1 bs=512 count=32
bsdlabel -w -B ${DEVICE}s1
bsdlabel ${DEVICE}s1 >> tmp.$$
ed tmp.$$ <<EOF
/a:
s/unused/4.2BSD
wq
EOF
bsdlabel -R ${DEVICE}s1 tmp.$$
rm tmp.$$
newfs ${DEVICE}s1a

TEMPDIR=$PWD/tmpdir.$$
mkdir $TEMPDIR
mount ${DEVICE}s1a $TEMPDIR

cd $TEMP2DIR
find . -depth -print | cpio -pvudm $TEMPDIR
umount $TEMPDIR
rmdir $TEMPDIR

cd ..

umount $TEMP2DIR
rmdir $TEMP2DIR
mdconfig -d -u `echo ${DISKMD} | sed s/\\\/dev\\\/md//g`

############################################

-- 
Marcello Soares da Costa
FreeBSD System Engineer
unixmafia em yahoo.com.br


	

	
		
_______________________________________________________ 
Yahoo! Messenger com voz: PROMOÇÃO VOCÊ PODE LEVAR UMA VIAGEM NA CONVERSA. Participe! www.yahoo.com.br/messenger/promocao


-------------- Próxima Parte ----------
_______________________________________________
Freebsd mailing list
Freebsd em fug.com.br
http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br


Mais detalhes sobre a lista de discussão freebsd