LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-26-2009, 10:12 AM   #1
VirtualEJ
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
/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.
 
Old 10-26-2009, 10:44 AM   #2
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
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
 
Old 10-26-2009, 11:58 AM   #3
VirtualEJ
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sploot View Post
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.
 
Old 10-26-2009, 12:18 PM   #4
VirtualEJ
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Original Poster
Rep: Reputation: 0
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!!
 
  


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
1. how to set labels bottom margin? 2. how to set all labels to be right to left typi dfgfdgdf General 0 03-20-2007 09:43 AM
If I move hd labels, what changes? fstab, grub.conf... soloist Linux - General 6 03-16-2004 10:31 AM
appropiate fstab entries -- How to use labels jimieee Linux - Hardware 2 10-31-2003 03:29 AM
LABELs in /etc/fstab and grub.conf juggler Red Hat 1 09-28-2003 04:10 PM
Installing new harddisks...Questions about filesystems, labels and fstab needamiracle Linux - Hardware 5 09-23-2002 10:35 AM


All times are GMT -5. The time now is 04:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration