LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-08-2004, 12:51 AM   #1
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
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
 
Old 09-08-2004, 01:06 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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

Last edited by Bruce Hill; 09-08-2004 at 01:10 AM.
 
Old 09-08-2004, 01:28 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 242Reputation: 242Reputation: 242
umask=1000 ?

What is the result of this setting ? What permission does it give ?
 
Old 09-08-2004, 01:48 AM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
excuse me, two goofs :/

Last edited by Bruce Hill; 09-08-2004 at 01:51 AM.
 
Old 09-08-2004, 01:49 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
excuse please
 
Old 09-08-2004, 03:32 PM   #6
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
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?
 
Old 09-08-2004, 05:09 PM   #7
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
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....

Last edited by Alinuxnoob; 09-08-2004 at 05:11 PM.
 
Old 09-08-2004, 05:28 PM   #8
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
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?
 
Old 09-08-2004, 05:47 PM   #9
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
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
 
Old 09-08-2004, 05:51 PM   #10
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
Then when I use KDiskFree
and mount /dev/hdc
I get this
Called: mount -tiso9660
-onoauto,owner,rw /dev/hdc /mnt/cdrw
 
Old 09-08-2004, 07:14 PM   #11
Lord Zoltar
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
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
 
Old 09-08-2004, 09:28 PM   #12
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
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.
 
Old 09-09-2004, 12:00 AM   #13
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
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?
 
Old 09-09-2004, 12:16 AM   #14
spamhippy
Member
 
Registered: Jul 2004
Location: wisconsin
Distribution: slackware, ubuntu studio
Posts: 124

Rep: Reputation: 16
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
 
Old 09-09-2004, 12:45 AM   #15
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
Ya I actually created a folder in /mnt/cdrw
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount /dev/hdc /dev/cdrom doesn't work ShrikesHarvest Linux - Newbie 10 02-21-2009 07:05 AM
mount: special device /dev/cdrom does not exist clau_bolson Linux - Hardware 5 07-12-2007 10:39 AM
mount: special device /dev/cdrom does not exist robrichards Linux - Hardware 20 02-15-2005 02:52 PM
my dvd device is listed as /dev/Hdc Kilahchris Linux - Newbie 5 05-02-2004 11:08 PM
Gentoo: mount: special device /dev/hdg* does not exist mope Linux - Software 4 02-25-2003 12:11 PM


All times are GMT -5. The time now is 01:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration