WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [SOLVED] Can't mount cdroom.  (Read 6903 times)

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
[SOLVED] Can't mount cdroom.
« on: December 14, 2008, 01:54:10 AM »
I am booting Tinycorelinux by copying the contents of the iso to a spare partition on hard disk and not from CD.

Now I am trying to mount a CD but don't find any entry in /etc/fstab for mounting cdrom.

I can see a mount point /media/cdrom but don't know the /dev for cdrom.

I tried "sudo mount /dev/hdc /media/cdrom" but get a message that /dev/hdc is not a valid block device.

kagashe
« Last Edit: December 14, 2008, 02:58:23 AM by kagashe »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Can't mount cdroom.
« Reply #1 on: December 14, 2008, 02:12:31 AM »
I have two hard drives and two cdroms.
A simple mount /mnt/hdd mounts my cdrom in the second cdrom drive.
10+ Years Contributing to Linux Open Source Projects.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Can't mount cdroom.
« Reply #2 on: December 14, 2008, 02:25:24 AM »
You could see which entry it is in /etc/fstab i.e. with `grep iso9660 /etc/fstab`

Side note: /media/cdrom doesn't seem to be used.  Should it be removed? (or should it be used instead...)
« Last Edit: December 14, 2008, 02:28:43 AM by ^thehatsrule^ »

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
Re: Can't mount cdroom.
« Reply #3 on: December 14, 2008, 02:34:33 AM »
My /etc/fstab:
Quote
# /etc/fstab
proc            /proc        proc    defaults          0       0
sysfs           /sys         sysfs   defaults          0       0
devpts          /dev/pts     devpts  defaults          0       0
tmpfs           /dev/shm     tmpfs   defaults          0       0
/dev/fd0        /mnt/fd0        auto     noauto,users,exec    0 0 # Added by TC
/dev/hda        /mnt/hda        auto     noauto,users,exec    0 0 # Added by TC
/dev/hdd        /mnt/hdd        auto     noauto,users,exec    0 0 # Added by TC
/dev/hdd1       /mnt/hdd1       vfat     noauto,users,exec,umask=000 0 0 # Added by TC
/dev/hdd2       /mnt/hdd2       auto     noauto,users,exec    0 0 # Added by TC
/dev/hdd5       /mnt/hdd5       ntfs     noauto,users,exec,ro,umask=000 0 0 # Added by TC
/dev/hdd6       /mnt/hdd6       vfat     noauto,users,exec,umask=000 0 0 # Added by TC
/dev/hdd7       /mnt/hdd7       vfat     noauto,users,exec,umask=000 0 0 # Added by TC
/dev/hdd8       /mnt/hdd8       ext3     noauto,users,exec    0 0 # Added by TC
/dev/hdd9       none            swap     defaults             0 0 # Added by TC
/dev/hdd10      /mnt/hdd10      ext3     noauto,users,exec    0 0 # Added by TC
Please note that there is no entry for "iso9660" in it. This is happening because I am not booting from cdrom.

I think I need to create an entry for cdrom in /etc/fstab before attempting to mount.

kagashe

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: Can't mount cdroom.
« Reply #4 on: December 14, 2008, 02:37:37 AM »
Well, there's no hdc there... with process of elimination: hda

If you want a more direct way, maybe using `grep name /proc/sys/dev/cdrom/info ` would work.  And there's always `dmesg | grep "^hd" `
« Last Edit: December 14, 2008, 02:44:43 AM by ^thehatsrule^ »

Offline kagashe

  • Full Member
  • ***
  • Posts: 129
    • My Tryst with Linux
Re: Can't mount cdroom.
« Reply #5 on: December 14, 2008, 02:57:45 AM »
Well, there's no hdc there... with process of elimination: hda

If you want a more direct way, maybe using `grep name /proc/sys/dev/cdrom/info ` would work.  And there's always `dmesg | grep "^hd" `
ok. "sudo mount /dev/hda /media/cdrom works".

Thank you.

kagashe

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: Can't mount cdroom.
« Reply #6 on: December 14, 2008, 01:47:05 PM »
You could see which entry it is in /etc/fstab i.e. with `grep iso9660 /etc/fstab`

Side note: /media/cdrom doesn't seem to be used.  Should it be removed? (or should it be used instead...)

Correct /media/cdrom is not used and should be removed.

I am trying to be consistent with /dev/name is the same as /mnt/name that way I am not having to remember is it /mnt or /media, is /mnt/fd0 or /mnt/floppy? Staying consistent makes it easier to remember.

mount /mnt/hda will mount the cdrom in the above discussion.
10+ Years Contributing to Linux Open Source Projects.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: [SOLVED] Can't mount cdroom.
« Reply #7 on: December 14, 2008, 03:13:53 PM »
It depends on whether or not we want to be closer to FHS or not.  We're not strictly following this for other things, but I guess that users such as the OP expected his cdrom to be accessible via /media/cdrom...  Reference: http://www.pathname.com/fhs/pub/fhs-2.3.html#MEDIAMOUNTPOINT

It may be convenient for the user to have /media/cdrom* set by the system.  Is it required though?  Probably not.  (nice-to-have perhaps - then again, we are in a "live"(cd) environment which may mean all mounted filesystems are temporary..?)
« Last Edit: December 14, 2008, 03:23:18 PM by ^thehatsrule^ »

Offline tobiaus

  • Suspended
  • Hero Member
  • *****
  • Posts: 599
Re: [SOLVED] Can't mount cdroom.
« Reply #8 on: December 14, 2008, 03:38:06 PM »
closest i've seen to a standard for livecd's is i've seen cdrom refer to the cloop (afaik tc doesn't use cloop but whatever it uses) and cdrom0 refer to the actual drive when it's mounted.

what cdrom0 is depends on the actual device, but in tc sudo mount /mnt/cdrom or /mnt/cdrom0 should be a good standard, only my opinion.

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: [SOLVED] Can't mount cdroom.
« Reply #9 on: March 26, 2009, 05:41:18 AM »
If I recall, cdrom, cdrom1, etc, was available for playing audio cd's in dsl. (unmounted)  The cd device is loaded on hdc (according to dmesg), but I haven't been able to get it to play anything  with xmms. 

« Last Edit: March 26, 2009, 07:22:56 AM by jpeters »

Offline henrique

  • Newbie
  • *
  • Posts: 3
Re: [SOLVED] Can't mount cdroom.
« Reply #10 on: April 02, 2009, 07:55:40 AM »
Not sure if I should continue on this thread or create another one, but the thing is I can`t use my cd-rom in TC. So here goes.

This is what my fstab looks like:
# /etc/fstab
proc            /proc        proc    defaults          0       0
sysfs           /sys         sysfs   defaults          0       0
devpts          /dev/pts     devpts  defaults          0       0
tmpfs           /dev/shm     tmpfs   defaults          0       0
/dev/sda        /mnt/sda        auto     noauto,users,exec    0 0 # Added by TC
/dev/sda1       /mnt/sda1       ext3     noauto,users,exec,relatime 0 0 # Added by TC
/dev/sda2       /mnt/sda2       ext3     noauto,users,exec,relatime 0 0 # Added by TC

This command:
grep name /proc/sys/dev/cdrom/info
returns:
drive name:

dmesg | grep "^hd" returns nothing also

/dev/sda1 and /dev/sda2 are 2 partitions in my sata hd.

Any clues?