Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mounting UFS Read Only as Read Write

Status
Not open for further replies.

shorty545

IS-IT--Management
Apr 5, 2004
82
US
I have a Sun Solaris 64 SCSI drive that I am trying to recover data from. I have successfully mounted the drive under a Live CD from gentoo. The problem is, the drive is recognized as UFS Read Only.

How can I mount this drive as a Read + Write file system?
 
just found this with google
Code:
USING UFS
=========

mount -t ufs -o ufstype=type_of_ufs device dir


UFS OPTIONS
===========

ufstype=type_of_ufs
UFS is a file system widely used in different operating systems.
The problem are differences among implementations. Features of
some implementations are undocumented, so its hard to recognize
type of ufs automatically. That's why user must specify type of
ufs manually by mount option ufstype. Possible values are:

old old format of ufs
default value, supported os read-only

44bsd used in FreeBSD, NetBSD, OpenBSD
supported os read-write

ufs2 used in FreeBSD 5.x
supported os read-only

sun used in SunOS (Solaris)
supported as read-write
...

so I suggest a
# mount -t ufs -o ufstype=sun device dir
or make sure it is rw mounted
# mount -t ufs -o rw,ufstype=sun device dir


Best Regards, Franz
--
UNIX System Manager from Munich, Germany
 
I have already tried these options. When I use them, it returns the following error:

"ufs was compiled with read-only support, can't be mounted as read-write
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so"

It will return this error everytime unless i use:
#mount -t ufs -0 ro,ufstype=sun device dir
 
hmm, whenever the mount output says it can't mount in rw mode there won't be an option to force. I suggest to google for another gentoo/Linux UFS Driver

Best Regards, Franz
--
UNIX System Manager from Munich, Germany
 
Why can't you use a standard Solaris cd-rom or boot of a jumpstart server?
 
I have the standard Solaris CDRom, but I do not want to wipe the hard drive and re-install. I want to recover the data.

No Jump-start server available.
 
You can do a boot cdrom -s which will boot single-user mode off the disc. You won't lose any of the data....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top