Announcement

Collapse
No announcement yet.

how to mount my new btrfs formated drive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Still weird.

    Try:

    sudo -i
    umask

    Please Read Me

    Comment


      #17
      I can't figure out why this is happening.

      Please Read Me

      Comment


        #18
        What's fdisk show for /dev/sdb

        Please Read Me

        Comment


          #19
          Code:
          root@vinny-Bonobo-Extreme:~# umask
          0022
          fdisk
          Code:
          WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
          
          
          Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
          255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
          Units = sectors of 1 * 512 = 512 bytes
          Sector size (logical/physical): 512 bytes / 4096 bytes
          I/O size (minimum/optimal): 4096 bytes / 4096 bytes
          Disk identifier: 0x00000000
          
             Device Boot      Start         End      Blocks   Id  System
          /dev/sdb1               1  1953525167   976762583+  ee  GPT
          Partition 1 does not start on physical sector boundary.
          root@vinny-Bonobo-Extreme:~#
          parted
          Code:
          Model: ATA HGST HTS721010A9 (scsi)
          Disk /dev/sdb: 1000GB
          Sector size (logical/physical): 512B/4096B
          Partition Table: gpt
          
          Number  Start   End     Size    File system  Name     Flags
           1      1049kB  1000GB  1000GB  btrfs        primary
          I half to do some chores ,,,, then I will start to try and research this some as well.
          VINNY
          i7 4core HT 8MB L3 2.9GHz
          16GB RAM
          Nvidia GTX 860M 4GB RAM 1152 cuda cores

          Comment


            #20
            Vinny, try this with btrfs mounted;

            Code:
            cd /mnt/btrfs
            sudo chmod go-w .
            cd ..
            ls -l
            What's the output?

            Please Read Me

            Comment


              #21
              vinny@vinny-Bonobo-Extreme:/mnt$ ls -l
              total 8
              drwxr-xr-x 1 root root 94 Jan 31 15:12 btrfs
              drwxr-xr-x 2 root root 4096 Oct 10 22:34 disk
              drwxr-xr-x 2 root root 4096 Jan 31 15:06 test
              vinny@vinny-Bonobo-Extreme:/mnt$

              I new we could change it ,,,,,,,,,but why would it default to doing this when mounted in fstab ......I could find no info on it or others seeing it .

              VINNY
              i7 4core HT 8MB L3 2.9GHz
              16GB RAM
              Nvidia GTX 860M 4GB RAM 1152 cuda cores

              Comment


                #22
                Me neither - until I mounted one my my multi-disk btrfs filesystems at the root level - and I saw the same thing here. Once I did the above commands, it mounted correctly then on..

                Please Read Me

                Comment


                  #23
                  I followed post #9 and all is working well. I have btrfs subvolume named data which is on 2nd harddrive and mounted on ~/data.

                  I post my notes below for anyone to follow, each paragraph is an interaction with the konsole.

                  Code:
                  lee@lee-H67N-USB3-B3:~$ sudo mount /dev/sdb1 /mnt
                  [sudo] password for lee: 
                  lee@lee-H67N-USB3-B3:~$ sudo btrfs subvolume create /mnt/@data Create subvolume '/mnt/@data'
                  
                  
                  lee@lee-H67N-USB3-B3:~$ ls -l /mnt
                  total 0
                  drwxr-xr-x 1 root root 0 Feb  1 10:49 @data
                  
                  
                  lee@lee-H67N-USB3-B3:~$ ls -l
                  total 0
                  drwxrwxr-x 1 lee lee  264 Nov 30 20:00 bin
                  drwxrwxr-x 1 lee lee    0 Jan 29 21:33 data
                  
                  
                  lee@lee-H67N-USB3-B3:~$ sudo chmod o-rx /mnt/@data
                  lee@lee-H67N-USB3-B3:~$ sudo chown lee:lee /mnt/@data
                  lee@lee-H67N-USB3-B3:~$ sudo umount /mnt
                  
                  
                  lee@lee-H67N-USB3-B3:~$ sudo mount /dev/sdb1 -o rw,relatime,space_cache,subvol=@data /home/lee/data
                  
                  [B]I made some test folders and they have right permissions.[/B]
                  lee@lee-H67N-USB3-B3:~$ ls -l ~/data
                  total 0
                  drwxrwxr-x 1 lee lee 244 Feb  1 10:58 test2
                  drwxrwxr-x 1 lee lee   0 Feb  1 10:58 test folder
                  
                  
                  [B]Now I edid /etc/fstab and add the line below and reboot.[/B]
                  UUID=3dddb32d-50ad-4ed1-bdc2-b1fd9ec6f47f /home/lee/data btrfs rw,relatime,space_cache,subvol=@data 0 0
                  
                  
                  [B]After reboot and adding another test folder all looks well.[/B]
                  lee@lee-H67N-USB3-B3:~$ cd ~/data
                  lee@lee-H67N-USB3-B3:~/data$ ll
                  total 0
                  drwxr-x--- 1 lee lee  52 Feb  1 11:18 ./
                  drwxr-xr-x 1 lee lee 616 Feb  1 11:18 ../
                  drwxrwxr-x 1 lee lee   0 Feb  1 11:18 New Folder/
                  drwxrwxr-x 1 lee lee 244 Feb  1 10:58 test2/
                  drwxrwxr-x 1 lee lee   0 Feb  1 10:58 test folder/
                  I changed the fstab line from post #9 to below as I did not need compression (audio, video) and the btrfs was in the wrong position.
                  UUID=3dddb32d-50ad-4ed1-bdc2-b1fd9ec6f47f /home/lee/data btrfs rw,relatime,space_cache,subvol=@data 0 0

                  Thanks for the great thread
                  Last edited by anika200; Feb 01, 2015, 10:55 AM. Reason: readability

                  Comment


                    #24
                    Humm you did some strange stuff their ......................

                    lets see

                    Code:
                    ls -l /mnt
                    Code:
                    ls -l ~/
                    Code:
                    cat /etc/fstab
                    and
                    Code:
                    df -h
                    to start.

                    VINNY
                    i7 4core HT 8MB L3 2.9GHz
                    16GB RAM
                    Nvidia GTX 860M 4GB RAM 1152 cuda cores

                    Comment


                      #25
                      Strange?
                      Code:
                      lee@lee-H67N-USB3-B3:~$ ls -l /mnt
                      total 0
                      lee@lee-H67N-USB3-B3:~$
                      Code:
                      lee@lee-H67N-USB3-B3:~$ ls -l ~/
                      total 0
                      drwxrwxr-x 1 lee lee  264 Nov 30 20:00 bin
                      drwxr-x--- 1 lee lee   52 Feb  1 11:18 data
                      drwxr-xr-x 1 lee lee  110 Feb  1 11:35 Desktop
                      drwxr-xr-x 1 lee lee 1694 Jan 28 19:18 Documents
                      drwxr-xr-x 1 lee lee 1390 Jan 29 20:34 Downloads
                      drwxr-xr-x 1 lee lee    0 Jan 28 18:24 Music
                      drwxrwxr-x 1 lee lee  446 Jan 29 21:12 Pictures
                      drwxr-xr-x 1 lee lee    0 Jan 28 18:24 Public
                      drwx------ 1 lee lee   38 Jan 29 20:33 SpiderOak Hive
                      drwxr-xr-x 1 lee lee    0 Jan 28 18:24 Templates
                      drwxr-xr-x 1 lee lee    0 Jan 28 18:24 Videos
                      lee@lee-H67N-USB3-B3:~$
                      Code:
                      lee@lee-H67N-USB3-B3:~$ cat /etc/fstab
                      # /etc/fstab: static file system information.
                      #
                      # Use 'blkid' to print the universally unique identifier for a
                      # device; this may be used with UUID= as a more robust way to name devices
                      # that works even if disks are added and removed. See fstab(5).
                      #
                      # <file system> <mount point>   <type>  <options>       <dump>  <pass>
                      # / was on /dev/sda3 during installation
                      UUID=168c70e2-2da1-4c80-a013-4dfb0396811f /               btrfs   defaults,subvol=@ 0       1
                      # /home was on /dev/sda3 during installation
                      UUID=168c70e2-2da1-4c80-a013-4dfb0396811f /home           btrfs   defaults,subvol=@home 0       2
                      UUID=3dddb32d-50ad-4ed1-bdc2-b1fd9ec6f47f /home/lee/data btrfs rw,relatime,space_cache,subvol=@data 0 0
                      # swap was on /dev/sdb5 during installation
                      UUID=a6681407-f973-425f-a35a-3effdac732c9 none            swap    sw              0       0
                      tmpfs           /tmp    tmpfs   nodev,nosuid    0       0
                       
                      lee@lee-H67N-USB3-B3:~$
                      Code:
                      lee@lee-H67N-USB3-B3:~$ df -h
                      Filesystem      Size  Used Avail Use% Mounted on
                      /dev/sda3        78G   34G   44G  44% /
                      none            4.0K     0  4.0K   0% /sys/fs/cgroup
                      udev            3.9G  4.0K  3.9G   1% /dev
                      tmpfs           3.9G  264K  3.9G   1% /tmp
                      tmpfs           797M  1.1M  796M   1% /run
                      none            5.0M  4.0K  5.0M   1% /run/lock
                      none            3.9G   14M  3.9G   1% /run/shm
                      none            100M   24K  100M   1% /run/user
                      /dev/sda3        78G   34G   44G  44% /home
                      /dev/sdb1       225G  653M  223G   1% /home/lee/data
                      /dev/sda2       147G  127G   20G  87% /media/lee/MLion
                      lee@lee-H67N-USB3-B3:~$
                      Looking normal, no?

                      Btw, if anyone knows why I get the weird text wrapping when I paste in the code tags please let me know. I always have to edit it to get end of lines on the first line and then there are the example above (fstab) where it wraps to the next line.
                      Maybe because I copy from Yakuake?
                      Last edited by anika200; Feb 01, 2015, 03:43 PM. Reason: added questions about paste

                      Comment


                        #26
                        looks good ,,,,,,strange ,,,,,well I had just got up and you working in /mnt instead of /mnt/something through me ......& mounting the disk to a DIR in ~/ (which is fine) I'm just used to linking from ~/ to a DIR in /mnt



                        you should be good

                        VINNY
                        i7 4core HT 8MB L3 2.9GHz
                        16GB RAM
                        Nvidia GTX 860M 4GB RAM 1152 cuda cores

                        Comment

                        Working...
                        X