Adding HD's from FreeNAS

Donaldini
Posts: 14
Joined: Thu Jan 14, 2010 8:31 am

Adding HD's from FreeNAS

Postby Donaldini » Fri Jan 15, 2010 4:29 am

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!

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Adding HD's from FreeNAS

Postby moredruid » Fri Jan 15, 2010 4:43 am

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.
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Donaldini
Posts: 14
Joined: Thu Jan 14, 2010 8:31 am

Re: Adding HD's from FreeNAS

Postby Donaldini » Fri Jan 15, 2010 10:07 am

If I try the mount I get: "Mount: you must specify the filesystem type"

Which also gave us problems (in the chatlog transcript)

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Adding HD's from FreeNAS

Postby moredruid » Fri Jan 15, 2010 12:38 pm

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).
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Donaldini
Posts: 14
Joined: Thu Jan 14, 2010 8:31 am

Re: Adding HD's from FreeNAS

Postby Donaldini » Fri Jan 15, 2010 3:22 pm

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?

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Adding HD's from FreeNAS

Postby moredruid » Sun Jan 17, 2010 1:56 am

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).
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Adding HD's from FreeNAS

Postby cpg » Sun Jan 17, 2010 1:59 am

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?
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Adding HD's from FreeNAS

Postby moredruid » Sun Jan 17, 2010 2:04 am

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).
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

Donaldini
Posts: 14
Joined: Thu Jan 14, 2010 8:31 am

Re: Adding HD's from FreeNAS

Postby Donaldini » Sun Jan 17, 2010 2:29 pm

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?

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Adding HD's from FreeNAS

Postby cpg » Sun Jan 17, 2010 8:09 pm

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
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 24 guests