LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-20-2002, 05:47 AM   #1
sooty
LQ Newbie
 
Registered: Nov 2002
Location: birmingham england
Distribution: Gentoo
Posts: 26

Rep: Reputation: 15
adding new drive cant find cd


I have just added a new drive to my debian (woody) linux system and it is on ide2 master (hdc)were my cdrom was previously Ive made the cdrom its slave (hdd I think it should be) moved jumpers on cd but now when i try to mount the cdrom (mount -t iso9660 /dev/cdrom /cdrom) it says its not the cdrom format I think its looking at my new hard drive whitch isnt partitioned yet .What alterations to what config files are needed any help would be appreciated
 
Old 11-20-2002, 05:53 AM   #2
crashmeister
Senior Member
 
Registered: Feb 2002
Distribution: t2 - trying to anyway
Posts: 2,541

Rep: Reputation: 47
You need to change fstab that it reflects the changes in your setup.
 
Old 11-20-2002, 06:07 AM   #3
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Re: adding new drive cant find cd

Quote:
Originally posted by sooty
I have just added a new drive to my debian (woody) linux system and it is on ide2 master (hdc)were my cdrom was previously Ive made the cdrom its slave (hdd I think it should be) moved jumpers on cd but now when i try to mount the cdrom (mount -t iso9660 /dev/cdrom /cdrom) it says its not the cdrom format I think its looking at my new hard drive whitch isnt partitioned yet .What alterations to what config files are needed any help would be appreciated
Check out what device your syslink (/dev/cdrom) is pointing to. I'll bet it's still hdc...

If so, edit it so that it now points to hdd.


John
 
Old 11-20-2002, 09:12 AM   #4
sooty
LQ Newbie
 
Registered: Nov 2002
Location: birmingham england
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks for the replys but how do i check what /dev/cdrom points to and what is syslink in the fstab it doesnt say were it points to just difines its type help please thanks sooty
 
Old 11-22-2002, 03:00 PM   #5
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Quote:
Originally posted by sooty
Thanks for the replys but how do i check what /dev/cdrom points to and what is syslink in the fstab it doesnt say were it points to just difines its type help please thanks sooty
Easy, first off there are two things for you to check: your /etc/fstab file, and your /dev/cdrom link to the actual device that it uses.

First your fstab file:

1) Open a terminal and "su" to root (enter "su" and then your root password).

2) Go to your /etc directory: "cd /etc", enter.

3) Look at your fstab file: "cat ./fstab", enter.

4) If it provides a "hard" link to your cdrom, then edit it so that it now points to /dev/hdd.

A "hard" link would look something like this:

"/dev/hdc /mnt/cdrom ...."

If this is the case, then pop open your favorite editor (I use the one that comes with "mc" (Midnight Commander") and change it to "/dev/hdd ..."


But it probably lists a line that looks something like this instead:

"/dev/cdrom /mnt/cdrom ...."

If that's the case then you don't need to do anything with your fstab file, so go ahead and close it without changing anything.


Off to your /dev directory...

You need to go into your /dev directory and modify your /dev/cdrom link so that it now points to /dev/hdd.

5) To do this type in: "cd /dev" and hit enter.

6) See what the link is currently pointing to: "ls -lr /dev/cdrom", enter.

7) If it is still pointing to /dev/hdc, then change it thus: "ln -s -f /dev/hdd /dev/cdrom", enter.

That's it!


If you are still having trouble, then please post your /etc/fstab and what "ls -lr /dev/cdrom" spits out.

P.S. Be sure to logout (type in "exit", enter) from root.


John
 
Old 11-22-2002, 07:01 PM   #6
sooty
LQ Newbie
 
Registered: Nov 2002
Location: birmingham england
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
Thanks for the reply john it is a good discription. The link under /dev pointed to
cdrom ->hdc
Ive now changed it to
cdrom ->hdd
But now when I mount /dev/cdrom /cdrom it reports
/dev/cdrom is not a valid block device.
the fstab contains /dev/cdrom /cdrom iso9660 ro,user,noauto
The cdrom is the slave of ide 2 so that should be hdd I think.
have you any ideas what i should try next thanks
sooty
 
Old 11-22-2002, 07:11 PM   #7
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Post what he said at the end:
Quote:
If you are still having trouble, then please post your /etc/fstab and what "ls -lr /dev/cdrom" spits out.

P.S. Be sure to logout (type in "exit", enter) from root.


John
That'll help us to see what's going on.

Cool
 
Old 11-25-2002, 02:33 AM   #8
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Quote:
Originally posted by sooty
Thanks for the reply john it is a good discription. The link under /dev pointed to
cdrom ->hdc
Ive now changed it to
cdrom ->hdd
But now when I mount /dev/cdrom /cdrom it reports
/dev/cdrom is not a valid block device.
the fstab contains /dev/cdrom /cdrom iso9660 ro,user,noauto
The cdrom is the slave of ide 2 so that should be hdd I think.
have you any ideas what i should try next thanks
sooty
You're welcome


1) First the obvious. Did you have a software CD in the drive when you tried mounting it? Does the cdrom work in that "other" OS?

2) Do a "dmesg|grep CD" and a "dmesg|grep -i ide" (as root) and post this along with your fstab, grub and/or lilo config files. You might (probably) still have a "hdc=ide-scsi" in either of these files (/etc/lilo.conf, /boot/grub/menu.lst). You would want to change it to hdd (of course).

3) Is the cdrom module actually loaded? ("lsmod|grep cdrom"). Try "modprobe cdrom" to load the module if it isn't, and "depmod -ae" to rebuild the dependencies.

4) Try a reboot.

Try these things and let us know what you find out. Here's my google:

http://www.google.com/linux?q=%22not...&start=30&sa=N


John
 
Old 11-25-2002, 03:19 AM   #9
sooty
LQ Newbie
 
Registered: Nov 2002
Location: birmingham england
Distribution: Gentoo
Posts: 26

Original Poster
Rep: Reputation: 15
Hello john ive sorted it know the the kernel didnt know hdd existed because it wasnt detected when booting up I pulled ide conector of back of drive reconected and rebooted works perfect now. I suspect it was due to a poorly conected lead
thanks again sooty
 
Old 11-25-2002, 02:17 PM   #10
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Quote:
Originally posted by sooty
Hello john ive sorted it know the the kernel didnt know hdd existed because it wasnt detected when booting up I pulled ide conector of back of drive reconected and rebooted works perfect now. I suspect it was due to a poorly conected lead
thanks again sooty
Excellent


John
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding a package so rpm can find it dangerousdave Linux - Newbie 2 02-22-2005 11:39 AM
Adding a new drive raysr Linux - Hardware 2 12-30-2004 10:28 PM
Adding a new drive????? billkris Linux - Hardware 7 01-29-2003 07:22 PM
Adding a new Hard Drive AMDPwred Linux - General 8 03-04-2002 04:57 PM
Adding new drive tkatrib Linux - Software 1 03-05-2001 04:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:38 AM.

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