CDRW problem : mount: special device /dev/hdc does not exsit
ON boot up the CDRW detects /dev/hdc
Here is my fstab /dev/hda5 / ext2 defaults 1 1 /dev/hda1 /fatc ntfs ro 1 0 /dev/hdb1 /fatd vfat defaults 1 0 /dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0 /dev/hdc /mnt/cdrw iso9660 noauto,owner,rw 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defaults 0 0 I was messing with ls and I think I really messed it up |
You're kinda vague there. Post the output of "mount" and the
command you're running to get "mount: special device /dev/hdc does not exsit" I'm assuming you're getting that when trying to mount /dev/hdc You should probably have something like this -> /dev/scd0 /mnt/cdrw iso9660 user,umask=1000,rw,auto 0 0 |
umask=1000 ?
What is the result of this setting ? What permission does it give ? |
excuse me, two goofs :/
|
excuse please
|
What is the problem here? you haven't described it very well. you showed us your fstab... ok... so?
and `ls` is used for LiSting the contents of a directory. it has no side-effects; ie. it cannot mess something up. If it can, could you please give me step-by-step instructions on how to use ls to mess something up? |
OK I added that line in fstab
/dev/hdc /mnt/cdrw iso9660 noauto,owner,rw 0 0 Then I do a ls -l /dev/hdc /usr/bin/ls: /dev/hdc: No such file or directory root@OnlySecure:~# ls -l /mnt/cdrw TOTAL O and when I mount /mnt/cdrw mount: special device /dev/hdc does not exist root@OnlySecure:~# mount /dev/hdc /mnt/cdrw mount: special device /dev/hdc does not exist and then I try to ln -s /dev/hdc /dev/hdc/ ln: creating symbolic link `/dev/hdc/' to `/dev/hdc': No such file or directory don't know what else to do to get this working.... |
Ok.... I'm still not 100% sure, but let me try.
This line: /dev/hdc /mnt/cdrw iso9660 noauto,owner,rw 0 0 in your fstab should make it ok, i *think*, but I ain't no expert there. this line: ln -s /dev/hdc /dev/hdc/ is not good. you are trying to symlink a file to itself (which is not normally a good thing) and the file doesn't even exist in the first place! do you have a /dev/scd0 or /dev/scd1 or a /dev/cdrom? |
see on boot it dectects my plextor cdrw as hdc in fstab it only list /dev/cdrom and that is my dvd drive which works...
There is nothing that stats /dev/scd0 |
Then when I use KDiskFree
and mount /dev/hdc I get this Called: mount -tiso9660 -onoauto,owner,rw /dev/hdc /mnt/cdrw |
hmmm not really sure. you seem to have lost /dev/hdc/ and need to get it back, i assume. unfortunately, I don't know how to get it back :(
|
If you are using any kernel before 2.6.x, and you are, if you're using
any default install of Slackware up to and including version 10.0, then you should know that a CD-RW or a DVD+/-RW will only work as a burner enabled as a scsi device. That said, you can look at my fstab and see how I've set up my DVD+/-RW, CD-RW, and usb hard drives. Code:
mingdao@paul:~$ cat /etc/fstab for scsi device 0 (the first one) and scsi device 1 (the second one). Those devices are emulating scsi devices, though they are actually ide devices, so you also have to put append lines in LILO. Code:
mingdao@paul:~$ cat /etc/lilo.conf and Linux on the second. You can look at some this output for more understanding: Code:
mingdao@paul:~$ mount this, please issue "man <command_name>" first and read that and see if it helps you; i.e. "man fdisk" (without the quote marks) or "man df" and that will give you the manual page for the command. If you still need help after that, post the output of those same commands on your computer. |
OK I have done all that changed the fstab
/dev/scd0 /mnt/cdrw iso9660 noauto,umask=1000,owner,rw 0 0 Changed lilo and added append="hdb=ide-scsi hdd=ide-scsi apm=power-off" root@OnlySecure:~# mount /dev/hda5 on / type ext2 (rw) proc on /proc type proc (rw) /dev/hda1 on /fatc type ntfs (ro) /dev/hdb1 on /fatd type vfat (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) usbfs on /proc/bus/usb type usbfs (rw) /dev/hdd on /mnt/cdrom type iso9660 (ro) root@OnlySecure:~# fdisk -l Disk /dev/hda: 40.0 GB, 40020664320 bytes 255 heads, 63 sectors/track, 4865 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 * 1 1374 11036623+ 7 HPFS/NTFS /dev/hda2 1375 4865 28041457+ 5 Extended /dev/hda5 1375 4865 28041426 83 Linux Disk /dev/hdb: 41.1 GB, 41174138880 bytes 255 heads, 63 sectors/track, 5005 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdb1 * 1 5005 40202631 c W95 FAT32 (LBA) and gives me this error root@OnlySecure:~# mount /dev/scd0 mount: /dev/scd0 is not a valid block device root@OnlySecure:~# mount /mnt/cdrw mount: /dev/scd0 is not a valid block device Hmmm what else did I miss out? |
very much not an expert here... but just to thow a wild 'maybe' at you....
is there a folder in '/mnt' that represents your cdrw? a folder that says 'hdc' or something. when i first installed slackware it only detected one cd drive... not the other. i changed my fstab... only to find out i had to create a folder in /mnt to represent the drive. i could be completely off here. all the stuff you've posted has kinda confused me....lol- anyways... *maybe* this coukld help...lol |
Ya I actually created a folder in /mnt/cdrw
|
Okay, tell me if I've got your computer layout right...
/dev/hda1 = Win XP NTFS logical partition /dev/hda2 = Extended partition /dev/hda5 = Linux ext2 partition (only one Linux partition) and no Linux swap partition... /dev/hdb1 = Win 95, 98, 2000, XP, storage (which one?) FAT32 partition /dev/hdc = Plextor CD-RW /dev/hdd = DVD-(ROM or RW?) Quote:
If what I have above is correct, here's the game plan. This assumes that you had the CD-RW in the computer when you installed Slackware, which means that you already have the proper modules loaded. If it doesn't work, then next post I'll be wanting the output of "lsmod" run as root, but for now... You have LILO set for my devices, not yours. Change that line -> append="hdb=ide-scsi hdd=ide-scsi apm=power-off" to read -> append="hdc=ide-scsi" instead. Unless your DVD is a DVD-RW, rather than a DVD-ROM. Then you can keep the hdd=ide-scsi in there, also. Otherwise, take it out. NB: In Linux you have IDE devices listed like this: /dev/hda = primary controller, master drive /dev/hdb = primary controller, slave drive /dev/hdc = secondary controller, master drive /dev/hdd = secondary controller, slave drive Now, any time you make changes to LILO, you must run "lilo" as root, or the changes won't take place. If LILO is not in your path, i.e. if you run "lilo" and it says something like command not found, then issue the command as "/sbin/lilo" but I've never seen a Slack system without this in the path. It should output something like -> root@paul:/home/mingdao# lilo Added Linux * Added Windoze depending upon what you named your LILO entries - those aren't mine, btw, just examples. You said you made the directory /mnt/cdrw so that's good to go. Now, change the line in /etc/fstab that reads -> /dev/scd0 /mnt/cdrw iso9660 noauto,umask=1000,owner,rw 0 0 to read -> /dev/scd0 /mnt/cdrw iso9660 user,umask=1000,rw,noauto 0 0 if you don't mind. Why? Because I'm helping you, and that works for me. ;-) Now, shut down anything you've got running, then hit Ctrl + Alt + Backspace to kill the X server, then Ctrl + Alt + Delete to reboot the rascal. Login as a normal user, not root. If you haven't setup a normal user account yet, then login as root and issue "adduser <username>" where <username> is the name you want for your normal user. Mine is mingdao. I suspect you never created a normal user, because all the commands you've posted are issued by root. If you are logging in with a gui rather than a terminal prompt, you should hit Ctrl + Alt + Backspace to kill the X server then follow those instructions for creating the user. Once you have the normal user account, login as that user, then issue "startx" and it will launch your window manager that you've got setup. Now, open a terminal (console, konsole, virtual terminal) of your choice, and issue as a normal user "mount /mnt/cdrw" and you should get something like -> mingdao@paul:~$ mount /mnt/cdrw mount: block device /dev/scd0 is write-protected, mounting read-only mingdao@paul:~$ NB: You should have a CD in the drive before issuing that command. ;-) Okay, any error messages or questions, post em...I'm going for a kip. ;-) |
Change "hdc=ide-scsi"
Change /dev/scd0 /mnt/cdrw iso9660 user,umask=1000,rw,noauto 0 0 did lilo and rebooted do { onlybui@OnlySecure:~$ mount /mnt/cdrw mount: block device /dev/scdo is write-protected, mounting read only mount: wrong fs type, bad option, bad superblock on /dev/scd0 or too many mounted file systems SO I can see the drive but it says that its only read only? I can see the CD |
Looks like that worked Sorry and thanks for the effort and all the help to get this working....
Guess lilo wasn't setup correctly One more thing I got a dvd burner coming in from the net and I haven't installed it from exsisting Linux box.... can anyone point me in the right directions? |
All times are GMT -5. The time now is 03:33 AM. |