LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-03-2006, 04:57 PM   #1
scc28y
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Rep: Reputation: 0
mount an external usb lvm


Hi, I just purchased a new usb hard drive enclosure and connected my old linux hard drive into the enclosure. I am trying to mount it. It has two partitions:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 19457 156183930 8e Linux LVM

Can someone please tell me how I can mount /dev/sda2 onto my new linux machine? Here is the info of the hard drive on my new linux machine:

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 4870 39013852+ 8e Linux LVM

All I ask is a simple command which will help me to mount /dev/sda2.

thanks.

Stanley
 
Old 09-03-2006, 05:33 PM   #2
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Rep: Reputation: 32
Well, create a new folder which will be the mounting point of the partition you want to mount. Then simply give the following command to the console:

mount -t ext3 /dev/sda2 /mount_point_path

Replace ext3 with the filesystem your partition has.
 
Old 09-03-2006, 05:40 PM   #3
scc28y
LQ Newbie
 
Registered: Feb 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Hi, thanks for your reply but my /dev/sda2 is a LVM type partition so simple ext3 does not work. Please help.
 
Old 09-03-2006, 05:57 PM   #4
Panagiotis_IOA
Member
 
Registered: Jan 2006
Location: Hellas, Europe
Distribution: Slackware 12
Posts: 238

Rep: Reputation: 32
Try without the type of the partition.

If not then I've found the next information on a different forum. It might help you:

Quote:
You have to figure out what the volume group is by running

vgdisplay



Then you need to find out what the logical volume is by running

lvdisplay



Inside /dev, you'll find some kind clue as to how to mount them. Typically, it will be under something like /dev/mapper/[volume group]/[logical volume].

mount -t {ext2|ext3|xfs|reiserfs|etc} /dev/mapper/[volume group]/[logical volume] /mnt/[mount point]
 
Old 01-12-2009, 09:35 PM   #5
cheaka850
LQ Newbie
 
Registered: Jan 2009
Posts: 1

Rep: Reputation: 0
After you run vgchange, then the VolumeGroups should be available under /dev/VolGroup00 (or whatever the VG's name is), and you can mount them using 'mount' as if they were normal block devices...
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 10.2 Cannot mount USB HD (external) beowulf71 Slackware 9 06-11-2006 02:54 PM
How to Mount External USB CD Drive? ArchiMark Linux - Laptop and Netbook 12 05-29-2006 07:10 PM
How to mount an external USB HD? Thakowbbery Linux - Hardware 1 05-18-2006 08:20 AM
LVM with external USB drives pompeyjohn Linux - Hardware 0 10-01-2005 01:56 AM
can't mount external usb hd jnsenit Linux - Hardware 2 12-03-2004 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration