openSUSE Forums > Archives > SF Archives > ARCHIVES - OpenSUSE Beta » How Do I Force A Refresh Of Attached Volumes?

Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - OpenSUSE Beta
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - OpenSUSE Beta Questions specific to OpenSUSE Linux Beta releases
(Questions that apply to both beta and release versions should be posted in the appropriate SUSE Help forums)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 31-May-2008, 11:26
WehrMacht
Guest
 
Posts: n/a
Default

openSUSE 11 RC1

When I plug a USB hard disk in,I get informed of it and get to mount the volumes on the disk.

When I put another hard disk in the computer (while it is turned off of course!) I get nothing.

The volumes are in the fdisk -l printout, but I would really like to be able to mount them using Dolphin.

Is there a way to do a "rescan" of attached drives?

Or, is there another way to mount LUKS encrypted volumes easily?

Thanks
  #2 (permalink)  
Old 31-May-2008, 12:49
Snakedriver
Guest
 
Posts: n/a
Default

Quote:
openSUSE 11 RC1

When I plug a USB hard disk in,I get informed of it and get to mount the volumes on the disk.

When I put another hard disk in the computer (while it is turned off of course!) I get nothing.

The volumes are in the fdisk -l printout, but I would really like to be able to mount them using Dolphin.

Is there a way to do a "rescan" of attached drives?

Or, is there another way to mount LUKS encrypted volumes easily?

Thanks
[/b]
Add it to "fstab" /etc/fstab You can either edit it as root or use Yast > Partitioner select the disk > edit > give it a mount point like /data2, **do not format** (unless you really want to); reboot to make the new fstab effective.

Search the forum for "fstab"

Have fun
  #3 (permalink)  
Old 31-May-2008, 15:17
WehrMacht
Guest
 
Posts: n/a
Talking

I just discovered the beauty of the SUSE IRC channel .

To mount an encrypted volume (this is mostly for MY memory, but it might help others):

1. Open a terminal and su to root.

2. Run: cryptsetup luksOpen /dev/sdb5 foo (where /dev/sdb5 is the drive that contains your encrypted volume, and foo is just a dummy name, use it as is)

3. Now fdisk -l to find out where the volume is. The output will look something like this:

(.....snipped)

Code:
/dev/sdb5************7905****** 19262****91233103+**83**Linux
/dev/sdb6********** 19263****** 19457**** 1566306** 82**Linux swap / Solaris

Disk /dev/dm-0: 2812 MB, 2812517376 bytes
255 heads, 63 sectors/track, 341 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 93.4 GB, 93422169600 bytes
255 heads, 63 sectors/track, 11357 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table
3. So in my case, the encrypted volume is /dev/dm-1, so now you can mount it: mount /dev/dm-1 /mnt/sdb5, it should now ask you for the password. Oh, make sure the folder to mount it in exists first of course .

4. Look in /mnt/sdb5 (or wherever you mounted it of course!) and you should see your files.

Done
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2