Entry
Linux: Mount: Check: How to determine which are valid block devices?
Dec 15th, 2005 14:23
DarkFlib, Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 18 September 2003 - 07:54 pm ------------------
Linux: Mount: Check: How to determine which are valid block devices?
---
Check e.g. the file
/var/log/dmesg
---
Steps: Overview:
1. -Open a console, and type the command:
cat /var/log/dmesg
or to edit it, using your text processor 'vi':
vi /var/log/dmesg
(to quit from vi, type <ESCAPE>, followed by 'q')
and check for the line of your CD-ROM.
---
For example, on my computer with Linux Red Hat v9.0 it shows the lines
(amongst others)
hdc: VMWare Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive
fd0: Floppy drive(s)
sda1, sda2, sda3, sda4, sda5, sda6, sda7: Partition
---
For CD-ROM, check
/etc/fstab
to see what
/dev
name is used for cdrom
(/dev/cdrom1 instead of /dev/cdrom, etc.).
---
---
There is also the shell command:-
if [ -b /dev/hda ] ; echo "block"; fi
---
Internet: see also:
---
Linux: Mount: Error: device is not a valid block device
http://www.faqts.com/knowledge_base/view.phtml/aid/27871/fid/107
----------------------------------------------------------------------