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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-12-2003, 06:23 AM
|
#1
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
05-12-2003, 02:26 PM
|
#2
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591
Rep:
|
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.
|
|
|
05-12-2003, 03:39 PM
|
#3
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
Original Poster
|
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...
|
|
|
05-12-2003, 03:40 PM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Is it an actual block device, or is it simply a symlink?
Cool
|
|
|
05-12-2003, 03:43 PM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
Original Poster
|
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...
|
|
|
05-12-2003, 04:16 PM
|
#6
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
This is an example file, I replaced them with the actual symlink
/dev/hda3
etc...
That's what I perceived it to be anyway.
|
|
|
05-13-2003, 01:18 AM
|
#7
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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.
|
|
|
05-13-2003, 04:19 AM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
Original Poster
|
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
|
|
|
05-13-2003, 12:14 PM
|
#9
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
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
|
|
|
|
05-13-2003, 12:21 PM
|
#10
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
Original Poster
|
interesting. i don't know if it'd be at all useful, but very possible....
|
|
|
05-15-2003, 01:57 PM
|
#11
|
LQ Newbie
Registered: May 2003
Posts: 10
Rep:
|
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
|
|
|
05-15-2003, 02:07 PM
|
#12
|
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
|
run this command from some shell
ln -s /usr/bin/perl /usr/local/bin/perl
|
|
|
All times are GMT -5. The time now is 04:34 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
|
|