PDA

View Full Version : Help mounting FBSD partitions



emergingdzns
03-16-2007, 08:15 PM
I have inherited someone else's giant cluster F*&^ of a FBSD server and unfortunately, I can't change the server setup at this time. However, I REALLY need to connect an external hard drive to this server to copy a HUGE amount of data. I did this before by hiring a guy I know to help me with it and now I am lost.

I have been successful in booting to the Knoppix CD and getting to the "desktop". I can ping the external hard drive ok (which is a samba mountable drive). I see on the desktop an icon for a mount, but when I try to open it, it throws some error about not being able to mount the drive or something. I *think* this is the server's raid drive, though being such a noob, I am not sure.

Basically, the hard drive RAID is set up and has a LOT of data on it. One of the partitions is called usr2/. I need to get that freebsd partition mounted in order to start copying the data via the network.

Can anyone point me the right direction? I would appreciate any help I can get on this.

Another alternative would be for me to connect this external drive up to the Firewire connection, but it is a 400 GB windows format drive. Is it possible to connect this drive to firewire and mount it as a windows drive? If so, how?

Thank you all for your help!

convergys2
03-20-2007, 06:23 PM
So there are two types of mounts that you are looking at. One is an NFS mount and the other is a local mount.

This is a snippet from http://www.debianadmin.com/mount-network-file-systems-nfssamba-in-ubuntu.html

Mount NFS and smb File systems

Network filesystems use slightly different syntax than ordinary partitions.Specifically, the syntax you use to describe the filesystem is different.

For this example, we have an NFS share on host server1 at /mnt/apps, and a SMB file share on host server2 called accounts. We want to mount the NFS share at /mnt/software and the SMB share at /mnt/music.

Before mount these file systems we need to create a directory where we are going to mount these shares, In this example i am going to create software and music two shares using the following commands

sudo mount /mnt/software

sudo mount /mnt/music

To mount both of these partitions at boot time you need to add the following lines to your /etc/fstab file

server1:/mnt/apps /mnt/software nfs defaults 0 0
//server2/music /mnt/music smb defaults 0 0

In the above example explained as follows

For NFS shares follow the hostname:/path/to/share syntax,

For SMB shares follow the //hostname/share syntax.

Other than that, the remaining fields are same for this example and If you want to use NFS or SMB options you can use in the options field.

If you don’t want a partition to mount at boot time , add the noauto option to the list of options.

If you want to know more available options you can check fstab man page and mount man page

Tags: fstab man page, mount man page, mount network file systems in ubuntu, mount nfs ubuntu, mount samba file system in ubuntu, Other Linux

This snippet is taken from http://gentoo-wiki.com/HOWTO_Mount_Windows_partitions_(DOS,_FAT,NTFS) This would be used to mount locally attached to the server.

Mounting Partitions
If you haven't yet, read man mount for some really good information on what your options and limitations are in mounting each filesystem type.

Once support is added into your kernel, you're ready to go. If you want to mount some existing partitions on your harddrives, the first thing to do is find out what their device names are listed as. A good way to find out is to run fdisk -l (that's l as in list) as root. That command will simply list your disk partitions and exit.

Below is a sample output:

Code: fdisk -l
Device Boot Start End Blocks Id System
/dev/hda1 * x xxxx xxxx+ 7 HPFS/NTFS
/dev/hda2 xxxx xxxx xxxx b W95 FAT32


In this example, the harddrive running Windows has its C:\ drive formatted as NTFS and its D:\ drive formatted as Windows 95 FAT32 (VFAT). And, from the Device column, we can see that they are listed as /dev/hda1 and /dev/hda2.

Now you should have everything you need to mount the filesystems.

[edit]Basics
Assuming you are root, create a directory to access your drive in /mnt. For this example, we'll use ntfs as the directory name for the NTFS drive.

# mkdir /mnt/ntfs
Next, mount the partition using the mount command. When using mount, use the -t argument to specify the filesystem type (ntfs, in this case), then the device name (/dev/hda1 from the example) and the directory to access the drive (/mnt/ntfs):

# mount -t ntfs /dev/hda1 /mnt/ntfs
If you were going to mount a FAT32 partition, the -t type would be vfat.

# mount -t vfat /dev/hd<xX> /mnt/vfat
For MS-DOS partitions, the option would be msdos instead.

# mount -t msdos /dev/hd<xX> /mnt/msdos

Now you will only need to execute the mount commands, don't worry about changing the fstab files as this will be lost when you shutdown the live CD.

I hope this is what you were looking for.