Diff for /wikisrc/tutorials/how_to_mount_ffs_partition_under_linux.mdwn between versions 1.2 and 1.3

version 1.2, 2012/02/05 07:14:36 version 1.3, 2019/04/08 21:20:09
Line 67  Units = cylinders of 516096 bytes, block Line 67  Units = cylinders of 516096 bytes, block
 /dev/hda15    104295+ 144935-  40641-  20482843+  /dev/hda15    104295+ 144935-  40641-  20482843+
 </code></pre>      </code></pre>    
   
 So for FreeBSD (FFSv2), we have /dev/hda3 which is equivalent to /dev/ad0s3   So for FreeBSD (FFSv2), we have `/dev/hda3` which is equivalent to `/dev/ad0s3` 
   
 And for NetBSD (FFSv1), we have /dev/hda4 which is equivalent to /dev/wd0c   And for NetBSD (FFSv1), we have `/dev/hda4` which is equivalent to `/dev/wd0c`
   
 But these devices are whole BSD slices (BIOS partitions), not BSD partitions.   But these devices are whole BSD slices (BIOS partitions), not BSD partitions. 
   
 By examinating carefully sfdisk - l output, we find that: /dev/hda3 (134767+,144935-) includes /dev/hda8 (134767+,143910-) and /dev/hda9 (143910+,144935-) /dev/hda4 (144935+,155060) includes /dev/hda10 (144935+,154078-) and /dev/hda11 (154078+,155060)   By examinating carefully sfdisk - l output, we find that: `/dev/hda3` (134767+,144935-) includes `/dev/hda8` (134767+,143910-) and `/dev/hda9` (143910+,144935-) `/dev/hda4` (144935+,155060) includes `/dev/hda10` (144935+,154078-) and `/dev/hda11` (154078+,155060) 
   
 And we may deduce that for FreeBSD: /dev/hda8 is equivalent to /dev/ad0s3a (FreeBSD root partition) /dev/hda9 is equivalent to /dev/ad0s3b (FreeBSD swap)   And we may deduce that for FreeBSD: `/dev/hda8` is equivalent to `/dev/ad0s3a` (FreeBSD root partition) `/dev/hda9` is equivalent to `/dev/ad0s3b` (FreeBSD swap) 
   
 And for NetBSD: /dev/hda10 is equivalent to /dev/wd0a (NetBSD root partition) /dev/hda11 is equivalent to /dev/wd0b (NetBSD swap)   And for NetBSD: `/dev/hda10` is equivalent to `/dev/wd0a` (NetBSD root partition) `/dev/hda11` is equivalent to `/dev/wd0b` (NetBSD swap) 
   
 Thus FreeBSD root partition lies at /dev/hda8. First create a directory to mount FFS partition and then mount it:   Thus FreeBSD root partition lies at /dev/hda8. First create a directory to mount FFS partition and then mount it: 
           
Line 85  Thus FreeBSD root partition lies at /dev Line 85  Thus FreeBSD root partition lies at /dev
     # mount -t ufs -o ro,ufstype=ufs2 /dev/hda8 /mnt/freebsd/      # mount -t ufs -o ro,ufstype=ufs2 /dev/hda8 /mnt/freebsd/
           
   
 And NetBSD root partition lies at /dev/hda10. First create a directory to mount FFS partition and then mount it:   And NetBSD root partition lies at `/dev/hda10`. First create a directory to mount FFS partition and then mount it: 
           
     # mkdir /mnt/netbsd      # mkdir /mnt/netbsd
     # mount -t ufs -o ro,ufstype=44bsd /dev/hda10 /mnt/netbsd/      # mount -t ufs -o ro,ufstype=44bsd /dev/hda10 /mnt/netbsd/
Line 130  and verify with:  Line 130  and verify with: 
   
 #  Write support   #  Write support 
   
 Write support is available given several conditions are satisfied: - ufs write support option compiled in Linux kernel (CONFIG_UFS_FS_WRITE=y): it is disabled by default. - FFSv1 filesystem (FFSv2 not yet supported)   Write support is available given several conditions are satisfied: - ufs write support option compiled in Linux kernel (`CONFIG_UFS_FS_WRITE=y`): it is disabled by default. - FFSv1 filesystem (FFSv2 not yet supported) 
   
 Please note that as I do not really need write support on NetBSD partitions from GNU/Linux, I did not bother to rebuild my Linux kernel and hence have not tested this feature.   Please note that as I do not really need write support on NetBSD partitions from GNU/Linux, I did not bother to rebuild my Linux kernel and hence have not tested this feature. 
   

Removed from v.1.2  
changed lines
  Added in v.1.3


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb