Mailinglist Archive: opensuse (3831 mails)

< Previous Next >
Re: [opensuse] encrypted usb drives - fixed mount points
  • From: "Dennis E. Slice" <dslice@xxxxxxxxxxxxxxxxx>
  • Date: Mon, 08 Jan 2007 13:32:59 -0500
  • Message-id: <45A28E5B.5020807@xxxxxxxxxxxxxxxxx>
Huzzah, it works!

I just changed the relevant (currently only) cryptotab line from:

/dev/loop0 /dev/sda1 /media/usbdisk320 reiserfs twofish256 acl,user_xat


/dev/loop0 /dev/disk/by-id/usb-WD_3200JB_External_xxx-part1
/media/usbdisk320 reiserfs twofish256 acl,user_xattr

where usb-WD_3200JB_External_xxx-part1 is the disk id found by

ls /dev/disk/by-id

when the disk is mounted. The xxx stands for the long string of numbers
that identify the drive. With more than one identical drive, one could
get the correct numbers by unplugging drives as previously suggested.

I only have one encrypted drive at this point, but this should work when
I add another.

Thanks to all, ds

PS: I also made a similar change in the fstab to mount my unencrypted
120GB drive. That would have mounted uniquely using the partition label,
but I prefer the direct ID method since that works for both encrypted
and unencrypted drive partitions. -ds

Philip Amadeo Saeli wrote:
> * Dennis E. Slice <dslice@xxxxxxxxxxxxxxxxx> [2007-01-07 18:32]:
>> To summarize, I would like to either force the mounting of encrypted
>> partitions on external USB drives to /dev/sda1, etc. Or, would like to
>> be able to mount encrypted drives correctly without regard to their
>> /dev/sdxx.
>> Does anyone have a solution to this problem? Can someone point me toward
>> a relevant discussion?
> I have a number of FireWire drives attached to my laptop and have
> encountered the same issue with them. What I do is to mount by the
> drive ID like so (actual example entry from fstab):
> /dev/disk/by-id/ieee1394-00050003e00121a4:0:0-part5 /q xfs noauto,noatime,nodiratime 0 0
> BTW, the "/dev/disk/by-id/*" entries are symlinks to the actual "/dev/sd*"
> entries.
> You can also use the "/dev/disk/by-uuid/" links which are analogous to
> the above but use the filesystem UUID instead. Don't know if this will
> work with encrypted drives, though. The "by-id" entries are more
> persistent anyway since they are based on the hardware ID of the disk
> drive itself, not some transient information recorded on the disk.
> One way to determine the hardware ID of the drive is via the command:
> lsscsi -dgv
> which will give you that and more information on the drive and where it
> has been mounted via the hotplug system. Plugging in the drives one at
> a time will help disambiguate which drive is which since both of yours
> are identical models.
> Hope this helps!
> Phil

Dennis E. Slice
Department of Anthropology
University of Vienna
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >