Sponsored Content
Operating Systems Solaris How can I mount a ufs filesystem on a solaris 10 sparc onto a Linux server Post 302201995 by ilan on Tuesday 3rd of June 2008 06:34:01 PM
Old 06-03-2008
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
 

7 More Discussions You Might Find Interesting

1. BSD

FreeBSD compatibility with Solaris UFS filesystem?

Hi, I'm new to BSD and would like to create a dual-boot between Solaris Express Community Edition and FreeBSD. I would just like to know if the Solaris UFS file system can be written to by BSD? I know that BSD uses UFS2, but I'm hoping that it is backwards compatible with UFS1 provided that... (0 Replies)
Discussion started by: Johnny SSH
0 Replies

2. Solaris

Can You Mount FAT32 iSCSI Target in Solaris 10 (sparc)?

I get "mount: I/O error" when trying to mount an existing FAT32 iSCSI target. I also tried formatting the iSCSI target with fdisk and got fdisk: "Error in ioctl DKIOCSMBOOT" Details -- According to the format command, the whole disk is allocated to slice 6 and /dev/rdsk shows this as:... (0 Replies)
Discussion started by: ctafret
0 Replies

3. UNIX for Advanced & Expert Users

Can You Mount FAT32 iSCSI Target in Solaris 10 (sparc)?

I get "mount: I/O error" when trying to mount an existing FAT32 iSCSI target. I also tried formatting the iSCSI target with fdisk and got fdisk: "Error in ioctl DKIOCSMBOOT" Details -- According to the format command, the whole disk is allocated to slice 6 and /dev/rdsk shows this as:... (1 Reply)
Discussion started by: ctafret
1 Replies

4. BSD

NetBSD, SPARC, UFS slices

I need to shrink a UFS slice with NetBSD on SPARC. seems the only way is backup+reformat. can someone please give me exact commands for that? presumably backup is file-by-file instead of sector-by-sector, but how to preserve permissions/dates/attributes.. ? thanks. (0 Replies)
Discussion started by: orange47
0 Replies

5. Solaris

Unable to mount ext4 filesystem (created from Ubuntu) in Solaris 11

Hello everyone, I am trying to mount an ext4 filesystem which I created from Ubuntu. But mount command fails saying: prakhar@Solaris:~$ sudo mount /dev/dsk/c10t0d0p1 /mnt Password: mount: /dev/dsk/c10t0d0p1 is not this fstype And I also tried this: prakhar@Solaris:~$ fstyp... (6 Replies)
Discussion started by: Prakhar Mishra
6 Replies

6. Solaris

Deep checking Solaris ufs filesystem

I'm prompted to start this thread following my attempt to help on this thread here (see my posts). I was proposing the OP deep checked a Solaris ufs filesystem using: # fsck -o full <filesystem node> however this option does not appear to be valid on Solaris 10. I've used... (8 Replies)
Discussion started by: hicksd8
8 Replies

7. UNIX for Beginners Questions & Answers

Mount Linux filesystem not defined in etc/fstab

Hello, is there a way to mount a filesystem which is not defined in the etc/fstab ? Could someone share me any code or command (3 Replies)
Discussion started by: srilaxman
3 Replies
root_archive(1M)														  root_archive(1M)

NAME
root_archive - manage bootable miniroot archives SYNOPSIS
/boot/solaris/bin/root_archive pack archive root /boot/solaris/bin/root_archive unpack archive root /boot/solaris/bin/root_archive packmedia solaris_image root /boot/solaris/bin/root_archive unpackmedia solaris_image root The root_archive utility is used to manage bootable miniroot archives and is currently only available on platforms. The utility can pack and unpack boot/root archives in both ufs and hsfs (iso9660) format. It will always generate ufs archives. root_archive also uses the lofi file driver to export a file as a block device (see lofi(7D)) and mount to mount or unmount file systems and remote resources (see mount(1M)). root_archive requires the same privileges that are needed to run these commands. SUBCOMMANDS
The root_archive command has the following subcommands: pack archive root Pack from the image found under the root directory to the archive. unpack archive root Unpack from the archive to an unpacked image under the root directory. packmedia solaris_image root Pack the solaris image to the root directory. unpackmedia solaris_image root Unpack the solaris image from the root directory. For packmedia and unpackmedia, other items that do not go into the ramdisk image are copied or uncopied (see cpio(1)) as well. Specifi- cally, this includes all the packaging databases needed for pkgadd and the other packaging utilities to succeed which are not used in the running and hence pruned to conserve memory. EXAMPLES
Example 1: Unpacking the Solaris x86 install image The following command unpacks the current Solaris image from the root directory: # root_archive unpackmedia /export/nv/solarisdvd.nvx_dvd/latest /export/Boot Where /export/nv/solarisdvd.nvx_dvd/latest represents a path to a Solaris x86 install image and /export/Boot is a directory that will be purged or created, as necessary. Example 2: Packing the Solaris x86 install image The following command packs the current Solaris image to the root directory: # root_archive packmedia /export/nv/solarisdvd.nvx_dvd/latest /export/Boot The following exit values are returned: 0 The command completed successfully. 1 The command exited due to an error. See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Stable | +-----------------------------+-----------------------------+ cpio(1), bootadm(1M), mount(1M), attributes(5), lofi(7D) 26 Sep 2005 root_archive(1M)
All times are GMT -4. The time now is 04:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy