Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: kagashe on December 13, 2008, 10:54:10 PM
-
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
-
I have two hard drives and two cdroms.
A simple mount /mnt/hdd mounts my cdrom in the second cdrom drive.
-
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...)
-
My /etc/fstab:
# /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
-
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" `
-
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
-
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.
-
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..?)
-
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.
-
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.
-
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?