LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-12-2003, 07:23 AM   #1
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
ext3 labels and devfsd


after upgrading a bunch of system packages on gentoo, it wanted to create a new fstab, which contained lines like...
Code:
/dev/BOOT               /boot           ext2            noauto,noatime          1 1
/dev/ROOT               /               xfs             noatime                 0 0
/dev/SWAP               none            swap            sw                      0 0
presumably this is saying that it is using the label of the ext3 filesystem as a pseudonym to the actual ide device.... i can't find anything that says how to set this up. i do have a "root" setup by devfs, but i'm assuming that it's not based on the label, just the fact that it IS root (and only coincidentally the same as the label name). I am using the labels in fstab at the moment, it's just out of interest if anyone knows how to create these automatically, and if i am actually assuming this setup correctly.
 
Old 05-12-2003, 03:26 PM   #2
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 587

Rep: Reputation: 32
AFAIR when you are creating partition - let's say hda3 - with fdisk you can name it as let's say MYDATA. Then MYDATA becames the equivalent name for hda3. Generally it is more flexible (but I am not using it) since you have not to remember that hda3 contains your data - the label can recall it to you.
 
Old 05-12-2003, 04:39 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Original Poster
Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
yes i'm aware of that, what i mean is that devfs appears to have actually created a /dev/ entry based on the label value...
 
Old 05-12-2003, 04:40 PM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Is it an actual block device, or is it simply a symlink?

Cool
 
Old 05-12-2003, 04:43 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Original Poster
Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well devfs is all symlinks really, just like hdb is a symlink to ide/host0/bus0/target1/lun0/disc... i don't know if this is what they say it can do is is simply meant to mean "replace this with the real values", or they are implying that that is what the partitions are labelled as...
 
Old 05-12-2003, 05:16 PM   #6
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
This is an example file, I replaced them with the actual symlink

/dev/hda3

etc...


That's what I perceived it to be anyway.
 
Old 05-13-2003, 02:18 AM   #7
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
Not sure if you know about e2label, which allows you to change the label of an e2fs-type partition, but it appears to me that devfsd only makes a symlink for the root partition (presumably by reading the /etc/fstab). My root partition's label is now "root_disk", and there is still only a /dev/root, not a /dev/root_disk.
 
Old 05-13-2003, 05:19 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Original Poster
Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
yeah i have a /dev/root i guess that is nothing to do with the e2label at all... would be a logical feature i'd think. thanks
 
Old 05-13-2003, 01:14 PM   #9
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
It appears as though the /dev/root is a backward compatibility of devfs to the old, crappy style of /dev.
man devfsd:
Quote:
As part of its setup phase devfsd creates certain symbolic
links which are compiled into the code. These links are
required by /usr/src/linux/Documentation/devices.txt. This
behaviour may change in future revisions.
In /usr/src/linux/Documentation/devices.txt:
Quote:
The following links may be established locally to conform to the
configuration of the system. This is merely a tabulation of existing
practice, and does not constitute a recommendation. However, if they
exist, they should have the following uses.

/dev/mouse mouse port symbolic Current mouse device
/dev/tape tape device symbolic Current tape device
/dev/cdrom CD-ROM device symbolic Current CD-ROM device
/dev/cdwriter CD-writer symbolic Current CD-writer device
/dev/scanner scanner symbolic Current scanner device
/dev/modem modem port symbolic Current dialout device
/dev/root root device symbolic Current root filesystem
/dev/swap swap device symbolic Current swap device
 
Old 05-13-2003, 01:21 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Original Poster
Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
interesting. i don't know if it'd be at all useful, but very possible....
 
Old 05-15-2003, 02:57 PM   #11
thamarsol
LQ Newbie
 
Registered: May 2003
Posts: 10

Rep: Reputation: 0
Question How do I set a symlink?:newbie:

I all!!
So, I'm a total newbie here and I'm trying to install some tools on Linux, and I receive the following message:
Please set a symlink to /usr/bin/perl in /usr/local/bin/perl and rerun installation.

I know it must be something trivial but still don't want to mess up things.
Thanks for your help
 
Old 05-15-2003, 03:07 PM   #12
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
run this command from some shell

ln -s /usr/bin/perl /usr/local/bin/perl

 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delay during GNOME login/logout -> devfsd Romendo Mandriva 0 09-02-2004 05:49 PM
/etc/rc.d/rc.devfsd? carboncopy Slackware 1 05-19-2004 07:47 AM
devfsd not starting quatsch Linux - Hardware 2 11-14-2003 11:49 PM
Gentoo install modem problems with devfsd acjt Linux - Distributions 0 04-27-2003 10:59 AM
help....devfsd??? ajtaus Linux - General 0 12-19-2001 02:28 PM


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