Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: Importing Freenas drive?

  1. #11
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Newbie server help - importing Freenas drive?

    Use sudo parted -l output, not fdisk.
    Code:
    $ sudo parted -l
    Model: ATA HGST HMS5C4040AL (scsi)
    Disk /dev/sda: 4001GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    
    Number  Start   End     Size    File system  Name  Flags
     1      1049kB  2097kB  1049kB                     bios_grub
     2      2097kB  258MB   256MB   ext2
     3      258MB   4001GB  4001GB                     lvm
    The output from boot-info would be helpful too, but I'd just install zfs or ufs, then try to mount the partition.

  2. #12
    Join Date
    May 2012
    Beans
    80

    Re: Newbie server help - importing Freenas drive?

    Cheers dude, I'll have a go at installing them both.

    Just found this little guide for zfs, does this look ok?

    Install ZFS

    These steps MUST BE DONE IN ORDER or the zfs repository cannot be added.
    Run the following commands:
    sudo apt-get -y install build-essential gawk zlib1g-dev uuid-dev vim-nox python-software-properties
    sudo add-apt-repository ppa:zfs-native/stable
    sudo apt-get update
    sudo apt-get install ubuntu-zfs
    10. Add zfs modules to be loaded at boot

    Run the command:
    sudo nano /etc/modules
    Add the following entries to the file:
    spl
    zavl
    znvpair
    zunicode
    zcommon
    zfs
    11. Incorporate new modules into the boot files

    Type this command:
    sudo update-initramfs –u

  3. #13
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Newbie server help - importing Freenas drive?

    ZFS isn't that hard to install anymore. Packages exist in normal ubuntu repos now. However, we just need to figure out which file system is installed quickly. THAT is not hard. After that, you can go to all the trouble you want. I find it highly unlikely that zfs was used on a 1 disk setup in freenas, but I haven't a clue. I've only used UFS on SunOS and Solaris machines.

    Don't make this step harder than it needs to be. It isn't like you have anything to lose.

  4. #14
    Join Date
    May 2012
    Beans
    80

    Re: Importing Freenas drive?

    Ah, I see (sort of)

    Looking at this, i think it's ufs then?

    craig@server:~$ sudo parted -l
    [sudo] password for craig:
    Model: ATA Maxtor 6B200M0 (scsi)
    Disk /dev/sda: 204GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos


    Number Start End Size Type File system Flags
    1 1049kB 200GB 200GB primary ext4 boot
    2 200GB 204GB 4180MB extended
    5 200GB 204GB 4180MB logical linux-swap(v1)




    Model: ATA ST2000DM001-1CH1 (scsi)
    Disk /dev/sdb: 2000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt


    Number Start End Size File system Name Flags
    1 65.5kB 2148MB 2147MB
    2 2148MB 2000GB 1998GB freebsd-ufs

  5. #15
    Join Date
    May 2012
    Beans
    80

    Re: Importing Freenas drive?

    Hmmm, lost again. I think I've sussed out that it's ufs, but I cant seem to understand how to get it to mount and provide access to the media on there.

  6. #16
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Importing Freenas drive?

    What have you tried? Just like in Math - show your work.

  7. #17
    Join Date
    May 2012
    Beans
    80

    Re: Importing Freenas drive?

    Well, here is the output from sudo parted -l:

    craig@server:~$ sudo parted -l
    Model: ATA Maxtor 6B200M0 (scsi)
    Disk /dev/sda: 204GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos


    Number Start End Size Type File system Flags
    1 1049kB 200GB 200GB primary ext4 boot
    2 200GB 204GB 4180MB extended
    5 200GB 204GB 4180MB logical linux-swap(v1)




    Model: ATA ST2000DM001-1CH1 (scsi)
    Disk /dev/sdb: 2000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt


    Number Start End Size File system Name Flags
    1 65.5kB 2148MB 2147MB
    2 2148MB 2000GB 1998GB freebsd-ufs

    If I'm understanding this right, I need to mount /dev/sdb partition 2?

    How would one go about that? I've tried googling, but I'm just getting more confused!

    *edit*

    Ok, I've created a directory,
    sudo mkdir /data
    Enabled access to all users:
    sudo chmod -R 777 /data
    But when I try to actually mount it, this happens:
    craig@server:~$ sudo mount /dev/sdb /data
    mount: you must specify the filesystem type

    Last edited by Craig71; February 16th, 2014 at 04:53 PM.

  8. #18
    Join Date
    Feb 2007
    Location
    West Hills CA
    Beans
    10,044
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Importing Freenas drive?

    I don't believe parted can recognize zfs, so it's possible that /dev/sdb2 is either ufs or zfs.

    Make a directory:

    Code:
    cd
    mkdir usf_drive
    sudo mount -r -t ufs  /dev/sdb2 usf_drive
    -------------------------------------
    Oooh Shiny: PopularPages

    Unumquodque potest reparantur. Patientia sit virtus.

  9. #19
    Join Date
    May 2012
    Beans
    80

    Re: Importing Freenas drive?

    Thanks dude, but this is the message i get when trying that:

    craig@server:~$ mkdir usf_drive
    craig@server:~$ sudo mount -r -t ufs /dev/sdb2 usf_drive
    mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
    missing codepage or helper program, or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so


    craig@server:~$


  10. #20
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Importing Freenas drive?

    Quote Originally Posted by Craig71 View Post
    Thanks dude, but this is the message i get when trying that:
    Well, there is your answer -
    It isn't ufs.

    Time to move onto ZFS.

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •