Mounting Solaris Drive on CentOS 4.6

Issues related to configuring your network
Post Reply
Likeless
Posts: 12
Joined: 2008/04/17 21:11:54

Mounting Solaris Drive on CentOS 4.6

Post by Likeless » 2008/04/18 00:53:20

I have the centOSplus kernel installed and functioning, which apparently is required for mounting a Solaris drive, and I am attempting to mount the drive. I've done a bunch of Googling, which led me to try the various commands below, but ultimately now I'm stuck. I don't see a route I can take to get into this drive from CentOS. I notice that fdisk does actually correctly identify the drive as Solaris, but that seems to be as close as I've got. Any ideas?

[code][root@localhost ~]# mount -r -t ufs -oufstype=sunx86 /dev/hde1 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/hde1,
or too many mounted file systems
[root@localhost ~]# fdisk -l

Disk /dev/hdb: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 7476 59946547+ 8e Linux LVM

Disk /dev/hde: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hde1 * 2 36481 293021568 bf Solaris
[root@localhost ~]# fsck /dev/hde1
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
Couldn't find ext2 superblock, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/hde1

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>[/code]

User avatar
toracat
Forum Moderator
Posts: 7427
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Mounting Solaris Drive on CentOS 4.6

Post by toracat » 2008/04/18 01:26:10

What do you see with:

dmesg | grep hde

Likeless
Posts: 12
Joined: 2008/04/17 21:11:54

Re: Mounting Solaris Drive on CentOS 4.6

Post by Likeless » 2008/04/18 10:24:53

That gave nothing so I grepped for hd too:

[code][root@localhost ~]# dmesg | grep hde
[root@localhost ~]# dmesg | grep hd
cdrom: hda: mrw address space DMA selected
SELinux: initialized (dev hda, type iso9660), uses genfs_contexts[/code]

cormander
Posts: 100
Joined: 2005/05/16 21:27:57
Location: Utah
Contact:

Re: Mounting Solaris Drive on CentOS 4.6

Post by cormander » 2008/04/18 13:13:57

On my centos 5 box with the centosplus kernel:

grep UFS /boot/config-2.6.18-53.1.14.el5.centos.plus
# CONFIG_UFS_FS is not set

And likewise, no ufs.ko module anywhere in /lib/modules

On my FC8 box there is the module:

/lib/modules/2.6.24.3-50.fc8/kernel/fs/ufs/ufs.ko

But some googling shows that ufs support in the linux kernel is experimental, and this is validated by what the 2.6.24.4 kernel source says:

Symbol: UFS_FS
Prompt: UFS file system support (read only)

and

Symbol: UFS_FS_WRITE
Prompt: UFS file system write support (DANGEROUS)

Likeless
Posts: 12
Joined: 2008/04/17 21:11:54

Re: Mounting Solaris Drive on CentOS 4.6

Post by Likeless » 2008/04/18 14:13:36

This is what my 4.6 CentOS with the plus kernel gives:

[code][root@localhost openssl]# grep UFS /boot/config-2.6.9-67.0.7.plus.c4
CONFIG_UFS_FS=m
# CONFIG_UFS_FS_WRITE is not set
[root@localhost openssl]# cd /lib/modules/
[root@localhost modules]# ls -lha | grep ufs
[root@localhost modules]#[/code]

So are you saying the experimental status means it is unreliable for anyone and so I've done all I can with this?

User avatar
toracat
Forum Moderator
Posts: 7427
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Mounting Solaris Drive on CentOS 4.6

Post by toracat » 2008/04/18 14:18:55

Let me clarify about the UFS support. In CentOS-5, when building the centosplus kernel, UFS was somehow "missed". This was reported by someone and the support will be turned back on in the next kernel update.

User avatar
toracat
Forum Moderator
Posts: 7427
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Mounting Solaris Drive on CentOS 4.6

Post by toracat » 2008/04/18 14:22:03

[quote]
Likeless wrote:

So are you saying the experimental status means it is unreliable for anyone and so I've done all I can with this?[/quote]
I think that read access is "OK" and write access is not reliable (and disabled). I still do not understand why dmesg does not show any of your hard drives. fdisk clearly shows their presence...

Likeless
Posts: 12
Joined: 2008/04/17 21:11:54

Re: Mounting Solaris Drive on CentOS 4.6

Post by Likeless » 2008/04/18 14:27:50

The main hard drive (the one with CentOS installed) is, of course, working fine, even without showing in dmesg :)

The other, hde, is from Solaris 10.

User avatar
toracat
Forum Moderator
Posts: 7427
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: Mounting Solaris Drive on CentOS 4.6

Post by toracat » 2008/04/18 16:10:20

I just checked the centosplus kernel for CentOS-4. It does have Solaris (x86) partition table support enabled. I was hoping you could see the slices of your solaris partition in dmesg. Then, you would be able to try mounting a slice, not the whole partition (/dev/hde1) which, I believe, is the correct way.

Post Reply

Return to “CentOS 4 - Networking Support”