Ubuntu udisks
Jump to navigation
Jump to search
Here are some examples as one liners
Contents
dump ALL disk info including SMART data
udisks --dump
info about specific device
udisks --show-info /dev/sdd
Showing information for /org/freedesktop/UDisks/devices/sdd1
native-path: /sys/devices/pci0000:00/0000:00:1a.7/usb1/1-4/1-4:1.0/host19/target19:0:0/19:0:0:0/block/sdd/sdd1
device: 8:49
device-file: /dev/sdd1
presentation: /dev/sdd1
by-id: /dev/disk/by-id/usb-Generic_USB_SD_Reader_12345678901234567890-0:0-part1
by-id: /dev/disk/by-uuid/cb35ee63-f747-49fd-ae58-cfce0744ec65
by-path: /dev/disk/by-path/pci-0000:00:1a.7-usb-0:4:1.0-scsi-0:0:0:0-part1
detected at: Sun 25 Dec 2011 20:24:50 GMT
system internal: 0
removable: 0
has media: 1 (detected at Sun 25 Dec 2011 20:24:50 GMT)
detects change: 0
detection by polling: 0
detection inhibitable: 0
detection inhibited: 0
is read only: 0
is mounted: 1
mount paths: /media/8Gb KOBO
mounted by uid: 1000
presentation hide: 0
presentation nopolicy: 0
presentation name:
presentation icon:
automount hint:
size: 7947157504
block size: 512
job underway: no
usage: filesystem
type: ext2
version: 1.0
uuid: cb35ee63-f747-49fd-ae58-cfce0744ec65
label: 8Gb KOBO
partition:
part of: /org/freedesktop/UDisks/devices/sdd
scheme: mbr
number: 1
type: 0x83
flags: boot
offset: 1048576
alignment offset: 0
size: 7947157504
label:
uuid:
unmount partition
This will let you unmount a disk nautilus mounted without needing root/gksu
udisks --unmount /dev/sdd1
eject drive
udisks --detach /dev/sdd
mount by drive label
udisks --mount /dev/sdd1
e.g. output
Mounted /org/freedesktop/UDisks/devices/sdd1 at /media/8Gb KOBO