Do these have the same effect when the drive has only one big partition?
udisks --unmount /dev/sdb
udisks --unmount /dev/sdb1
Do these have the same effect when the drive has only one big partition?
udisks --unmount /dev/sdb
udisks --unmount /dev/sdb1
Well --- it depends. Basically, it depends on if the device is partitioned or not (used whole). If it has just one big partition, it's partitioned anyway.
I have a device (a Garmin GPS) that looks like an unpartioned disk, look (from the command
mount
which shows the mounted devices):so this disk needs to be unmounted with
umount /dev/sdc
.Notice however that this is a bad thing in general, stemming from the age of floppy disks --- if you still have one of those, they were mostly unpartitioned. Devices should be partitioned, even if they have just one big partition. Otherwise a lot of things expecting it will not automount the thing --- it happens randomly on Trusty with my Garmin, too.
A normal disk when mounted look like this:
so it has to be unmounted with
umount /dev/sdd1
.Anyway, getting it wrong will just throw an error...
You can unmount only a partition, not a disk. So it is
/dev/sdb1
.You can do it by
too.