<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9"> <TITLE>The Linux+FreeBSD mini-HOWTO: Montare i filesystems</TITLE> <LINK HREF="Linux+FreeBSD-6.html" REL=next> <LINK HREF="Linux+FreeBSD-4.html" REL=previous> <LINK HREF="Linux+FreeBSD.html#toc5" REL=contents> </HEAD> <BODY> <A HREF="Linux+FreeBSD-6.html">Avanti</A> <A HREF="Linux+FreeBSD-4.html">Indietro</A> <A HREF="Linux+FreeBSD.html#toc5">Indice</A> <HR> <H2><A NAME="s5">5. Montare i filesystems</A><!--FreeBSD dualboot!filesystems, mounting--><!--FreeBSD dualboot!mounting filesystems--></H2> <H2><A NAME="ss5.1">5.1 Montare il filesystem UFS sotto Linux</A> <!--FreeBSD dualboot!mounting filesystems!UFS, in Linux--></H2> <P>Sfortunatamente il driver UFS nei kernel Linux 2.0.xx non include il supporto per FreeBSD. Quando provate a montare un filesystem FreeBSD, ottenete solo dei messaggi di errore (il filesystem di fatto viene montato, ma non potete farci niente). Questo problema è stato risolto con i nuovi kernel Linux (versione 2.1.87 e successive.) <P>C'è un'altra versione del driver UFS per i kernel Linux 2.0.xx (xx <= 30) su <A HREF="ftp://metalab.unc.edu/pub/Linux/ALPHA/ufs/">metalab.unc.edu (in passato sunsite.unc.edu)</A>. Si chiama <B>U2FS</B> e la versione corrente è <CODE>u2fs-0.4.3.tar.gz</CODE>. Una versione di U2FS (<CODE>ufs-0.4.4.tar.gz</CODE>) per Linux 2.0.31 e successivi (2.0.xx; not 2.1.xx) si può trovare in <A HREF="http://www.mathi.uni-heidelberg.de/~flight/projects/u2fs/">questo sito</A> insieme ad ulteriori informazioni riguardo U2FS (e UFS.) <P>Ora dovete compilare un nuovo kernel con il supporto per U2FS filesystem e BSD disklabels. Vedere la sezione <A HREF="Linux+FreeBSD-3.html#installlinux">Installare e preparare Linux</A> per maggiori informazioni in proposito. Potete lasciar perdere l'<B>UFS filesystem support</B> nel kernel quando usate U2FS. <P>Quando avrete installato il nuovo kernel, potrete montare i filesystem UFS (tutte le partizioni nella slice FreeBSD eccetto la partizione di swap) con un comando tipo questo: <PRE> mount -t u2fs /dev/hda8 /mnt </PRE> <P>Dovrete usare un comando tipo <PRE> mount -t ufs /dev/hda8 /mnt </PRE> se usate un kernel Linux versione 2.1.87 o successivo. Dal kernel Linux versione 2.1.112 dovete aggiungere <CODE>-o ufstype=44bsd</CODE> ad un comando come questo: <PRE> mount -t ufs -o ufstype=44bsd /dev/hda8 /mnt </PRE> <P>Il driver UFS (e U2FS) è di sola lettura (read-only). E così; potete leggere dai filesystem UFS ma non potete scriverci sopra. Un driver sperimentale lettura-scrittura (read-write) UFS ha rimpiazzato il driver read-only nel kernel Linux versione 2.1.112 e superiori; la scrittura su partizioni FreeBSD è supportata dalla versione 2.1.127. <P> <H2><A NAME="ext2fs"></A> <A NAME="ss5.2">5.2 Montare il filesystem ext2fs sotto FreeBSD</A> <!--FreeBSD dualboot!mounting filesystems!ext2fs, in FreeBSD--></H2> <P>Per montare un filesystem ext2fs sotto FreeBSD, dovete prima compilare un nuovo kernel con supporto di ext2fs. Leggete <A HREF="http://www.freebsd.org/handbook/">the FreeBSD handbook</A> per imparare come fare. Inserite la riga <PRE> options "EXT2FS" </PRE> nel vostro file di configurazione del kernel per il nuovo kernel. <P>Quando avrete riavviato con il nuovo kernel, potrete montare un filesystem ext2fs dando un comando come: <PRE> mount -t ext2fs /dev/wd0s3 /mnt </PRE> <P>A causa di un bug in FreeBSD 2.2.8 e precedenti dovrete smontare (unmount) tutti i filesystems ext2fs <EM>prima</EM> di chiudere FreeBSD se state usando queste versioni. Se chiudete FreeBSD con un filesystem ext2fs montato, FreeBSD non potrà sincronizzare (sync) i filesystem UFS. Questo risulterà in <CODE>fsck</CODE> quando verrà lanciato al successivo avvio di FreeBSD. Potete aggirare questo bug inserendo la riga: <PRE> umount -a -t ext2fs </PRE> nel file <CODE>/etc/rc.shutdown</CODE>. Il bug è stato corretto in FreeBSD-3.x. <P> <HR> <A HREF="Linux+FreeBSD-6.html">Avanti</A> <A HREF="Linux+FreeBSD-4.html">Indietro</A> <A HREF="Linux+FreeBSD.html#toc5">Indice</A> </BODY> </HTML>