USB hard disk mount options
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
How do I setup mount options for an external USB hard drive?
I have an USB drive formated with BTRFS, each time the USB is plugged the drive is automatically mounted in /media/user/disklabel with defaults options. But I would like to set compression for this disk, and this is achieved with the "-o compress" option in the "mount" command.
How can I change the mount options to the automount service?
I am running Ubuntu 17.10
usb mount hard-drive btrfs
add a comment |Â
up vote
1
down vote
favorite
How do I setup mount options for an external USB hard drive?
I have an USB drive formated with BTRFS, each time the USB is plugged the drive is automatically mounted in /media/user/disklabel with defaults options. But I would like to set compression for this disk, and this is achieved with the "-o compress" option in the "mount" command.
How can I change the mount options to the automount service?
I am running Ubuntu 17.10
usb mount hard-drive btrfs
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
How do I setup mount options for an external USB hard drive?
I have an USB drive formated with BTRFS, each time the USB is plugged the drive is automatically mounted in /media/user/disklabel with defaults options. But I would like to set compression for this disk, and this is achieved with the "-o compress" option in the "mount" command.
How can I change the mount options to the automount service?
I am running Ubuntu 17.10
usb mount hard-drive btrfs
How do I setup mount options for an external USB hard drive?
I have an USB drive formated with BTRFS, each time the USB is plugged the drive is automatically mounted in /media/user/disklabel with defaults options. But I would like to set compression for this disk, and this is achieved with the "-o compress" option in the "mount" command.
How can I change the mount options to the automount service?
I am running Ubuntu 17.10
usb mount hard-drive btrfs
usb mount hard-drive btrfs
asked Feb 9 at 20:12
Hugo Lia
205
205
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
- Connect the disk and let your automounter mount the filesystem
- Use
lsblk -o UUID,MOUNTPOINT
to find the UUID of the block device the filesystem is on, e.g.6e642696-3cb4-4d4e-86a6-2fae2b9295cc
. Add a line to your /etc/fstab referencing the UUID and specifying the additional mount option:
UUID=6e642696-3cb4-4d4e-86a6-2fae2b9295cc /media/user/backupdrive btrfs noauto,subvol=/,compress=zstd
- Unmount and re-mount the drive and check that the options were set using
mount
Bonus: This also works for filesystems on LUKS-encrypted drives.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
- Connect the disk and let your automounter mount the filesystem
- Use
lsblk -o UUID,MOUNTPOINT
to find the UUID of the block device the filesystem is on, e.g.6e642696-3cb4-4d4e-86a6-2fae2b9295cc
. Add a line to your /etc/fstab referencing the UUID and specifying the additional mount option:
UUID=6e642696-3cb4-4d4e-86a6-2fae2b9295cc /media/user/backupdrive btrfs noauto,subvol=/,compress=zstd
- Unmount and re-mount the drive and check that the options were set using
mount
Bonus: This also works for filesystems on LUKS-encrypted drives.
add a comment |Â
up vote
1
down vote
accepted
- Connect the disk and let your automounter mount the filesystem
- Use
lsblk -o UUID,MOUNTPOINT
to find the UUID of the block device the filesystem is on, e.g.6e642696-3cb4-4d4e-86a6-2fae2b9295cc
. Add a line to your /etc/fstab referencing the UUID and specifying the additional mount option:
UUID=6e642696-3cb4-4d4e-86a6-2fae2b9295cc /media/user/backupdrive btrfs noauto,subvol=/,compress=zstd
- Unmount and re-mount the drive and check that the options were set using
mount
Bonus: This also works for filesystems on LUKS-encrypted drives.
add a comment |Â
up vote
1
down vote
accepted
up vote
1
down vote
accepted
- Connect the disk and let your automounter mount the filesystem
- Use
lsblk -o UUID,MOUNTPOINT
to find the UUID of the block device the filesystem is on, e.g.6e642696-3cb4-4d4e-86a6-2fae2b9295cc
. Add a line to your /etc/fstab referencing the UUID and specifying the additional mount option:
UUID=6e642696-3cb4-4d4e-86a6-2fae2b9295cc /media/user/backupdrive btrfs noauto,subvol=/,compress=zstd
- Unmount and re-mount the drive and check that the options were set using
mount
Bonus: This also works for filesystems on LUKS-encrypted drives.
- Connect the disk and let your automounter mount the filesystem
- Use
lsblk -o UUID,MOUNTPOINT
to find the UUID of the block device the filesystem is on, e.g.6e642696-3cb4-4d4e-86a6-2fae2b9295cc
. Add a line to your /etc/fstab referencing the UUID and specifying the additional mount option:
UUID=6e642696-3cb4-4d4e-86a6-2fae2b9295cc /media/user/backupdrive btrfs noauto,subvol=/,compress=zstd
- Unmount and re-mount the drive and check that the options were set using
mount
Bonus: This also works for filesystems on LUKS-encrypted drives.
edited Feb 18 at 12:04
muru
130k19275470
130k19275470
answered Feb 18 at 12:02
Johannes Ebke
362
362
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1004671%2fusb-hard-disk-mount-options%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password