06-03-2008
110,
2
Join Date: Jul 2007
Last Activity: 28 December 2015, 1:11 PM EST
Posts: 110
Thanks Given: 0
Thanked 2 Times in 2 Posts
How can I mount a ufs filesystem on a solaris 10 sparc onto a Linux server
Hi there,
I am trying to mount a SAN volume (which is mapped to solaris sparc) partitioned with ufs filesystem onto a linux (intel processor 64bit) server.
*I have re-compiled the linux kernel t support ufs fstype with ro mount support.
filesystem on solaris:
/dev/dsk/c2t2300000B080442C0d3s2
2.0G 2.1M 1.9G 1% /ilantry
fdisk -l o/p for the corresponding lun when mapped to linux:
Disk /dev/sdc (Sun disk label): 64 heads, 128 sectors, 2622 cylinders
Units = cylinders of 8192 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdc1 0 32 131072 2 SunOS root
/dev/sdc2 u 32 64 131072 3 SunOS swap
/dev/sdc3 u 0 2622 10739712 5 Whole disk
/dev/sdc7 64 2622 10477568 4 SunOS usr
Disk /dev/sdc1 (Sun disk label): 64 heads, 128 sectors, 2622 cylinders
Units = cylinders of 8192 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdc1p1 0 32 131072 2 SunOS root
/dev/sdc1p2 u 32 64 131072 3 SunOS swap
/dev/sdc1p3 u 0 2622 10739712 5 Whole disk
/dev/sdc1p7 64 2622 10477568 4 SunOS usr
Disk /dev/sdc3 (Sun disk label): 64 heads, 128 sectors, 2622 cylinders
Units = cylinders of 8192 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdc3p1 0 32 131072 2 SunOS root
/dev/sdc3p2 u 32 64 131072 3 SunOS swap
/dev/sdc3p3 u 0 2622 10739712 5 Whole disk
/dev/sdc3p7 64 2622 10477568 4 SunOS usr
-------------------
while try to mount it....
[root@pillar33 ~]# mount -t ufs -o ro,ufstype=sun /dev/sdc7 /lun1
mount: wrong fs type, bad option, bad superblock on /dev/sdc7,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[root@pillar33 ~]# dmesg | tail
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.1
eth0: no IPv6 routers present
ufs: no version for "struct_module" found: kernel tainted.
ufs_read_super: bad magic number
[root@pillar33 ~]#
can somebody tell me how to get this working?
Thanks,
ilan
Last edited by ilan; 06-03-2008 at 07:35 PM..
Reason: added dmesg o/p