LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't see cd drive (https://www.linuxquestions.org/questions/linux-newbie-8/cant-see-cd-drive-351365/)

lostdata 08-08-2005 10:58 PM

can't see cd drive
 
Hey I'm running vectorlinux 5.1 std, (slackware) I'm having problems seeing my cd rom drive, I ran a df and saw this

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda2 58862108 1344728 54527284 3% /
none 257556 0 257556 0% /dev/shm


think the 2nd one listed there is my swap partition, anyway i can't see my cdrom which is a pioneer dvd burn if that matters i used this drive to install it so not quit sure why i can't see it.. any help would be greatly appreciated..

Thanks...

Matir 08-08-2005 11:02 PM

What is in /etc/fstab? Do you have a line for your cdrom in there?

kencaz 08-08-2005 11:14 PM

I would say from a terminal type:

mount <enter>

this should query mtab and find the mount point for your CD if it is there...

KC

lostdata 08-08-2005 11:35 PM

k... fstab

[root@UPE/dev]# Filesystem 1K-blocks Used Available Use% Mounted # /etc/fstab: static file system information.
#
# The following is an example. Please see fstab(5) for further details.
# Please refer to mount(1) for a complete description of mount options.
#
# Format:
# <file system> <mount point> <type> <options> <dump> <pass>
#
# dump(8) uses the <dump> field to determine which file systems need
# to be dumped. fsck(8) uses the <pass> column to determine which file
# systems need to be checked--the root file system should have a 1 in
# this field, other file systems a 2, and any file systems that should
# not be checked (such as MS-initrd/mnt or NFS file systems) a 0.

# This is a root linux partition:
/dev/hda2 / ext3 defaults 0 1


# This is a linux ext2 partition:
#/dev/hda2 /mnt/linux ext2 defaults 0 2

# For dos partition use type 'msdos'.
# For win95/98 fat16 or FAT32 partition use type 'vfat'.
Read /etc/fstab, 63 lines, 2221 chars 1,1 Command






mount:

[root@UPE/dev]# mount
/dev/hda2 on / type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=666)
none on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)

kencaz 08-08-2005 11:42 PM

Quote:

Originally posted by lostdata
k... fstab

[root@UPE/dev]# Filesystem 1K-blocks Used Available Use% Mounted # /etc/fstab: static file system information.

# This is a root linux partition:
/dev/hda2 / ext3 defaults 0 1

# This is a linux ext2 partition:
#/dev/hda2 /mnt/linux ext2 defaults 0 2

# For dos partition use type 'msdos'.
# For win95/98 fat16 or FAT32 partition use type 'vfat'.
Read /etc/fstab, 63 lines, 2221 chars 1,1 Command


mount:
[root@UPE/dev]# mount
/dev/hda2 on / type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=666)
none on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)

Well, mount shows that your CD is not mounted, however, that is not your fstab... Post the output of:

cat /etc/fstab

KC

lostdata 08-08-2005 11:45 PM

sorry man...

# /etc/fstab: static file system information.
#
# The following is an example. Please see fstab(5) for further details.
# Please refer to mount(1) for a complete description of mount options.
#
# Format:
# <file system> <mount point> <type> <options> <dump> <pass>
#
# dump(8) uses the <dump> field to determine which file systems need
# to be dumped. fsck(8) uses the <pass> column to determine which file
# systems need to be checked--the root file system should have a 1 in
# this field, other file systems a 2, and any file systems that should
# not be checked (such as MS-initrd/mnt or NFS file systems) a 0.

# This is a root linux partition:
/dev/hda2 / ext3 defaults 0 1


# This is a linux ext2 partition:
#/dev/hda2 /mnt/linux ext2 defaults 0 2

# For dos partition use type 'msdos'.
# For win95/98 fat16 or FAT32 partition use type 'vfat'.
#/dev/hda1 /mnt/win vfat umask=0,quiet,shortname=mixed 0 0

# Floppy disks
# The 'noauto' option indicates that the file system should not be mounted
# with 'mount -a' 'user' indicates that normal users are allowed to mount
# the file system.
/dev/fd0 /mnt/floppy auto defaults,noauto,user 0 0
#/dev/fd1 /mnt/floppy auto defaults,noauto,user 0 0

# If you have a ls-120 floppy drive, it could be on /dev/hda b c d etc.
#/dev/hdd /mnt/ls120 auto defaults,noauto,user 0 0

