LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices

Reply
 
Search this Thread
Old 11-05-2002, 02:58 PM   #1
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
mounting a UFS partition in linux


hello guys
i have a question about mounting the freebsd partition in linux.
i compiled almost 20 kernels for it.
with ufs read-write support and in advanced partition support section i checked the option of support for freebsd partitions.
but only 2.2. kernels were able to mount it but only as read-only.
and with this command
mount -t ufs -o ufstype=44bsd /dev/hdxx /xxxxx
which is a tricky one.


but 2.4 kernels are even not able to mount it read-only.
any suggestions?
and a last question that can we install freebsd on multipe partitions like a swap on /dev/ad0s1
and a "/ "on /dev/ad0s2 not like all in one extended one.
like ad0s1a ,ad0s1b.


thanks a lot in advance and dont mind i know this a 50% linux question.
 
Old 11-05-2002, 03:18 PM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
I'de assume you can install 2 FreeBSDs, I had one machine with Open and Free on seperate partitions at one point... although offhand I think they may also have been seperate drives as well, its been a while.

I just looked at UFS under a 2.4.19 "make menuconfig", and as long as you remember to check off "prompt for incomplete or experimental kernel drivers" at the top, UFS read and write should appear as kernel options under "File Systems" further down.

Cheers,

Finegan
 
Old 11-05-2002, 03:40 PM   #3
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Original Poster
Rep: Reputation: 30
i have compiled with support of read-write.
not only the support of read-only as module but aslo the read-write support as built-in function of kernel.
but i think there is a tricky way to mount it with any special option.
any body knows? or any body did it without any option?
 
Old 01-24-2006, 06:11 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
 
Old 01-29-2006, 03:22 PM   #5
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
OK, here are my spell lines:

Code:
mount -w -t ufs -o ufstype=ufs2,nodev,nosuid /mnt/FreeBSD /dev/hda7
/etc/fstab:
Code:
/dev/hda7 /mnt/FreeBSD ufs auto,rw,ufstype=ufs2,nodev,nosuid 0 0
 
Old 02-22-2006, 07:56 AM   #6
atanas
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
However, enabling write access can be DANGEROUS (actually it says so in the respective kernel module). I had serious problems with it - it destroyed one Solaris slice, so I had to re-install Solaris. Actually the Linux kernel (2.6.15, on Slackware 10.1) blocked completely while I was trying to write to the Solaris partition - I had to reboot the PC manually.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mounting UFS in RW mode sstallion Linux - General 1 01-24-2006 06:10 AM
Read/write to UFS partition digitalhead Linux - General 3 01-24-2006 06:07 AM
mounting windows partition in linux prince_linux Red Hat 1 10-20-2005 03:16 AM
Problem Creating UFS Partition gnu noob Solaris / OpenSolaris 10 10-14-2005 12:31 PM
Mounting Solaris UFS volumes under Linux? ldieter Linux - General 1 02-20-2005 08:19 AM


All times are GMT -5. The time now is 11:57 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration