Page 1 of 2

Adding HD's from FreeNAS

Posted: Fri Jan 15, 2010 4:29 am
by Donaldini
Hey,

After my FreeNAS gave me some problems, I switched to Amahi.
Now I have a problem with adding 2 HD's that are not mounted so they can be shared.

I already looked for help on the IRC channel, but they told me to post it here, so here I am :-)
Here's a transcript of the IRC chat to see what we've already tried and said.

Here's a pastebin of an "fdisk -l" and "mount" command.

The HD's that are not added are 2 identical Samsung's of 750GB with data on it.
One of them used to be the disk holding the FreeNAS (FreeBSD) partitions for boot.

Basically, I just want to share those 2HD's, they don't need to be shared in one folder.
I hope someone can make it work!

Re: Adding HD's from FreeNAS

Posted: Fri Jan 15, 2010 4:43 am
by moredruid
hmm

looks like it's /dev/sdb and /dev/sdc for the hardware
you could try to mount the partitions on those drives on newly made mountpoints in /mnt to test for starters:

Code: Select all

mkdir /mnt/testmount mount /dev/sdb1 /mnt/testmount ls /mnt/testmount umount /mnt/testmount
and then the next partition.

if however the partitions were on a software RAID in FreeNAS you'll need to recreate that part, which would be very difficult unless you know the exact settings of that setup and are proficient in software RAID.

Re: Adding HD's from FreeNAS

Posted: Fri Jan 15, 2010 10:07 am
by Donaldini
If I try the mount I get: "Mount: you must specify the filesystem type"

Which also gave us problems (in the chatlog transcript)

Re: Adding HD's from FreeNAS

Posted: Fri Jan 15, 2010 12:38 pm
by moredruid
I think the filesystem type (looking at the partition type it's a5 - FreeBSD) will be UFS. You might want to try that. It could be that you need to load the driver for that filesystem (or recompile it into your kernel as a last resort).

Re: Adding HD's from FreeNAS

Posted: Fri Jan 15, 2010 3:22 pm
by Donaldini
As I recall correctly I already tried "mount -t UFS /...." but that didn't work, can't recall what the problem was though, maybe i'm not getting the command right?

I'm more of a Windows & Mac user, Linux is still growing on me, Not that experienced in it :-)
So how would I load such a driver?

Re: Adding HD's from FreeNAS

Posted: Sun Jan 17, 2010 1:56 am
by moredruid
you can load the driver like this (or check first with "lsmod | grep ufs"):

Code: Select all

modprobe ufs
and mount like this:

Code: Select all

mount -t ufs -o ufstype=<option> /dev/disk /mountpoint
where ufstype=<option> could be:
ufstype=44bsd
ufstype=old,ro
ufstype=ufs2,ro
ufstype=sunx86
ufstype=sun
ufstype=hp,ro
ufstype=nextstep-cd,ro
ufstype=nextstep,ro
ufstype=openstep,ro

and substitute disk for your disk (e.g. /dev/sdb) and mountpoint for the mountpoint you want (e.g. /mnt/testmount).

Re: Adding HD's from FreeNAS

Posted: Sun Jan 17, 2010 1:59 am
by cpg
whoa. nice! i did not realize there was a module for ufs filesystems.

we turned down a bunch of people switching from freenas!!!

for some reason, i cannot make the post above info or sticky. can some moderator do it?

Re: Adding HD's from FreeNAS

Posted: Sun Jan 17, 2010 2:04 am
by moredruid
apparently there is. I didn't know it either. I checked if you need to install some extra stuff (bsd-filesystems/ufs) with yum but I can't find anything so I assume this should be OK in a default install.

(I tested it on my F10 box and modprobe -i ufs worked fine).

Re: Adding HD's from FreeNAS

Posted: Sun Jan 17, 2010 2:29 pm
by Donaldini
Thanks a million moredruid!

The ufstype=ufs2,ro did the trick eventually.

Now the only thing I seem to be having is that certain folders are not accesible, due to permissions. Not on network computers and not on the Fedora machine itself. Any help on that one?

Re: Adding HD's from FreeNAS

Posted: Sun Jan 17, 2010 8:09 pm
by cpg
yes, the ufs module also loaded for me great in f12.

now, @donaldini, without details, we cannot help.

please list (ls -l FOLDERNAME) and share it here or in a PM.

also, try it in linux

Code: Select all

cd /path/to/folder; touch test.txt