# CDROM, CDWRITER, DVD
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/cdwriter /mnt/cdwriter iso9669 noauto,user,rw 0 0
/dev/dvd /mnt/dvd iso9660 noauto,user,ro 0 0

# NFS file systems:
#linux01.gwdg.de:/suse/6.3/i386.de /mnt/nfs nfs defaults 0 0

# proc file system:
proc /proc proc defaults 0 0
# sys file system
##sysfs /sys sysfs defaults 0 0

# Unix98 devpts filesystem:
none /dev/pts devpts gid=5,mode=666 0 0

# Shared memory filesystem:
none /dev/shm tmpfs defaults 0 0

# Basic USB filesystem
usbfs /proc/bus/usb usbfs defaults,noauto 0 0

# this is for USB pendrive, but you may need to adjust the device
#/dev/sda1 /mnt/pendrive vfat umask=0,noauto,user,quiet,shortname=mixed 0 0

# The 'sw' option indicates that the swap partition is to be activated
# with 'swapon -a'.
/dev/hda1 none swap sw 0 0

Matir 08-08-2005 11:55 PM

So you should be able to just do 'mount /mnt/cdrom' and then the cdrom files will be accessible in (of all places) /mnt/cdrom.

kencaz 08-08-2005 11:59 PM

# CDROM, CDWRITER, DVD
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/cdwriter /mnt/cdwriter iso9669 noauto,user,rw 0 0
/dev/dvd /mnt/dvd iso9660 noauto,user,ro 0 0

Try from a root terminal:

# mount /dev/cdrom /mnt/cdrom

ls /mnt/cdrom

you get the idea...

KC

lostdata 08-09-2005 12:16 AM

[root@UPE~]# # mount /dev/cdrom /mnt/cdrom
[root@UPE~]# ls /mnt/cdrom
[root@UPE~]# # mount /dev/cdwriter /mnt/cdwriter
[root@UPE~]# ls /mnt/cdwriter
[root@UPE~]# # mount /dev/dvd /mnt/dvd
[root@UPE~]# ls /mnt/dvd
[root@UPE~]#
[root@UPE~]# mount /dev/cdrom /mnt/cdrom
mount: special device /dev/cdrom does not exist
[root@UPE~]# mount /dev/cdwriter /mnt/cdwriter
mount: special device /dev/cdwriter does not exist
[root@UPE~]# mount /dev/dvd /mnt/dvd
mount: special device /dev/dvd does not exist

if it matters i'm using trying to read the dvd that i used to install vectorlinux and a backup dvd, i also did the command to enable scsi emulation if that matters too... :?

Matir 08-09-2005 12:02 PM

Ok, the first time you put # (pound signs) in front of the lines, making them comments. Secondly, how is your cdrom detected? Try running 'dmesg | grep -i cd'.

lostdata 08-09-2005 12:29 PM

wow sorry i have no idea what i'm doing,

hdc: PIONEER DVD-RW DVR-104, ATAPI CD/DVD-ROM drive
ide-scsi is deprecated for cd burning! Use ide-cd and give dev=/dev/hdX as device
Type: CD-ROM ANSI SCSI revision: 02
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
Attached scsi CD-ROM sr0 at scsi2, channel 0, id 0, lun 0
ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ohci_hcd 0000:00:02.0: ALi Corporation USB 1.1 Controller
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 1
ohci_hcd 0000:00:02.0: irq 9, io mem 0xe9800000
ohci_hcd 0000:00:06.0: ALi Corporation USB 1.1 Controller (#2)
ohci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:06.0: irq 5, io mem 0xe8800000
sr0: Hmm, seems the drive doesn't support multisession CD's

lostdata 08-09-2005 05:27 PM

Any ideas on this? I was going to load a new distro but kinda hard when i can't se my cd writer

Matir 08-09-2005 05:41 PM

BTW, you can turn off scsi emulation. :)

Anyway, try "mount /dev/hdc /mnt/cdrom".

lostdata 08-09-2005 10:30 PM

hmm....


[root@UPE~]# mount /dev/hdc /mnt/cdrom
mount: special device /dev/hdc does not exist


any ideas?

Matir 08-09-2005 10:55 PM

*sigh* Looks like it was detected as hdc. Check out sr0. (mount /dev/sr0 /mnt/cdrom)


All times are GMT -5. The time now is 04:14 PM.