Sponsored Content
Operating Systems Linux Need to Mount LUKS external drive on Fedora Post 302683353 by whitenight639 on Wednesday 8th of August 2012 03:20:14 PM
Old 08-08-2012
I'm having similar issures on FC17

[root@jaguar mapper]# ls -al /dev
brw-rw----. 1 root disk 8, 0 Aug 7 21:34 sda
brw-rw----. 1 root disk 8, 1 Aug 7 21:34 sda1
brw-rw----. 1 root disk 8, 2 Aug 7 22:19 sda2
brw-rw----. 1 root disk 8, 16 Aug 7 21:34 sdb
brw-rw----. 1 root disk 8, 17 Aug 7 21:34 sdb1
brw-rw----. 1 root disk 8, 18 Aug 7 21:34 sdb2
[root@jaguar mapper]# umount -f /dev/sda2
umount: /dev/sda2: not mounted
[root@jaguar mapper]# umount -f /dev/sda1
umount: /dev/sda1: not mounted
[root@jaguar mapper]# umount -f /dev/sda
umount: /dev/sda: not mounted
[root@jaguar mapper]# cryptsetup luksOpen /dev/sda2 oldsystem
Enter passphrase for /dev/sda2:
Cannot use device /dev/sda2 which is in use (already mapped or mounted).

Whats all that about then? it's either mounted or not mounted

---------- Post updated 08-08-12 at 02:20 PM ---------- Previous update was 08-07-12 at 06:02 PM ----------

I've got it working now, it's so simple you'll be annoyed.

When you mount you have to mount the logical volume and to do that you need to create a mount point for bother the LG and the LV so basically just a subfolder in your mount point, so for example.

$ sudo mkdir /mnt/oldsystem/lv_root
(for some reason i got permission denied so had to navigate to that folder and create the subfolder from within /mnt )

$ sudo mount /dev/oldsystem/lv_root /mnt/oldsystem/lv_root


I would post a link to helpful forums that solved this for me but but i cant atm.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command?

Hi... question is this: How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure. ... (4 Replies)
Discussion started by: soulshaker
4 Replies

2. UNIX for Dummies Questions & Answers

mount external usb drive on Redhat 9

I am using Redhat 9 Linux, and am trying to get my external usb drive mounted (fat32). If I look at the KDE Control panel, it lists a usb 2.0 storage device under "USB Devices" (also in /proc/bus/usb), and under "SCSI" as scsi1. I looked at /proc/scsi/usb-storage-0, and it lists it there also. What... (6 Replies)
Discussion started by: jeremiebarber
6 Replies

3. Solaris

FAT32 usb external hard drive - how to mount??

Hello ! What is the comand to mount and usb hard disk ? I have Solaris 10 installed! 10nx! (1 Reply)
Discussion started by: daniel.balasa
1 Replies

4. UNIX for Dummies Questions & Answers

External SCSI hard drive

Someone gave me a small external SCSI hard drive for my SunOS 5.8 test system. How do I make Unix see the hard drive? (2 Replies)
Discussion started by: FredSmith
2 Replies

5. Ubuntu

External Hard drive won't mount

i have a Simple Tech hard drive that i use between two computers. it is formatted to ntfs. i have a dell desktop with Ubuntu 7.10 and Ubuntu 8.04 and Windows XP Home. and i have a laptop with Ubuntu 7.10 and Ubuntu 8.04. the laptop recognizes the hard drive on both 8.04 and 7.10 but my desktop... (9 Replies)
Discussion started by: Texasone
9 Replies

6. AIX

external DDS4 Tape Drive

Hi folks, I've got a little problem concerning my external dds4 tape drive. I've got 2 rs6000 systems, one has a external dds4 tape drive attached, I want to attach the tape drive to the other rs6000 system so that i can restore data from the 1st rs6000 on to the second. Does anybody has... (3 Replies)
Discussion started by: Erik Rooijmans
3 Replies

7. Filesystems, Disks and Memory

Partitioning External Drive

I am about to set up another triple boot drive, but this one is connected to my MacBook with a USB adapter. I want to be sure that I do not overwrite data on my laptop's internal drive. This is the command I used for the internal drive, which was found in an Ubuntu forum, but the sizes were changed... (0 Replies)
Discussion started by: MacInAction
0 Replies

8. Debian

Unable to mount external drive

Trying to mount an external 160GB Toshiba drive but.... this is my dmesg tail output: usb 2-2: new high speed USB device using ehci_hcd and address 3 usb 2-2: New USB device found, idVendor=13fd, idProduct=1618 usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 2-2:... (4 Replies)
Discussion started by: Ridson
4 Replies

9. Red Hat

Usb external drive

Hi Guys I am using RHEL5 O/S. We have mounted the usb external hard drive to the server as root. I want the user oracle to be able to write into this external hard drive. How do i do that ? Please Help!!! (1 Reply)
Discussion started by: Phuti
1 Replies

10. UNIX for Advanced & Expert Users

External hard drive

I have connected an external hard drive. I can't find it. Both ls /media, fdisk -l and ls /dev show nothing. TIA (3 Replies)
Discussion started by: Meow613
3 Replies
GRUB-INSTALL(8) 							FSF							   GRUB-INSTALL(8)

NAME
grub-install - install GRUB on your drive SYNOPSIS
grub-install [OPTION] install_device DESCRIPTION
Install GRUB on your drive. -h, --help print this message and exit -v, --version print the version information and exit --root-directory=DIR install GRUB images under the directory DIR instead of the root directory --grub-shell=FILE use FILE as the grub shell --no-floppy do not probe any floppy drive --force-lba force GRUB to use LBA mode even for a buggy BIOS --recheck probe a device map even if it already exists INSTALL_DEVICE can be a GRUB device name or a system device filename. grub-install copies GRUB images into the DIR/boot directory specfied by --root-directory, and uses the grub shell to install grub into the boot sector. REPORTING BUGS
Report bugs to <bug-grub@gnu.org>. SEE ALSO
grub(8), update-grub(8). The full documentation for grub-install is maintained as a Texinfo manual in the grub-legacy-doc package. If the info and grub-install programs are properly installed at your site, the command info grub-install should give you access to the complete manual. grub-install (GNU GRUB 0.97) January 2013 GRUB-INSTALL(8)
All times are GMT -4. The time now is 02:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy