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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-26-2009, 10:12 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2009
Posts: 13
Rep:
|
/etc/fstab labels do not come out consistently
We're running RHEL 5, kernel-2.6.18-128.1.6.el5.x86_64.rpm. Trying to use ghost for deployment of this solution that includes vmware 2.0 and separate ext3 partitions for each VM. Unfortunately, my /etc/fstab shows labels for these partitions as LABEL=/DC1 in some cases and then in others it shows LABEL=/DC11 I can't edit them and then restart because the fsck will fail. I am trying to use knoppix to fix the problem in one case right now, but I need to get to the bottom of this issue so it comes out the same every time. Is there a way in the install process to force the system to use that actual device names? /dev/sda4, etc...? If not, is there a way to edit the fstab and the place the partitions report their names from so they match up at boot time?
Our end goal is to be able to move ghosted partitions around like virtual appliances, but if the Labels don't match it's really not worth the hassle.
|
|
|
|
10-26-2009, 10:44 AM
|
#2
|
|
Member
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121
Rep:
|
Use udev to name the devices, and then you should be able to have them mount in the appropriate place. Rename their dev nodes and then put those in the fstab file.
here is some info on udev rules
|
|
|
|
10-26-2009, 11:58 AM
|
#3
|
|
LQ Newbie
Registered: Sep 2009
Posts: 13
Original Poster
Rep:
|
Quote:
Originally Posted by sploot
Use udev to name the devices, and then you should be able to have them mount in the appropriate place. Rename their dev nodes and then put those in the fstab file.
here is some info on udev rules
|
This may work, thanks.
If I can have the partitions labelled /DC1 AND /DC11, etc.
I just don't understand why I'm having an issue at all though. If I load RH from scratch, sometimes the fstab says one thing and sometimes it says something else. If I take a partition from a system that had the partition labelled LABEL=/DC11 and copy it to a system that had the old partition labelled LABEL=/DC1, it should work. Does the actual partition have a record of it's old label???? It shouldn't. That's like making up your own nickname, you just don't do it.
|
|
|
|
10-26-2009, 12:18 PM
|
#4
|
|
LQ Newbie
Registered: Sep 2009
Posts: 13
Original Poster
Rep:
|
OK I forgot I never tried to just change the labels back to the actual dev names.
When I VI the fstab from this:
LABEL=/DC11 /DC1 ext3 nosuid,nodev 1 2
or
LABEL=/DC1 /DC1 ext3 nosuid,nodev 1 2
to this:
/dev/sda7 /DC1 ext3 nosuid,nodev 1 2
It works! It reboots just fine, and after I try ghosting it (which I suspect it will) we'll all be happy again!!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:53 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|