First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 20816
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Jay Pfeifer (RETIRED) <pfeifer@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Daniel Quinn <danstemporaryaccount@yahoo.ca>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
patch try this patch patch Martin Holzer (RETIRED) 2003-05-12 15:17 0000 615 bytes Details | Diff
patch new version text/plain Martin Holzer (RETIRED) 2003-05-12 16:05 0000 452 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 20816 depends on: Show dependency tree
Bug 20816 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2003-05-11 17:45 0000
if you install sys-apps/hdparm to run hdparm on your hard dirve(s) at startup,
but 
don't have a cdrom installed, the script still runs and works just fine, but
the 
following error is printed to the screen at startup: 

  dir: /dev/cdroms No such file or directory 

it's not a big deal, since the script still runs, but it could be easily fixed
with a 
test for the existence of /dev/cdroms before attempting to run hdparm on all 
devices in that directory. 

Reproducible: Always
Steps to Reproduce:
1. install gentoo 
2. remove (or don't even install a cdrom) 
3. install hdparm 
4. /etc/init.d/hdparm start 
Actual Results:  
the following error message was printed to stdout: 

  dir: /dev/cdroms No such file or directory 

Expected Results:  
checked if /dev/cdroms/ existed first

------- Comment #1 From Martin Holzer (RETIRED) 2003-05-12 12:16:55 0000 -------
which version of hdparm ?

------- Comment #2 From Daniel Quinn 2003-05-12 12:31:45 0000 -------
# hdparm -V 
hdparm v5.3 
 

------- Comment #3 From Martin Holzer (RETIRED) 2003-05-12 13:10:05 0000 -------
and 
emerge -s hdparm ?

------- Comment #4 From Daniel Quinn 2003-05-12 15:02:44 0000 -------
$ emerge --search hdparm 
Searching... 
[ Results for search key : hdparm ] 
[ Applications found : 1 ] 
 
*  sys-apps/hdparm 
      Latest version available: 5.3-r2 
      Latest version installed: 5.3-r2 
 

------- Comment #5 From Martin Holzer (RETIRED) 2003-05-12 15:17:34 0000 -------
Created an attachment (id=11838) [details]
try this patch

try this patch

------- Comment #6 From Martin Holzer (RETIRED) 2003-05-12 15:20:02 0000 -------
try this patch

------- Comment #7 From Daniel Quinn 2003-05-12 15:28:59 0000 -------
sorry, but i have no idea how to "try" a patch.  i opened the link and just got
a bunch of letters 
and numbers...  just because i reported the bug and can cat a startup script
doesn't mean i 
know what i'm doing ;-) 

------- Comment #8 From Martin Holzer (RETIRED) 2003-05-12 15:47:04 0000 -------
download the patchfile to /usr/portage/sys-apps/hdparm/files
patch -p0 < patchfile

------- Comment #9 From Daniel Quinn 2003-05-12 15:51:33 0000 -------
umm, it didn't work: 
 
 
(/usr/portage/sys-apps/hdparm/files) # wget 
"http://bugs.gentoo.org/attachment.cgi?id=11838&action=view" 
--16:10:21--  http://bugs.gentoo.org/attachment.cgi?id=11838&action=view 
           => `attachment.cgi?id=11838&action=view' 
Resolving bugs.gentoo.org... done. 
Connecting to bugs.gentoo.org[66.250.107.251]:80... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 615 [text/plain] 
 
100%[=========================================================================================================================>] 
615          600.59K/s    ETA 00:00 
 
16:10:21 (600.59 KB/s) - `attachment.cgi?id=11838&action=view' saved [615/615] 
 
 
[root@alexandria][2003-05-12 16:10:22][1.05|1.03|1.00][/=41%] 
(/usr/portage/sys-apps/hdparm/files) # patch -p0 < attachment.cgi\?id\=11838\&action\=view 
patch: **** Only garbage was found in the patch input. 
 

------- Comment #10 From Martin Holzer (RETIRED) 2003-05-12 16:05:03 0000 -------
Created an attachment (id=11841) [details]
new version

------- Comment #11 From Martin Holzer (RETIRED) 2003-05-12 16:05:25 0000 -------
try the new one please

------- Comment #12 From Daniel Quinn 2003-05-12 16:21:42 0000 -------
i ran the patch, re-emerged hdparm and tried to restart hdparm: 
 
# /etc/init.d/hdparm restart 
 * ERROR:  "/etc/init.d/hdparm" has syntax errors in it; not executing... 
 
so i did the following: 
 
# rm -r /usr/portage/sys-apps/hdparm/files/* 
# emerge sync 
# emerge hdparm 
# etc-update 
    -5 
# /etc/init.d/hdparm restart 
 * Stopping hdparm...                                            [ ok ] 
 * Starting hdparm... 
dir: /dev/cdroms: No such file or directory 
 * Running hdparm on disc0...                                    [ ok ] 
 * Running hdparm on disc1...                                    [ ok ] 
 * Running hdparm on disc2...                                    [ ok ] 

------- Comment #13 From Andrew Cooks 2003-11-25 06:24:51 0000 -------
This has been fixed in hdparm 5.4

------- Comment #14 From SpanKY 2003-11-25 07:11:44 0000 -------
actually i fixed that randomly once a blue moon ago cause it annoyed me

didnt realize there was a bug about it :)

First Last Prev Next    No search results available      Search page      Enter new bug