LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 07-05-2007, 08:42 PM   #1
shachter
Member
 
Registered: Jul 2007
Posts: 101

Rep: Reputation: 2
rw access to Solaris ufs slices from Linux


Since this is www dot linuxquestions dot org, presumably the readership
of this forum is interested in Solaris-Linux interoperability,
even though the name of the forum is "Solaris/OpenSolaris".
Please forgive me if I am wrong, I have never posted here before.

Can you tell me how to mount Solaris slices -t ufs -o rw
on a Linux kernel? My kernel recognizes my Solaris slices
("dmesg | grep solaris" produces
hda2: <solaris: [s0] hda12 [s1] hda13 [s2] hda14 [s3] hda15 [s4] hda16
[s5] hda17 [s6] hda18 >) and also has no problem reading the
files on those slices after a "mount -t ufs /dev/hda12 /mnt/solaris".
But any filesystem so mounted is a ROFS. I recompiled my kernel
(vmlinuz-2.6.13-15-default, SuSe 10) to turn on the ufs rw
option, but it still treated the filesystem on the slice
as a ROFS until I did both -o ufstype=sun and -o remount
(doing one without the other didn't help -- the -o rw
generated no errors, and mount reported rw, but I still
got the ROFS when I tried to write or chmod). After I did
-o ufstype=sun and -o remount, I was able to chmod without
ROFS errors, but I was still getting ROFS errors when I
tried to write. And then afterwards, the directory
in which I was working (/etc) seemed to disappear, even
after unmounting and remounting. I haven't tried booting
Solaris directly yet to see whether /etc really has
disappeared. If it has, I may need to reinstall Solaris.
Please do me the kindness of letting me know, if you reply; I do not
read this forum regularly. Thank you in advance.


jay at m5.chicago.il.us
 
Old 07-06-2007, 11:43 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I would never try myself to mount an UFS file-system R/W on linux outside testing.

That said, according to the Linux mount manual page, you are using an incorrect option to the mount command.

"-o ufstype=sun" is for SPARC while the right way is documented to be "-o ufstype=sunx86".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel that supports UFS/Solaris zarnold Fedora 1 08-19-2006 04:32 PM
Mount UFS partitions (not slices) from linux /etc/fstab JZL240I-U *BSD 6 04-26-2006 01:59 AM
Mounting Solaris UFS volumes under Linux? ldieter Linux - General 1 02-20-2005 08:19 AM
HowTo mount all Solaris (sun) ufs slices under Linux? DrLou Solaris / OpenSolaris 1 11-17-2004 11:36 AM
Cant mount UFS in Solaris but can in Linux sstallion Linux - Newbie 1 10-28-2004 07:47 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 03:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration