You could try:

http://www.sun.drydog.com/faq/9.html#s9.24

(9.24) Can I access Linux (ext2/ext3) partitions from Solaris?

Yes. You can do this wither with Moinak Ghosh's FSWfsmisc/FSWfspart (for 
Solaris 10 or OpenSolaris ("Nevada"), developed as part of Moinak's BeleniX 
work) or with the older ext2fs (Solaris 7-10). I use and recommend FSWfsmisc as 
it works better with extended partitions and also mounts NTFS filesystems. I 
use and recommend FSWfsmisc/FSWfspart as it allows mount directly from the 
mount(1M) command and /etc/vfstab, supports extended partitions, supports NTFS 
filesystems, and supports 32-bit and AMD64 Solaris. Both FSWfsmisc and ext2fs 
are explained below.

Download the package files for FSWfsmisc/FSWfspart from 
http://www.belenix.org/binfiles/FSWpart.tar.gz and and install the two packages 
(pkgadd). Use prtpart to display the partitions and mount to mount the NTFS 
partition. For example, I use this command:
mount -F ext2fs /dev/dsk/c0d0p6 /linux
If you have this line in /etc/fstab you can mount with just mount /c
/dev/dsk/c0d0p6 - /linux ext2fs - no ro
(change the mount point, /linux, and partition c0d0p6 for your system). Here's 
the output from mount and FSWfsmisc's xlsmounts:

# mount |grep /linux
/linux on 127.0.0.1:/ remote/read only/setuid/devices/port=33285/public/
vers=2/proto=udp/xattr/dev=4700005 on Sun Nov 26 20:13:10 2006
# xlsmounts
  PHYSICAL DEVICE     LOGICAL DEVICE      FS    PID         ADDR Mounted on
  /dev/dsk/c0d0p0     /dev/dsk/c0d0p6  ext2fs   3429  127.0.0.1:/ /linux

Linux ext2/ext3 read-only filesystem mounts from Solaris (mount/unmount) is 
also available with ext2fs. For Solaris 10, ext2fs supports extended partitions.

   1. Obtain the ext2fs.tar.gz file for your version of Solaris. Note that this 
software is not supported and may contain bugs. Use at your own risk.
          * Solaris 10: ext2fs.solaris10.tar.gz,
          * Solaris 9: ext2fs.solaris9.tar.gz,
          * Solaris 8: ext2fs.solaris8.tar.gz,
          * Solaris 7: ext2fs.solaris7.tar.gz 

   2. Untar file "gzcat ext2fs*.tar.gz | tar xvf -", and either rebuild from 
source or use the included pre-built binaries (easiest).

   3. Become root and install the files by running "./getext2fs" as root from 
the source directory downloaded above.

   4. Make your mount point. For example: "mkdir /linux"

   5. Find your Linux partition and try and mount it. For SCSI, mount it 
similar to this:

      /usr/sbin/mount -r -F ext2fs /dev/dsk/c0t0d0p1 /linux

      For ATAPI, mount it similar to this (no "t0"):

      /usr/sbin/mount -r -F ext2fs /dev/dsk/c0d0p1 /linux

      "c0d0p1" indicates fdisk partition 1 (2nd partition) on disk 0 of ATAPI 
controller 0.
      For an extended partition and ATAPI, it might look like this:
      /usr/sbin/mount -r -F ext2fs /dev/dsk/c0d0p2:1 /linux
      where p2 means the extended partition (type 0x05) is partition 2 (out of 
1-4) and ":1" is the 2nd extended partition (:0 would be the first extended 
partition). See the question above on mounting DOS filesystems and the question 
below on decoding /dev/dsk/c* device names.

   6. If you installed the ext2fs correctly and specified the correct 
partition, you should see something like this from mount, modinfo, and ls. (My 
Linux partition is on the 2nd disk, 3rd partition.)

      # mount | grep /linux
      /linux on /dev/dsk/c0d1p2 read only/setuid/dev=1980052 on Sat Mar 31 
14:57 2001
      # modinfo | grep ext2fs
      186 fe9688f1   5e98  19   1  ext2fs (Linux Second Extended Filesystem)
      # ls /linux
      bin         etc         lib         proc        sbin        tmp
      boot        home        lost+found  root        var         usr
      dev         include     mnt

   7. Once you found and mounted the correct Linux partition, add and add an 
entry to /etc/vfstab similar to one of the following. For SCSI, it might look 
like this:
      /dev/dsk/c0t0d0p1 - /linux ext2fs - no ro
      For ATAPI, it might look like this (no "t0"):
      /dev/dsk/c0d0p1 - /linux ext2fs - no ro
      (Use "yes" instead of "no" if you want it mounted automatically at boot).
      For an extended partition and ATAPI, it might look like this:
      /dev/dsk/c0d0p2:1 - /linux ext2fs - no ro
      where p2 means the extended partition (type 0x05) is partition 2 (out of 
1-4) and ":1" is the 2nd extended partition (:0 would be the first extended 
partition).

   8. Repeat for other Linux filesystems, if desired. 

Or http://paulf.free.fr/software.html for ext2
-- 
This message posted from opensolaris.org

Reply via email to