Unable to detach a USB device on Ubuntu 14.04 The Next CEO of Stack OverflowMounting USB disks automatically (How it works)Prevent USB storage from using different device on resetFailure to startx on Ubuntu 14.04 after security update - missing libXfont.so.1What Causes Maintenance Shell Segmentation Fault?Ubuntu Server: How to make bootable bios_grub RAID device?I can't access my USB device after mkfs.ntfs commandAssistance with mdadm.conf syntax for reassembly of existing RAID0Mapping of usb device changes afer rtcwakeupHow do I fix “Kernel panic” error when booting USB stick?Is it necessary to explicitly flush the HDD on-disk write caches?
How dangerous is XSS
logical reads on global temp table, but not on session-level temp table
pgfplots: How to draw a tangent graph below two others?
Gauss' Posthumous Publications?
Why was Sir Cadogan fired?
Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?
Is a distribution that is normal, but highly skewed, considered Gaussian?
Is the sample correlation always positively correlated with the sample variance?
Prodigo = pro + ago?
What did the word "leisure" mean in late 18th Century usage?
Ising model simulation
Read/write a pipe-delimited file line by line with some simple text manipulation
Why doesn't Shulchan Aruch include the laws of destroying fruit trees?
Horror film about a man brought out of cryogenic suspension without a soul, around 1990
Car headlights in a world without electricity
How to find if SQL server backup is encrypted with TDE without restoring the backup
What difference does it make matching a word with/without a trailing whitespace?
Can this transistor (2n2222) take 6V on emitter-base? Am I reading datasheet incorrectly?
Upgrading From a 9 Speed Sora Derailleur?
Is it possible to make a 9x9 table fit within the default margins?
How to unfasten electrical subpanel attached with ramset
Could a dragon use its wings to swim?
Is the offspring between a demon and a celestial possible? If so what is it called and is it in a book somewhere?
What does this strange code stamp on my passport mean?
Unable to detach a USB device on Ubuntu 14.04
The Next CEO of Stack OverflowMounting USB disks automatically (How it works)Prevent USB storage from using different device on resetFailure to startx on Ubuntu 14.04 after security update - missing libXfont.so.1What Causes Maintenance Shell Segmentation Fault?Ubuntu Server: How to make bootable bios_grub RAID device?I can't access my USB device after mkfs.ntfs commandAssistance with mdadm.conf syntax for reassembly of existing RAID0Mapping of usb device changes afer rtcwakeupHow do I fix “Kernel panic” error when booting USB stick?Is it necessary to explicitly flush the HDD on-disk write caches?
I was using udisks
to unmount and detach USB devices with following commands which work just fine on Ubuntu 10.04:
udisks --unmount /dev/sdb1
udisks --detach /dev/sdb
Because udisks
is not available in Ubuntu 14.04, I was trying to use udisksctl
. It works for unmount
:
udisksctl unmount --block-device /dev/sdb1
But when I use udiskctl
or umount
to detach the device as:
udiskctl power-off -p /dev/sdb
or
umount -p /dev/sdb
it gives following error:
(udisksctl unmount:17787): GLib-GIO-CRITICAL **: g_dbus_object_manager_get_object: assertion 'g_variant_is_object_path (object_path)' failed
How can I detach device in Ubuntu 14.04 with other existing commands if any?
linux ubuntu command-line usb unmounting
add a comment |
I was using udisks
to unmount and detach USB devices with following commands which work just fine on Ubuntu 10.04:
udisks --unmount /dev/sdb1
udisks --detach /dev/sdb
Because udisks
is not available in Ubuntu 14.04, I was trying to use udisksctl
. It works for unmount
:
udisksctl unmount --block-device /dev/sdb1
But when I use udiskctl
or umount
to detach the device as:
udiskctl power-off -p /dev/sdb
or
umount -p /dev/sdb
it gives following error:
(udisksctl unmount:17787): GLib-GIO-CRITICAL **: g_dbus_object_manager_get_object: assertion 'g_variant_is_object_path (object_path)' failed
How can I detach device in Ubuntu 14.04 with other existing commands if any?
linux ubuntu command-line usb unmounting
add a comment |
I was using udisks
to unmount and detach USB devices with following commands which work just fine on Ubuntu 10.04:
udisks --unmount /dev/sdb1
udisks --detach /dev/sdb
Because udisks
is not available in Ubuntu 14.04, I was trying to use udisksctl
. It works for unmount
:
udisksctl unmount --block-device /dev/sdb1
But when I use udiskctl
or umount
to detach the device as:
udiskctl power-off -p /dev/sdb
or
umount -p /dev/sdb
it gives following error:
(udisksctl unmount:17787): GLib-GIO-CRITICAL **: g_dbus_object_manager_get_object: assertion 'g_variant_is_object_path (object_path)' failed
How can I detach device in Ubuntu 14.04 with other existing commands if any?
linux ubuntu command-line usb unmounting
I was using udisks
to unmount and detach USB devices with following commands which work just fine on Ubuntu 10.04:
udisks --unmount /dev/sdb1
udisks --detach /dev/sdb
Because udisks
is not available in Ubuntu 14.04, I was trying to use udisksctl
. It works for unmount
:
udisksctl unmount --block-device /dev/sdb1
But when I use udiskctl
or umount
to detach the device as:
udiskctl power-off -p /dev/sdb
or
umount -p /dev/sdb
it gives following error:
(udisksctl unmount:17787): GLib-GIO-CRITICAL **: g_dbus_object_manager_get_object: assertion 'g_variant_is_object_path (object_path)' failed
How can I detach device in Ubuntu 14.04 with other existing commands if any?
linux ubuntu command-line usb unmounting
linux ubuntu command-line usb unmounting
edited 2 days ago
Vlastimil
8,3601465145
8,3601465145
asked Mar 17 '16 at 7:57
Nitinkumar AmbekarNitinkumar Ambekar
1436
1436
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The problem may be that you are telling the path to the device instead of the path to the block device.
Try the next command:
udiskctl power-off -b /dev/sdb
With -b
you are specifying the path to the device.
Source:
https://askubuntu.com/questions/342188/how-to-auto-mount-from-command-line
Thanksudiskctl power-off -b /dev/sdb
worked!
– Nitinkumar Ambekar
Mar 17 '16 at 9:13
add a comment |
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f270368%2funable-to-detach-a-usb-device-on-ubuntu-14-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The problem may be that you are telling the path to the device instead of the path to the block device.
Try the next command:
udiskctl power-off -b /dev/sdb
With -b
you are specifying the path to the device.
Source:
https://askubuntu.com/questions/342188/how-to-auto-mount-from-command-line
Thanksudiskctl power-off -b /dev/sdb
worked!
– Nitinkumar Ambekar
Mar 17 '16 at 9:13
add a comment |
The problem may be that you are telling the path to the device instead of the path to the block device.
Try the next command:
udiskctl power-off -b /dev/sdb
With -b
you are specifying the path to the device.
Source:
https://askubuntu.com/questions/342188/how-to-auto-mount-from-command-line
Thanksudiskctl power-off -b /dev/sdb
worked!
– Nitinkumar Ambekar
Mar 17 '16 at 9:13
add a comment |
The problem may be that you are telling the path to the device instead of the path to the block device.
Try the next command:
udiskctl power-off -b /dev/sdb
With -b
you are specifying the path to the device.
Source:
https://askubuntu.com/questions/342188/how-to-auto-mount-from-command-line
The problem may be that you are telling the path to the device instead of the path to the block device.
Try the next command:
udiskctl power-off -b /dev/sdb
With -b
you are specifying the path to the device.
Source:
https://askubuntu.com/questions/342188/how-to-auto-mount-from-command-line
edited Apr 13 '17 at 12:22
Community♦
1
1
answered Mar 17 '16 at 9:01
Iñaki MurilloIñaki Murillo
585312
585312
Thanksudiskctl power-off -b /dev/sdb
worked!
– Nitinkumar Ambekar
Mar 17 '16 at 9:13
add a comment |
Thanksudiskctl power-off -b /dev/sdb
worked!
– Nitinkumar Ambekar
Mar 17 '16 at 9:13
Thanks
udiskctl power-off -b /dev/sdb
worked!– Nitinkumar Ambekar
Mar 17 '16 at 9:13
Thanks
udiskctl power-off -b /dev/sdb
worked!– Nitinkumar Ambekar
Mar 17 '16 at 9:13
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f270368%2funable-to-detach-a-usb-device-on-ubuntu-14-04%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown