LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   adding new drive cant find cd (https://www.linuxquestions.org/questions/linux-general-1/adding-new-drive-cant-find-cd-35958/)

sooty 11-20-2002 05:47 AM

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

crashmeister 11-20-2002 05:53 AM

You need to change fstab that it reflects the changes in your setup.

rootboy 11-20-2002 06:07 AM

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

sooty 11-20-2002 09:12 AM

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

rootboy 11-22-2002 03:00 PM

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

sooty 11-22-2002 07:01 PM

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

MasterC 11-22-2002 07:11 PM

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

rootboy 11-25-2002 02:33 AM

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

sooty 11-25-2002 03:19 AM

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

rootboy 11-25-2002 02:17 PM

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


All times are GMT -5. The time now is 12:00 PM.