LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   CDRW problem : mount: special device /dev/hdc does not exsit (https://www.linuxquestions.org/questions/slackware-14/cdrw-problem-mount-special-device-dev-hdc-does-not-exsit-228014/)

Alinuxnoob 09-08-2004 12:51 AM

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

Bruce Hill 09-08-2004 01:06 AM

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

Cedrik 09-08-2004 01:28 AM

umask=1000 ?

What is the result of this setting ? What permission does it give ?

Bruce Hill 09-08-2004 01:48 AM

excuse me, two goofs :/

Bruce Hill 09-08-2004 01:49 AM

excuse please

Lord Zoltar 09-08-2004 03:32 PM

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?

Alinuxnoob 09-08-2004 05:09 PM

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....

Lord Zoltar 09-08-2004 05:28 PM

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?

Alinuxnoob 09-08-2004 05:47 PM

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

Alinuxnoob 09-08-2004 05:51 PM

Then when I use KDiskFree
and mount /dev/hdc
I get this
Called: mount -tiso9660
-onoauto,owner,rw /dev/hdc /mnt/cdrw

Lord Zoltar 09-08-2004 07:14 PM

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 :(

Bruce Hill 09-08-2004 09:28 PM

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
/dev/hda5        swap            swap        defaults        0  0
/dev/hdc6        /                reiserfs    defaults        1  1
/dev/hdc1        /boot            reiserfs    defaults        1  2
/dev/hdc2        /home            reiserfs    defaults        1  2
/dev/hdc3        /usr            reiserfs    defaults        1  2
/dev/hdc5        /var            reiserfs    defaults        1  2
/dev/hdc7        /tmp            reiserfs    defaults        1  2
/dev/hdc8        /distro          reiserfs    defaults        1  2
/dev/hda1        /XP              ntfs        user,umask=1000,ro,auto      1  0
/dev/hda2        /PROGRAMS        ntfs        user,umask=1000,ro,auto      1  0
/dev/hda3        /DATA            vfat        user,umask=1000,rw,auto      1  0
/dev/cdrom      /mnt/cdrom      iso9660    noauto,owner,ro  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
###added these for usb devices
/dev/sda1        /mnt/sda1        vfat        user,umask=1000,rw,noauto 0 0
/dev/sdb1        /mnt/sdb1        vfat        user,umask=1000,rw,noauto 0 0
/dev/sdc1        /mnt/sdc1        vfat        user,umask=1000,rw,noauto 0 0
/dev/sdd1        /mnt/sdd1        vfat        user,umask=1000,rw,noauto 0 0
###added these for CD-RW & DVD+-RW
/dev/scd0        /mnt/cdrw        iso9660    user,umask=1000,rw,noauto 0 0
/dev/scd1        /mnt/dvd        iso9660    user,umask=1000,rw,noauto 0 0

You see /dev/scd0 for the CD-RW and /dev/scd1 for the DVD+/-RW. That stands
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
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="hdb=ide-scsi hdd=ide-scsi apm=power-off"  <--- this is the append line
boot = /dev/hda
#compact        # faster, but won't work on all systems.
prompt
timeout = 50
# VESA framebuffer console @ 1024x768x256
vga = 773
# 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
# ramdisk = 0    # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hdc6
  label = Slack-10.0
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda1
  label = WinXP
  table = /dev/hda
# Windows bootable partition config ends

This is a typical LILO for a system with two hard drives - Windoze on the first hard drive,
and Linux on the second. You can look at some this output for more understanding:
Code:

mingdao@paul:~$ mount
/dev/hdc6 on / type reiserfs (rw)
proc on /proc type proc (rw)
/dev/hdc1 on /boot type reiserfs (rw)
/dev/hdc2 on /home type reiserfs (rw)
/dev/hdc3 on /usr type reiserfs (rw)
/dev/hdc5 on /var type reiserfs (rw)
/dev/hdc7 on /tmp type reiserfs (rw)
/dev/hdc8 on /distro type reiserfs (rw)
/dev/hda1 on /XP type ntfs (ro,noexec,nosuid,nodev,umask=1000)
/dev/hda2 on /PROGRAMS type ntfs (ro,noexec,nosuid,nodev,umask=1000)
/dev/hda3 on /DATA type vfat (rw,noexec,nosuid,nodev,umask=1000)
/dev/scd0 on /mnt/cdrw type iso9660 (ro,noexec,nosuid,nodev,umask=1000,user=mingdao)
mingdao@paul:~$ su
Password:
root@paul:/home/mingdao# fdisk -l

Disk /dev/hdc: 61.4 GB, 61492838400 bytes
16 heads, 63 sectors/track, 119150 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hdc1              1        194      97744+  83  Linux
/dev/hdc2            195      87387    43945272  83  Linux
/dev/hdc3          87388      97075    4882752  83  Linux
/dev/hdc4          97076      119150    11125800    5  Extended
/dev/hdc5          97076      100950    1952968+  83  Linux
/dev/hdc6          100951      104825    1952968+  83  Linux
/dev/hdc7          104826      106763      976720+  83  Linux
/dev/hdc8          106764      119150    6243016+  83  Linux

Disk /dev/hda: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1        1212    9735358+  7  HPFS/NTFS
/dev/hda2            1213        2424    9735390    7  HPFS/NTFS
/dev/hda3            2425        7349    39560062+  c  W95 FAT32 (LBA)
/dev/hda4            7350        7476    1020127+  f  W95 Ext'd (LBA)
/dev/hda5            7350        7476    1020096  82  Linux swap
root@paul:/home/mingdao# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hdc6            1.9G  496M  1.4G  26% /
/dev/hdc1              96M  37M  60M  38% /boot
/dev/hdc2              42G  554M  42G  2% /home
/dev/hdc3            4.7G  2.1G  2.7G  44% /usr
/dev/hdc5            1.9G  68M  1.8G  4% /var
/dev/hdc7            954M  33M  922M  4% /tmp
/dev/hdc8            6.0G  3.9G  2.1G  65% /distro
/dev/hda1            9.3G  4.0G  5.4G  43% /XP
/dev/hda2            9.3G  1.4G  7.9G  16% /PROGRAMS
/dev/hda3              38G  19G  20G  50% /DATA
/dev/scd0            652M  652M    0 100% /mnt/cdrw

That tells how I've got my system setup. If you have questions about any of
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.

Alinuxnoob 09-09-2004 12:00 AM

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?

spamhippy 09-09-2004 12:16 AM

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

Alinuxnoob 09-09-2004 12:45 AM

Ya I actually created a folder in /mnt/cdrw

Bruce Hill 09-09-2004 01:53 AM

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:

Hmmm what else did I miss out?
The output of "df -h" but we can do it without that...

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. ;-)

Alinuxnoob 09-09-2004 10:08 PM

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

Alinuxnoob 09-09-2004 10:12 PM

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.