LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2012, 03:51 PM   #1
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Rep: Reputation: Disabled
Lost in LVM moved /root now i dont knw where to install GRUB


in ubuntu server installed on 8gb flashdrive, there are 2 2tb drives in the vol group as well
I added a usb hard drive and moved my system off a usb flashdrive on to my new harddrive using pvmove and what not
installed grub but wouldn't boot
i moved the vg off the new hard drive
so i went over to one of the 2 2tb drives but i dont know where
formatted the new drive
now i'm suck
i dont know how to move the lv root back to my new harddrive so i can install grub and boot from it.
is there a lvm manager program that makes this kind of thing easier or a command that tells we where in my physical drives my root is?
thanks yall!

Last edited by skinney; 10-24-2012 at 05:06 PM.
 
Old 10-24-2012, 07:57 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
One way (if system still works)
Code:
cd /
df -h .
runs df on just the current dir (.), which shows you the usual mount info.
See also
Code:
cat /etc/fstab

cat /etc/mtab
Can you also show
Code:
df -h

# lowercase L here
fdisk -l
 
1 members found this post helpful.
Old 10-24-2012, 09:30 PM   #3
skinney
Member
 
Registered: Oct 2012
Location: oakland,ca
Distribution: Arch, Ubuntu Server 12.04, Slack64-14.1
Posts: 86

Original Poster
Rep: Reputation: Disabled
mtab and df -h
thank you those will come in handy
i gave up, unplugged my drives with the old vg and reinstalled on the usb drive
wasn't a 100% but thought my old vg would be availale if i pugged the drives back in after install
they were!
did so fstab editiing and we are back in business and whenever i need something from my root in the old vg i mount it and go get it
i'm happy
Thanks for replying!
 
Old 10-24-2012, 09:46 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Yeah, the key there is that fstab is just a wish list of what you'd like mounted at boot time (unless you used noauto).
mtab is a window into the kernel and shows you what is actually mounted(!).
NB: NEVER edit mtab ...
 
1 members found this post helpful.
  


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
lvm partition moved to other system, errors marcelvl Linux - Newbie 7 12-08-2011 06:48 PM
audio /video laggs .dont knw why??? sachinsharma Linux - Newbie 4 01-19-2011 07:45 AM
lost partition, grub loading, but can't see my LVM drive craigey1 Linux - General 5 08-23-2010 10:46 AM
grub thinks my root is LVM, its ext3. can not boot. tripmix Linux - Software 2 02-22-2007 02:20 AM
Lost root partition grub error 17 qplumb Linux - Newbie 1 02-28-2006 01:31 PM


All times are GMT -5. The time now is 12:40 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