ufs-discuss@opensolaris.org
[Top] [All Lists]

Re: [ufs-discuss] mount solaris ufs on linux

Subject: Re: [ufs-discuss] mount solaris ufs on linux
From: "Frank Batschulat (Home)"
Date: Thu, 17 May 2007 08:20:31 +0200
On Thu, 17 May 2007 05:59:24 +0200, Carl Doersch <carldoersch@xxxxxxxxxxx> 
wrote:

> Hello,
>
> I've recently triple-booted Ubuntu/Windows/Solaris.  I've managed to edit 
> fstab so that Ubuntu auto-mounts Windows and the ext2 shared partition, but I 
> can't seem to get it to mount the Solaris partition.  I tried what this guide 
> suggests:
>
> [url]http://www.faqs.org/docs/Linux-mini/Linux+Solaris.html[/url]
>
> but I get the following output:
>
>
> carl173@carl173-laptop:~$ sudo mount -oufstype=sunx86 /dev/sda3 /solaris
> /dev/sda3 looks like swapspace - not mounted
> mount: you must specify the filesystem type
>
>
> So I tried specifying the filesystem type:
>
>
> carl173@carl173-laptop:~$ sudo mount -t ufs -oufstype=sunx86 /dev/sda3 
> /solaris
> mount: wrong fs type, bad option, bad superblock on /dev/sda3,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
>
>
> Here's the result of demsg|tail
>
>
> carl173@carl173-laptop:~$ dmesg | tail
> [   37.196000] [fglrx] free       LFB  = 110088192
> [   37.196000] [fglrx] max single LFB  = 110088192
> [   37.196000] [fglrx] total      Inv  = 0
> [   37.196000] [fglrx] free       Inv  = 0
> [   37.196000] [fglrx] max single Inv  = 0
> [   37.196000] [fglrx] total      TIM  = 0
> [   38.600000] eth0: no IPv6 routers present
> [   89.688000] ISO 9660 Extensions: Microsoft Joliet Level 3
> [   89.876000] ISO 9660 Extensions: RRIP_1991A
> [  645.112000] ufs was compiled with read-only support, can't be mounted as 
> read-write
>
>
> But here's what happens when I try to mount it as read only:
>
>
> carl173@carl173-laptop:~$ sudo mount -t ufs -o ro,ufstype=sunx86 /dev/sda3 
> /solaris
> mount: wrong fs type, bad option, bad superblock on /dev/sda3,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>        dmesg | tail  or so
>
> carl173@carl173-laptop:~$ dmesg|tail
> [   36.044000] [fglrx] free       LFB  = 110088192
> [   36.044000] [fglrx] max single LFB  = 110088192
> [   36.044000] [fglrx] total      Inv  = 0
> [   36.044000] [fglrx] free       Inv  = 0
> [   36.044000] [fglrx] max single Inv  = 0
> [   36.044000] [fglrx] total      TIM  = 0
> [   39.276000] eth0: no IPv6 routers present
> [   57.992000] ISO 9660 Extensions: Microsoft Joliet Level 3
> [   58.124000] ISO 9660 Extensions: RRIP_1991A
> [  360.392000] ufs_read_super: bad magic number

this basically means the Linux UFS driver is not able to interpret
the UFS superblock correctly.

on the solaris side you can print out the superblock using
fstyp -v /dev/dsk/cXtXdXsX and then along with the definition
of the 'struct fs' in /usr/include/sys/fs/ufs_fs.h you can compare
what you have with what the Linux UFS driver is trying to interpret
in the mentioned function ufs_read_super()

---
frankB

>
> I suppose I should also include what fdisk thinks my partition table is:
>
>
> Command (m for help): p
>
> Disk /dev/sda: 118.5 GB, 118526284800 bytes
> 255 heads, 63 sectors/track, 14410 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sda1               1        3922    31503433+   7  HPFS/NTFS
> /dev/sda2            3923        6794    23069340   83  Linux
> /dev/sda3   *        6795        9666    23069340   bf  Solaris
> /dev/sda4            9667       14409    38098147+   f  W95 Ext'd (LBA)
> /dev/sda5           14345       14409      522112+  82  Linux swap / Solaris
> /dev/sda6            9667       14344    37575972   83  Linux
>
> Partition table entries are not in disk order
>
>
> Any ideas, anyone?
>This message posted from opensolaris.org
> _______________________________________________
> ufs-discuss mailing list
> ufs-discuss@xxxxxxxxxxxxxxx
>


_______________________________________________
ufs-discuss mailing list
ufs-discuss@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>