Help with basic comandline syntax

I'm attempting to apply some user-community (re: Legal) hacks to my Tivo without first gaining a degree in Linux. I need someone to help translate general directions into syntax I can use at the command line.

I would make sure that your CDROM truly is accessible as /dev/hdb, and the hard drive configured as /dev/hdc, otherwise, run the program again, and ensure the correct device names are specified

What command echos the device present at /dev/hdb?

Who is Participating?
Cyclops3590Connect With a Mentor Commented:
try this
dmesg | grep hdb
what do you mean by 'echos'?
ls /dev/hdb?
cat /dev/hdb?
that's true, i guess I just assumed you wanted to see what device the system saw as /dev/hdb
A proven path to a career in data science

At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science  with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

What distro is this? You could check the /etc/fstab file. If the installation has created it and included the detected CD unit, it will be noteed there like this.

<file system>          <mount point>
/dev/hdb                   /media/cdrom

or similar.
by "you", I meant juststeve in case that was confusing.
ozoConnect With a Mentor Commented:
df /dev/hdb
juststeveAuthor Commented:
By 'echos' i mean displays. It's ISOLinux. System is booting off the drive i'm tying to troubleshoot.

ls /dev/hdb just returns that string back highlighted. The Grep command returned stuff that identified the device as the CDROM so far so good.

df /dev/hdb returns 'mount point not found' ??

/dev/hdb returns 'permission denied'

The above return the same for /dev/hdc (the hard drive) so I don't make much of that.

/media/cdrom  and /RID - No such file or directory.


In DOS if i wanted to explore dir trees i'd go:


to change drives and then dir and cd my way along. How do I change the current drive here?

there's no real changing of drive like in windows
in the *nix world its all one big filesystem hierarchy with mount points
if you want to "switch" to a different drive you need to "cd" to the mount point of that drive
for example,
say /dev/hda and /dev/hdb are both partitioned with a swap and one ext3 partition.  say /dev/hda1 is mounted as / and /dev/hdb1 is mounted as /home
the OS seeing them as part of the same filesystem.
does that make sense
btw, do know their mount points, rid already stated the place to look
however another file that might contain the mount point data would be
ridConnect With a Mentor Commented:
In "older" or more tradidional distros, the CD unit would probably mount under /mnt/subdirectory, where you make your own subdirectory for file systems you want to mount. E.g. if you have a usb drive that you connect from time to time, you make a directory like /mnt/usbdisk. Then, as you want to explore the drive, you have to mount it. Assuming a USB drive will be "sda" or similar, you will have to execute :
mount /dev/sda /mnt/usbdisk
which corresponds to <file system> <mount point> in my earlier comment.

Putting a line in /etc/fstab that says basically the same thing, helps insofar as you need not specify the mount point with the mount command: "mount /dev/sda" will suffice.

Wouldn't it be possible to find out what is in the /dev directory that links to "cdrom"?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.