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
|
You need to change fstab that it reflects the changes in your setup.
|
Re: adding new drive cant find cd
Quote:
If so, edit it so that it now points to hdd. John |
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
|
Quote:
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 |
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 |
Post what he said at the end:
Quote:
Cool |
Quote:
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 |
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 |
Quote:
John |
All times are GMT -5. The time now is 12:00 PM. |