mount ufs on linux.. help
you may think this problem is more related to Linux forum.. but i feel this is right place for this..
i have solaris 10 and Fedora core 6..
i'm currently in FC 6.
trying to mount ufs partition of solaris on linux..
[root@localhost ]# uname -a
Linux localhost.localdomain 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux
[root@localhost ]# fdisk -l
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2 12096 be Solaris boot
Partition 1 does not end on cylinder boundary.
/dev/sda2 2 2552 20480544 bf Solaris
/dev/sda3 2553 2564 96390 83 Linux
/dev/sda4 2565 9729 57552862+ 5 Extended
/dev/sda5 2565 9729 57552831 8e Linux LVM
i tried mount
mount -t ufs -o -r -o ufstype=sunx86 /dev/sda2 /mnt/b/
mount: wrong fs type, bad option, bad superblock on /dev/sda2,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg | tail -5
ufs was compiled with read-only support, can't be mounted as read-write
[1266 byte] By [
mrtipalea] at [2007-11-26 16:02:43]

# 1
Looking @ your mount command, i think you may have an error:
this is you command # mount -t ufs -o -r -o ufstype=sunx86 /dev/sda2 /mnt/b/
You have 2 "-o" the first -o is saying that -r is the option.
I think you ment :
mount -t ufs -r -o ufstype=sunx86 /dev/sda2 /mnt/b
or
mount -t ufs -r -o ro,ufstype=sunx86 /dev/sda2 /mnt/b
# 5
it means if you have already installed solaris and now want to mount that partition from linux..it is not possible. Only option is that you have to create a new partition with any fstype..i.e. ufs.
I also had installed solaris 10 on my desktop system with linux...and facing the same problem...i have no free space left on my hard disk to create a new partition.
is there any way to skip boot slice of solaris and mount the rest of ufs partition.
I thing there are lots of new solaris fans....who had installed solaris on their desktop and will be facing same problem..Please suggest some method for accessing solaris partition.
regards,
Arun Maurya
# 6
> is there any way to skip boot slice of solaris and
> mount the rest of ufs partition.
That's a question for the linux folks. I don't see any option in my quick look at the man pages, but I could be missing something.
Either the mount needs to know how to work from an offset, there could be some way to create a virtual device at an offset (like a loopback or an SVM device), or there could be support for Solaris VTOC slices.
Today I don't know of any of them within Linux. I'd be happy to be wrong.
--
Darren