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

Neflema at 2007-7-8 22:24:32 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2
But /dev/sda2 appears to be a Solaris FDISK partition, not a single UFS filesystem.How would you specify the solaris VTOC slice within it? -- Darren
Darren_Dunhama at 2007-7-8 22:24:32 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

As far as I know, you can only mount UFS partitions under Linux with only one slice inside it. Linux is unable to address slices inside a partition, it can address only whole partitions.

I may be wrong tho, so don`t trust me with this info.

If somehow you succeed with mounting the slices, please let me know.

G.

SteamingColda at 2007-7-8 22:24:32 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4
Then its only going to work on special-use partitions. A normal Solaris partition will be bootable, and will have boot code at the beginning of the partition, not a UFS filesystem-- Darren
Darren_Dunhama at 2007-7-8 22:24:32 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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

arun_mauryaa at 2007-7-8 22:24:32 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 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

Darren_Dunhama at 2007-7-8 22:24:32 > top of Java-index,Solaris Operating System,Solaris 10 Features...