LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (http://www.linuxquestions.org/questions/%2Absd-17/)
-   -   FreeBSD and ext3? (http://www.linuxquestions.org/questions/%2Absd-17/freebsd-and-ext3-425850/)

paddyjoy 03-17-2006 05:16 PM

FreeBSD and ext3?
 
Hi,

I just installed FreeBSD for the first time last night. I want to use it as a NFS server however all my data which is on another hard disk is in ext3/2 partitions. Can BSD mount these? I'm not having much look using the mount command and the -t ext3 option.

Thanks,
Paddy

reddazz 03-17-2006 05:35 PM

Apparently FreeBSD is not very good with ext3 partitions. If you are lucky to get it to work, you can only access ext3 in read only mode. Google search for "freebsd+ext3" and you will get more info.

paddyjoy 03-17-2006 06:57 PM

Thanks for the info, is it the same with all variants of BSD or are there any BSD's that support ext3/2?

Paddy

Nylex 03-18-2006 06:19 AM

Quote:

Originally Posted by reddazz
Apparently FreeBSD is not very good with ext3 partitions. If you are lucky to get it to work, you can only access ext3 in read only mode.

Just to say, I haven't had any problems mounting my ext3 partition under FreeBSD.

aryys 03-28-2006 08:14 AM

FreeBSD 6.0 will mount them fine, just remember that the linux partition will show as a slice most likely some thing like '/dev/ad1s1'
it's a long shot but have you added a line in your /etc/fstab a bit like

'/dev/ad1s1 /mnt/ad1s1 auto rw,noauto 0 0'

works fine for me! :D

IkBenDeMan 01-13-2010 03:46 AM

Quote:

Originally Posted by aryys (Post 2172759)
FreeBSD 6.0 will mount them fine, just remember that the linux partition will show as a slice most likely some thing like '/dev/ad1s1'
it's a long shot but have you added a line in your /etc/fstab a bit like

'/dev/ad1s1 /mnt/ad1s1 auto rw,noauto 0 0'

works fine for me! :D

partition c (if still used in your version of *bsd) is symbolic for the whole disk, you could also fstab slice1 partition c

/dev/da0s1c /media/ext ext2 rw,auto 1 2

vigol 01-17-2010 03:46 PM

Ext3 must be mounted as ext2.
Side Effect : Journal will be in a bad state when you run Linux again that can fix by fsck.
If you want to make ext3 again : try 128 Byte inodes.

Find your slice/partition:

Code:

fdisk -p /dev/adX
for example in my system

Code:

% su
Password: Enter Pssword
# fdisk -p /dev/ad12

 /dev/ad12
g c620181 h16 s63
p 1 0xa5 63 104856192
p 2 0xa5 104856255 209712510
a 2

Code:

mount -o ro -t ext2fs /dev/adXsY /mnt
I don't know your FreeBSD version so:
If you encounter following error:

Code:

mount: /mnt: Bad file descriptor
apply following path (128+ inode problem)

http://pastebin.ca/raw/1280738

If there're more errors reffer to following links

Ext2 inode size patch:
http://lists.freebsd.org/pipermail/f...er/046758.html
http://lists.freebsd.org/pipermail/f...er/046916.html
FreeBSD 256-byte inode support
http://lists.freebsd.org/pipermail/f...er/025912.html
Bad File Descriptor Errors:
http://lists.freebsd.org/pipermail/f...ne/176506.html
Mounting Linux Partitions:
http://lists.freebsd.org/pipermail/f...ay/174588.html
http://lists.freebsd.org/pipermail/f...ly/178219.html


All times are GMT -5. The time now is 12:40 PM.