LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2003, 10:40 AM   #16
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48

when you do
ls /dev/hd*
what do you get? One of them should be your cdrom drive (hdc is your hd).
you can then link /dev/cdrom to that.
 
Old 10-11-2003, 11:34 AM   #17
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by quatsch
when you do
ls /dev/hd*
what do you get? One of them should be your cdrom drive (hdc is your hd).
you can then link /dev/cdrom to that.
before it was linked to hdd still I used to get error messages.
Here are a few things that I tried just now.

bash-2.05b$ ls /dev/hdd
/dev/hdd
bash-2.05b$ ls -l /dev/hdd
brw-rw---- 1 root disk 22, 64 Oct 12 2002 /dev/hdd
bash-2.05b$ mount /dev/cdrom
mount: /dev/cdrom is not a valid block device
 
Old 10-11-2003, 11:37 AM   #18
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by quatsch
when you do
ls /dev/hd*
what do you get? One of them should be your cdrom drive (hdc is your hd).
you can then link /dev/cdrom to that.
I tried this just now. Here is the proof

bash-2.05b# rm /dev/cdrom
bash-2.05b# ln -s /dev/hdd /dev/cdrom
bash-2.05b# exit
exit
bash-2.05b$ mount /dev/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
bash-2.05b$
 
Old 10-11-2003, 11:41 AM   #19
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by CryptDragoon
your cdwriter needs to be linked to /dev/sr0
and your cdrom will also need to be linked to /dev/sr1
and that should fix it.
I tried this. Didn't work. Here are the results:

bash-2.05b# ln -s /dev/sr1 /dev/cdrom
ln: `/dev/cdrom': File exists
bash-2.05b# rm /dev/cdrom
bash-2.05b# ln -s /dev/sr1 /dev/cdrom
bash-2.05b# rm /dev/cdwriter
bash-2.05b# ln -s /dev/sr0 /dev/cdwriter
bash-2.05b# mount /dev/cdrom
mount: /dev/cdrom is not a valid block device
 
Old 10-11-2003, 11:44 AM   #20
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by CryptDragoon
log on as root and type this:

cdrecord -scanbus

then post what it says about your scsi devices.
I did this. Here are the results.

bash-2.05b# cdrecord -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
 
Old 10-11-2003, 11:51 AM   #21
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Can you post your lilo.conf or your grub.conf depending on whether you're using grub or lilo?
 
Old 10-11-2003, 11:57 AM   #22
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by quatsch
Can you post your lilo.conf or your grub.conf depending on whether you're using grub or lilo?
As requested:

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hdc
append = "=ide-scsi"
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# Normal VGA console
vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# DOS bootable partition config begins
other = /dev/hdc1
label = DOS
table = /dev/hdc
# DOS bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdc6
label = Linux
read-only
# Linux bootable partition config ends
 
Old 10-11-2003, 12:13 PM   #23
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Quote:
append = "=ide-scsi"
change this to
append="hdd=ide-scsi"

run lilo:
/sbin/lilo -v

and then reboot. Your cdrom will now be attached as a scsi-device. See if you now can use
/dev/sr0 instead of /dev/cdrom
 
Old 10-11-2003, 01:13 PM   #24
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by quatsch
change this to
append="hdd=ide-scsi"

run lilo:
/sbin/lilo -v

and then reboot. Your cdrom will now be attached as a scsi-device. See if you now can use
/dev/sr0 instead of /dev/cdrom
Here are the results:

/dev/sbash-2.05b$ /sbin/lilo -v
LILO version 22.3.3, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 30-Aug-2002 and compiled at 14:16:07 on Sep 18 2002.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/hdc
Fatal: open /dev/hdc: Permission denied
r0 instead of /dev/cdrom
 
Old 10-11-2003, 01:19 PM   #25
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you have to be root to run lilo.
 
Old 10-11-2003, 01:26 PM   #26
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by quatsch
change this to
append="hdd=ide-scsi"

run lilo:
/sbin/lilo -v

and then reboot. Your cdrom will now be attached as a scsi-device. See if you now can use
/dev/sr0 instead of /dev/cdrom

Tried this as root. Here are the final results. It didn't work.

bash-2.05b$ mount /dev/cdrom
mount: /dev/cdrom: unknown device
bash-2.05b$ mount /dev/sr0
mount: can't find /dev/sr0 in /etc/fstab or /etc/mtab
 
Old 10-11-2003, 01:30 PM   #27
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
can you tell me what exactly you did? Have you deleted /dev/cdrom before?
First, you must
1. edit lilo.conf
2. run lilo
3. REBOOT


BTW, could you delete /var/log/messages again before you reboot and post what it says now?
 
Old 10-11-2003, 06:11 PM   #28
CryptDragoon
Member
 
Registered: Oct 2003
Location: $RANDOM
Posts: 122

Rep: Reputation: 15
He will still get error messages if he has 1 writing and 1 cdrom because 1 will be setup as a scsi and the other atapi, knowing this cdrecord and other tools need all readiable cdroms to be scsi... so if you intend to use your cdwrite and cdrom to do 1:1 copys it wont work unless you make both drive scsi emulated.
 
Old 10-11-2003, 06:32 PM   #29
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
rvijay said:
Quote:
My CDROM/CDWRITER are both just one device and secondary slave.
I take it that this is means it is one device that does the reading and writing.
 
Old 10-11-2003, 07:47 PM   #30
rvijay
Member
 
Registered: Aug 2003
Location: Quebec, Canada
Distribution: Debian HD install of Knoppix 5.0.1
Posts: 921

Original Poster
Blog Entries: 24

Rep: Reputation: 64
Quote:
Originally posted by quatsch
rvijay said:

I take it that this is means it is one device that does the reading and writing.
Yes, this is correct. By the way, everything worked perfect until two or three days ago. That is when I started getting error messages when trying to mount Data Cd's.
 
  


Reply



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
need assist with boot floppy creation explorer Mandriva 1 08-08-2005 12:48 AM
Please Assist: BashBurn rvijay Linux - Software 10 02-03-2005 01:58 PM
Buying new hardware, please assist me The_Nerd Linux - Hardware 3 01-30-2005 03:05 PM
Graphics problem, please assist. v4d3r Linux - Hardware 0 06-08-2004 12:02 PM
HELP! Error from mount: drive is write-protected... won't mount writeable. system Linux - General 2 12-27-2001 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:08 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