Message-Id: <200202281001.g1SA1fE05185@bjork.inria.fr> From: Aurelian Lavric <aurelian.lavric@inria.fr> Date: Thu, 28 Feb 2002 11:01:41 +0100 Subject: Re: [suse-sparc] Mount a Solaris volume (ufs?) read-write?
If you have an inbox delivered kernel, like the ones that come with a linux
distribution, then you should recompile it with the write option enabled (the
"dangerous" options are not placed in distributions). As I remember the
2.2.18 kernel had a good UFS writer (just a little bit too slow for an usual
day-to-day operation). Instead the 2.4.x are not working or at least the
versions I've tried (I've stoped at 4 or 5). Maybe the new upcoming 2.4.18 or
2.5.3 have an improved and fixed UFS writter (as many sparc patches were
included), but for that maybe somebody else can help, I don't have the time
to try them.
Aurelian
On Wednesday 27 February 2002 18:33, you wrote:
> Al,
>
> Thanks for your input - I've tried your suggestion, but I must really be
> missing something simple... I am hoping someone out there with more
> experience in this can help.
>
> Using the 'touch' command on ufs mounted filesystem reports:
>
> # touch /mnt/sdb1/LOUTEST
> Touch: creating '/mnt/sdb1/LOUTEST': Read-only file system
>
> Hmmm... Here's what I've done (maybe this will be useful to someone!):
>
> - created directories for each of the (potential) mounts:
> # md /mnt/sdb1 (and sdb2 through sdb8)
> - please note: fdisk only reports partitions sdb1,sdb2,sdb3 and sdb8 (of
> IDS 2,3,5,8, respectively) - I don't have a '4' partition as you do...
>
> # mount -t ufs -o ufstype=sun /dev/sdb1 /mnt/sbd1
> (WORKS! - but is read-only)
>
> # mount -t ufs -o ufstype=sun /dev/sdb2 /mnt/sbd2
> (wrong fs type, bad option, bad superblock, etc.)
>
> # mount -t ufs -o ufstype=sun /dev/sdb3 /mnt/sbd3
> (wrong fs type, bad option, bad superblock, etc.)
>
> # mount -t ufs -o ufstype=sun /dev/sdb'n' /mnt/sbd'n'
> WHERE 'n' is 4,5 and 6
> (/dev/sdb4 is not a valid block device - as expected)
>
> # mount -t ufs -o ufstype=sun /dev/sdb7 /mnt/sbd7
> (/dev/sdb4 is not a valid block device - as expected
> btw - ISN'T slice 7 what Solaris mounts itself?)
>
> # mount -t ufs -o ufstype=sun /dev/sdb8 /mnt/sbd8
> (WORKS! - but is read-only)
>
> sdb1 shows the contents of all the filesystems...
> sdb8 shows only a lost+found directory...
> NEITHER allows the 'touch' command...
>
> I even then tried the 'rw' option:
>
> # mount -t ufs -o ufstype=sun,rw /dev/sdb1 /mnt/sbd1
> # mount -t ufs -o ufstype=sun,rw /dev/sdb8 /mnt/sbd8
>
> With same results as without it...
>
>
> And Josh has indicated the experimental nature of ufs writes - This is
> really OK for me; I only need to write a few files occasionally. I donıt'
> even really care that much about my Solaris install, except to use it
> occasionally for its 'utility value'.
>
> Many thanks for any help anyone can offer... Lou Picciano
>
> > Seems too work for 2.2.14-5.0smp kernal,
> > I've had the following mounted for at least a year:
> >
> > #After Suse7.1 was loaded into disk0 sda do these mounts:
> > mount -t ext2 /dev/sda4 /mnt/suse
> > mount -t ufs -o ufstype=sun /dev/sdc4 /mnt/sun/usr/local
> > mount -t ufs -o ufstype=sun /dev/sdb2 /mnt/sun/usr/user
> > mount -t ufs -o ufstype=sun /dev/sdc2 /mnt/sun/usr/user/conle
> > mount -t ufs -o ufstype=sun /dev/sde8 /mnt/sun/usr/user/kyeung/Angela
> >
> > Although I dont use them a lot (old stuff) they seem to write files
> > just fine.
> > Al Conle
> >
> > On Tue, 26 Feb 2002, Lou Picciano wrote:
> >> List-ers:
> >>
> >> Can anyone tell me if the 2.2.20-SMP kernel has read-write support for
> >> ufs built-in?
> >>
> >> I am trying to mount a volume containing a Solaris filesystem mounted
> >> under Linux.
> >>
> >> I am using the command:
> >>
> >> mount t ufs o rw,ufstype=sun /dev/sdb1 /mnt
> >>
> >> But can only get it to mount read-only.
> >>
> >> Iım guessing I may not have read-write support of ufs compiled into my
> >> kernel??
> >>
> >> Any ideas? Is my mount command correct?
> >>
> >> TIA - Lou
-- To unsubscribe, e-mail: suse-sparc-unsubscribe@suse.com For additional commands, e-mail: suse-sparc-help@suse.com
This archive was generated by hypermail 2.1.0 : Thu Feb 28 2002 - 02:01:45 PST