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.
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.
|
 |
11-14-2004, 07:01 PM
|
#1
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
|
Help, rename a value under proc/ide/ide1/hdc/model
Here's the deal I have a Prostar Notebook with 2 dvd-rom/cdrw drives. Both are the same model number. I had a time trying to get k3b working. I thought the first one listed would be my /dev/hdc but ended up being /dev/hdd. It was hard to tell since k3b listed the drives by thier model numbers which are the same. Keeped getting the no media found error.
What I would like is to create new names for the drives that display under k3b. My guess is that I need to change the value that comes from /proc/ide/ide1/hdc/model. How do I go about doing this. Another guess is to echo something somewhere. Done this with /proc/scsi/scsi section before. Just lost in the ide area.
System
Prostar 8894
FC2 (updated using Apt Repos)
kernel-2.6.9-rc4 with cdfs patch
Thank you for all your help.
Brian1
|
|
|
11-14-2004, 07:24 PM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
You normally can't change things in /proc, its a psuedo filesystem that is created upon bootup.. it actually goes away when you turn the computer off, etc, and if you change it now, upon next bootup, its most likely going to revert back.
Why don't you create symlinks instead to the proper /dev devices.. ??
ln -s /dev/hdc /mnt/cdrom1
ln -s /dev/hdd /mnt/cdrom2
Or something along those lines..
|
|
|
11-14-2004, 07:54 PM
|
#3
|
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Original Poster
Rep:
|
Yes I new some or most stuff in proc is created at bootup and figured I would have to add a script to modify the settings upon bootup. What your saying about symbolic links I don't think will help me here. It is that the app k3b shows devices by thier model number in the list (not by smbolic or hardlink values like /dev/hdc in the pull down list when selecting drives for either reading or writing). I thought I could rewrite some value (just the model numder value) So it is easier for me to remember which drive is what. Both drives come up as a Toshiba DVD-ROM SD-R2312 in k3b pulldown list for either the reader or writer. I would like to change that info to something like cdrw_cdrom0 and cdrw_cdrom1. But since I finally figured out my problem maybe I will remember which one is which in the pull down list. Or I could go out an buy one of those dvd-+r/rw drives for the notebook. Then ther will be 2 different model number drives in the notebook plus dvdrw use for the road. I guessing about $250.00 for a dvd+-rw and probably about $175.00 for a dvd-rw drive that gits most notebooks.
Thanks for your help and quick responce trickykid.
Brian1
|
|
|
All times are GMT -5. The time now is 01:55 PM.
|
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
|
|