LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-13-2005, 09:47 PM   #1
digitalhead
Member
 
Registered: Jun 2004
Location: West Virginia, US, Earth, Milky Way
Distribution: Ubuntu
Posts: 121

Rep: Reputation: 15
Read/write to UFS partition


I just installed OpenDarwin to a UFS partition and I need to know how I can setup the fstab so at least root can read/write to the partition. Since I can't get much to go my way from the command prompt (just a little different from the Linux shell), I need to transfer a few files over so I can get a GUI going and perhaps get it online. After installing OpenDarwin on my (once was) Windows partition, I cheated a little bit and just changed the file system. It now reads
Code:
/dev/hda1 /mnt/hda1 ufs defaults,users,umask=0002 0 0
I can mount the partition as root, but it does not show any of the files. I also cannot write any files to it.

I need to have something to show in the way of progress with O.D. by Friday in order to keep the project. Any help on being able to write to the partition from Slackware would be great. If I can get some install files transferred, I can get a few things running and the project keeps going. (it sure beats other work)

--digitalhead
 
Old 03-14-2005, 07:43 PM   #2
tw001_tw
Member
 
Registered: Mar 2003
Location: St. Louis, MO
Distribution: kubuntu-current
Posts: 551
Blog Entries: 4

Rep: Reputation: 31
I'm no great expert on the matter, but I think:

I've read conflicting positions on the matter if linux can read UFS2 file systems.
(you didn't specify which you have)

But as far as UFS1 is concerned:
(I checked with "make menuconfig' - that kernel 2.6.10 it does have the option
to support UFS file systems (read only) while UFS write support is considered "dangerous".

Also, I think that it can only access ' / ' and no other partitions ( like /home or /tmp if they are
on a different partition other then / ).

Here are 2 mount commands that should work - If it works out, maybe you can take it
from there for use with your fstab entry:

mount -r -t ufs -o /dev/hdxX /mnt/hdxX
mount -r -t ufs -o ufstype=ufs2 /dev/hdxX /mnt/hdxX

Thats about the extent of my knowledge on the matter - maybe you can get some help
from it. good luck
-tw
 
Old 03-14-2005, 08:30 PM   #3
digitalhead
Member
 
Registered: Jun 2004
Location: West Virginia, US, Earth, Milky Way
Distribution: Ubuntu
Posts: 121

Original Poster
Rep: Reputation: 15
Well, I thank you for your response. I didn't mention which type of UFS it is because I don't know. I didn't see anything about it anywhere. I saw somewhere this morning about the conflicts for writing to it and decided it would probably be easier to create a fat32 partition so I could send the files to it from Slackware and retrieve them with OpenDarwin.... as of 20:32 (8:32pm) on March 14, 2005, the first half of my hard drive is dead. Re-partitioned it too many times I guess. I changed the patitions so I had an extra 1GB of fat32 between my OpenDarwin UFS and Slackware reiserfs partitions. Got all kinds of errors. Decided to try installing Windows back to it and no go.... looks like I need a new hard drive. I guess that's the price to pay when I constantly use my computer as a lab rat. Oh well, I guess I'll just have to sell Linux as a viable alternative for an office. The goal was to get OpenDarwin up and runnnig with a GUI, security features, and office productivity. Don't rightly know why this guy wanted OpenDarwin, but I'll try to get him to change his mind to use Linux instead. Hey, I can honestly say that Linux is the only OS on my machine... as long as that half of the drive holds out.

Thanks, tw001_tw, for the info though.

--digitalhead (in fear of data entry projects)
 
Old 01-24-2006, 06:07 AM   #4
atanas
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
Enabling UFS write access in Linux

If you have already mounted the UFS partition (mount -w -t ufs -o ufstype=sun /dev/hda7 /sol10) but you cannot write to it (and you have enabled write access in the kernel), you need to remount it:

mount -t ufs -o remount,rw /dev/hda7 /sol10

This should enable write access to the UFS partition. I found this here:

lists.debian.org/debian-sparc/2003/12/msg00066.html
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
Read/Write access to a partition? Boggit Linux - Newbie 5 04-04-2004 03:05 PM
NTFS Partition Read/Write Access Help Bomb187 Fedora 6 03-17-2004 08:00 PM
user can't read/write (vfat) partition MykilX Slackware 6 07-04-2003 05:32 PM
Read/write to linux partition from Win2000/XP? ncage Linux - General 10 03-16-2003 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:15 AM.

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