LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-13-2012, 03:35 PM   #1
Joe of Loath
Member
 
Registered: Dec 2009
Location: Bristol, UK
Distribution: Ubuntu, Debian, Arch.
Posts: 152

Rep: Reputation: 28
Mount LVM setup from previous installation on clean install - Debian


Hi all

For my home fileserver I was using an old Dell workstation with a couple of IDE drives jammed into it, set up as one volume in LVM with partitions spread across it (/, /data and swap).

I recently bought an old HP thin client for cheap, and am turning this into my fileserver using a couple of USB caddies, due to it being silent and using so much less power. Problem is, I have no idea how to mount the old LVM setup.

Alternatively, would it be possible to boot the old setup straight from USB? This would save time, due to having quite a few customisations I can't really remember making.

Thanks in advance!
Joe
 
Old 03-14-2012, 03:36 PM   #2
eeekster
Member
 
Registered: Oct 2011
Posts: 163

Rep: Reputation: Disabled
The lvm volumes should be mountable as /dev/mapper/volumegroup-logicalvolume, substituting your own group and volume names of course.
 
Old 03-14-2012, 04:39 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,758

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
Quote:
Originally Posted by eeekster View Post
The lvm volumes should be mountable as /dev/mapper/volumegroup-logicalvolume, substituting your own group and volume names of course.
just a bit more detail for that. this is using a vg = vgusb, and a lv = backup:

Code:
# vgscan
# vgchange -ay vgusb
# lvchange -ay /dev/mapper/vgusb-backup     **** note **** this might need to be /dev/vgusb/backup
# sync
# mount -t ext3 /dev/mapper/vgusb-backup /mnt/<mount_point>
This would mount an ext3 file system on a LVM with the above vg and lv setup.

Hope that helps.
 
1 members found this post helpful.
Old 03-14-2012, 05:14 PM   #4
Joe of Loath
Member
 
Registered: Dec 2009
Location: Bristol, UK
Distribution: Ubuntu, Debian, Arch.
Posts: 152

Original Poster
Rep: Reputation: 28
Excellent, that's just what I need, thanks!
 
Old 03-14-2012, 05:39 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,758

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm clean install of four drives overwritting any previous raid5 disk array javaholic Linux - Server 15 10-13-2008 12:05 PM
Mount old lvm scsi drive on new installation k1mgy Fedora 2 07-24-2006 02:42 AM
Debian Sid clean installation problem ? Peter Aleksic Debian 5 12-23-2004 03:12 AM
adding debian to a previous grub installation starguymike04 Debian 18 08-25-2004 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration