LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-15-2006, 08:14 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,663

Rep: Reputation: Disabled
Mount UFS partitions (not slices) from linux /etc/fstab


Sorry if this has been asked before, but I had no useable results in my searches.

I have a FreeBSD slice as /dev/hda3 on my machine, with ad0s3a as /, ad0s3b as swap etc. as proposed by the BSD install routine.

From my Linux installation I can mount ad0s3a in a "BSD-root" directory, but not the rest of the partitions in the slice.

Is it impossible to do that from /etc/fstab or are there special tricks (like in GRUB) to make them accessible from linux (e.g. /dev/hda3e)?
 
Old 03-15-2006, 02:52 PM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,684

Rep: Reputation: 54
One thought I have:
in the kernel-config there are options that look like what you would need to do what you describe:
in: --> File systems --> Miscellaneous filesystems --> there is read only support for UFS
and in: --> Partition Types --> Advanced partition selection --> there is BSD disklabel (FreeBSD partition tables) support
and some other choices...
If these things are compiled into the kernel you might be able to do what you want...?
 
Old 03-16-2006, 02:13 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,663

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jomen
...there is BSD disklabel (FreeBSD partition tables) support and some other choices...
If these things are compiled into the kernel you might be able to do what you want...?
Yes, but how? I mean, what option would I use in /etc/fstab? "man" doesn't tell...
 
Old 03-20-2006, 07:43 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,663

Original Poster
Rep: Reputation: Disabled
Bump
Anyone?
 
Old 03-24-2006, 06:36 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,663

Original Poster
Rep: Reputation: Disabled
Solved

Solution:

Code:
cat /proc/partitions
shows major and minor numbers, #blocks and name. All these partitions can be mounted, typing a "/dev/" in front of the name and the usual mount options.

Code:
fdisk -l  ==>{doesn't list the BSD Partitions}
In my case the partitions hidden from fdisk were something like /dev/hda17 up to /dev/hda22. My "old" partitions had the maximum number of /dev/hda16. Obviously the BSD partitions were appended to the usual partitions like from a second logical partition.

So I am curious what will happen, when I create a new partition with fdisk -- I don't think anything untoward will happen, maybe I have to change /etc/fstab and give the BSD-partitions new numbers, physically they reside in /dev/hda3 and thus should be protected...

Anyhow, this then seems to be the way how to proceed .

Last edited by JZL240I-U; 03-24-2006 at 06:44 AM.
 
Old 04-25-2006, 03:15 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 13.1 / 12.3_64-KDE, Ubuntu 14.04, Fedora 20, Mint 17, Chakra
Posts: 3,663

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by JZL240I-U
...So I am curious what will happen, when I create a new partition with fdisk -- I don't think anything untoward will happen, maybe I have to change /etc/fstab and give the BSD-partitions new numbers, physically they reside in /dev/hda3 and thus should be protected...
I tried it. I got my new partition allright and nothing was deleted, but all the numbers of the BSD-slices were incremented by one .

One can live with that but it's certainly not nice.
 
Old 04-26-2006, 01:59 AM   #7
primo
Member
 
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
What options are you trying in /etc/fstab ?
I would not care about the high numbers. You may create those with mknod. With "ls -l /dev/hda*" you get the pattern.

Anyway here are mine:
Code:
/dev/hda2 /mnt/bsd-usr  ufs auto,ro,ufstype=ufs2,nodev,nosuid   0 0
/dev/hda4 /mnt/bsd      ufs auto,ro,ufstype=ufs2,nodev,nosuid   0 0
 
  


Reply

Tags
bsd, from, fstab, linux, mount


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
Cannot mount FreeBSD UFS from linux bulliver *BSD 8 09-08-2008 04:05 PM
Migrate partitions from linux tot freebsd slices meskensj *BSD 1 02-18-2006 08:25 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
Mount UFS HD In Linux TechnoGecko Linux - General 2 04-29-2004 08:01 PM


All times are GMT -5. The time now is 02:50 PM.

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