All of lore.kernel.org
 help / color / mirror / Atom feed
From: Justus Seifert <justus.seifert@dergleichrichter.de>
To: linux-btrfs@vger.kernel.org
Cc: "dhan.war" <wardhan.v.1.0@gmail.com>
Subject: Re: how to properly mount an external usb hard drive & other questions
Date: Sun, 05 Jan 2014 18:43:46 +0100	[thread overview]
Message-ID: <52C999D2.4000006@dergleichrichter.de> (raw)
In-Reply-To: <52C8E0D1.2070904@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2331 bytes --]

On 05.01.2014 05:34, dhan.war wrote:
> hi all
> 
> i am using up to date debian sid with xfce desktop environment. i am
> using Linux 3.13-rc6-amd64 #1 SMP Debian 3.13~rc6-1~exp1 (2013-12-30)
> x86_64 GNU/Linux from experimental.
> i have installed usbmount to auto mount all the devices connected
> through USB.
> 
> [cmd# 1] i have created btrfs partition on my external USB hard drive
> using the following command :
> 
> # mkfs.btrfs -f -L btrfs -m single /dev/sdc
> Turning ON incompat feature 'extref': increased hardlink limit per file
> to 65536
> fs created label btrfs on /dev/sdc
>     nodesize 16384 leafsize 16384 sectorsize 4096 size 931.51GiB
> Btrfs v3.12
> 
> [cmd# 2] my permissions of the device :
> # ls -l /dev/sdc
> brw-rw---- 1 root floppy 8, 32 Jan  5 09:47 /dev/sdc
> 
> my questions :
> [a] does the partition created by me is appropriate ?

it seems ok

> [b] how do i specify lzo compression in fstab ? last time when i tried
> to create entry fstab it is complaining about the auto mounting of the
> device by automount.

if you dont want the partition to be mounted with the fstab during boot
then you should add "noauto" to the list of options in the respective
fstab line.

> [c] what compression method is used by btrfs by default for the
> partitions created using the command mentioned above. [ cmd# 1]

none.  if you order mount to use compression without spezifieng the
algo, it will use zlib (thats like gz).  if you do not use the option
"compression" then it will not compress new files.

> [d] does the file permissions for my device are accurate ? [ cmd# 2]

i dont know.  are you member of the group floppy?  what is the purpose
of the group floppy on your machine?  what users are members of the
group floppy?

> [e] what is the appropriate fstab entry for my device ? [ i don't want
> to remove usbmount].

/dev/sdc /path/to/your/favorite/mountpoint/that/has/to/exist/already
btrfs compress,noauto 0 0

> [f] should i use single or dup for the device ?

maybe use single

> 
> please provide suggestions for configuring my device appropriately.
> thank you for reading the message patiently.
> 
> please alway cc me.
> 
> regards,
> wardhan.


i tried to keep it short.  feel free to ask for more.

cheers
justus

[-- Attachment #1.2: justus_seifert.vcf --]
[-- Type: text/x-vcard, Size: 206 bytes --]

begin:vcard
fn:Justus Seifert
n:Seifert;Justus
adr:;;;Dresden;Saxony;;Germany
email;internet:justus.seifert@dergleichrichter.de
tel;cell:+4915730640509
x-mozilla-html:FALSE
version:2.1
end:vcard


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

  reply	other threads:[~2014-01-05 17:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-05  4:34 how to properly mount an external usb hard drive & other questions dhan.war
2014-01-05 17:43 ` Justus Seifert [this message]
2014-01-05 17:50   ` Justus Seifert
2014-01-05 18:02     ` Jim Salter
2014-01-05 18:09       ` Jim Salter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52C999D2.4000006@dergleichrichter.de \
    --to=justus.seifert@dergleichrichter.de \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=wardhan.v.1.0@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.