LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-16-2010, 12:33 PM   #1
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
/var partition not mounting properly


Dear All,

I have created a Virtual Machine with following partitions

OS: Fedora 11
Code:
Device   boot start stop blocks id system
/dev/sda1  *  1      13  102400  3   Linux
/dev/sda2    13      587 4608000 8e  Linux-LVM
Then I added One more Volume group with ext3 file system
Code:
Device   boot start stop blocks id system
/dev/sda1  *  1      13  102400  3   Linux
/dev/sda2    13      587 4608000 8e  Linux-LVM
/dev/sda3    587     612 205458+ 8e  Linux-LVM
/dev/sda3 partition is of 200MB comprising lvhome and lvvar partiton each one of 100MB

/var partition is of 80MB

After mounting I am not able to access only lock and lost+found file under /var

What could be the reason for this ?

Thanks

Last edited by vinaytp; 05-16-2010 at 12:35 PM.
 
Old 05-16-2010, 08:53 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Sorry, I don't understand. Can you explain what you're trying
to achieve? Did you want to move /var from / (presumably on
/dev/sda2) to a new volume on /dev/sda3?

Did you actually move data from the old /var to the new one
before mounting the new one?


Cheers,
Tink

Last edited by Tinkster; 05-17-2010 at 04:18 AM.
 
Old 05-17-2010, 01:32 AM   #3
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Thanks Tinkster for your reply.

I have /var under / which sits on /dev/sda2.

Now I am trying to mount new partition /dev/sda3 under /var. I mean entire data under /var should reside on /dev/sda3.

I am trying to mount my new LVM on /var, which is not working. Only I can see lock folder under /var after mounting.

Code:
mount -t ext3 /dev/Volgroup1/lvvar /var
What could be the reason ?

Thanks again..
 
Old 05-17-2010, 04:17 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The fact that you didn't move the data from one volume
to the other. Go to runlevel 1. Mount the "new /var" to something
like /mnt/tmp, move all directories from the old /var to /mnt/tmp.
Umount /mnt/tmp. Umount /var. Edit /etc/fstab to point to the
new /var. Mount /var. Go to runlevel 3.



Cheers,
Tink
 
Old 05-17-2010, 04:34 AM   #5
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Original Poster
Rep: Reputation: 55
Thanks Tinkster

It helped a lot..
 
  


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
auto mounting is not working properly wagmare Linux - General 1 04-30-2010 05:52 AM
Network Drives Not mounting properly JoeDuncan Linux - Software 4 08-21-2007 06:46 PM
Mounting /var into a ramdisk Myrdos Debian 5 03-22-2005 01:49 PM
Just another Newbie: Mounting a CD-RW Properly detrix Linux - Newbie 3 10-24-2004 05:15 PM
Mounting /var on a RAMdisk gamu829 Linux - General 2 09-04-2002 07:54 AM


All times are GMT -5. The time now is 08:55 AM.

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