How to rescan and remount drives on Ubuntu Hardy or Jaunty?

Posted by pts on Super User See other posts from Super User or by pts
Published on 2009-12-27T12:20:24Z Indexed on 2010/03/30 4:13 UTC
Read the original article Hit count: 418

Filed under:
|
|
|
|

When I connect an USB drive to an Ununtu Hardy and Jaunty system, the system mounts the partitions found on the drive, and opens a Nautilus window for each mounted partitions. Within Nautilus, I am able to unmount partitions.

What I need is a command or action which forces the system to rescan the available drives and partitions, and automount each not mounted partition, including those which I've manually unmounted from Nautilus. sudo /etc/init.d/udev restart or ... reload doesn't do this.

As of now, I just unplug the USB drive, and commect it again, which will force a scan and a mount on that drive. But I want to do force the rescan and remount without unplugging anything, preferably without the user having the know device or drive names.

© Super User or respective owner

Related posts about ubuntu

Related posts about udev