LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help, rename a value under proc/ide/ide1/hdc/model (https://www.linuxquestions.org/questions/linux-software-2/help-rename-a-value-under-proc-ide-ide1-hdc-model-254852/)

Brian1 11-14-2004 07:01 PM

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

trickykid 11-14-2004 07:24 PM

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..

Brian1 11-14-2004 07:54 PM

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 07:10 AM.