LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-14-2004, 07:01 PM   #1
Brian1
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: Reputation: 65
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
 
Old 11-14-2004, 07:24 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 271Reputation: 271Reputation: 271
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..
 
Old 11-14-2004, 07:54 PM   #3
Brian1
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: Reputation: 65
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
 
  


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
boot-up stalling at ide1 slackstudent218 Slackware 2 05-12-2005 03:04 PM
Red Hat 9.0 Dell Optiplex GX1 Dual CDROM Sec IDE mas & slv - hdc not responding cgtueno Linux - Hardware 6 11-12-2004 01:20 AM
IDE-SCSI emulation on /dev/hdc mrgrieves Linux - Software 8 06-28-2004 10:23 AM
What does that mean hdc= ide - scsi dark_light Linux - General 1 07-03-2003 04:34 PM
Knoppix On Ide1 Doesn't See Ide0 Sparko Linux - General 1 06-24-2003 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:55 PM.

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
Open Source Consulting | Domain Registration