LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2008, 09:18 AM   #1
ramchip
LQ Newbie
 
Registered: Feb 2008
Location: UK
Distribution: Slackware
Posts: 17

Rep: Reputation: 0
Does mount error indicate a hardware fault?


Hello folks,

I tried mounting a CD on my old Slackware box:

darkstar:~#mount -t ext2 /dev/hdc /mnt

It responded:

mount: /dev/hdc is not a valid block device.

I welcome any suggestions about how to fault find this situation.

Regards, ramchip
 
Old 03-17-2008, 09:26 AM   #2
sydney-troz
Member
 
Registered: Feb 2007
Distribution: Kubuntu, it's obese barely-usable sibling, Ubuntu
Posts: 142

Rep: Reputation: 15
Ext2 is a strange filesystem for a CD, are you sure it's not iso or udf?.

As for your error, are you sure hdc is your cd drive? Have you been able to successfully mount it before?
 
Old 03-17-2008, 09:31 AM   #3
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
As sydney-troz is pointing to, try:

Code:
mount -t iso9660 /dev/hdc /mnt
HTH

Forrest
 
Old 03-17-2008, 09:39 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
CD-ROMs are usually ISO9660 formatted, so you should try that. It is also often the case that your system will have a symbolic link from /dev/cdrom to the device which is your cd drive, although I don't know about the case of slackware - maybe it's left up to the system admin to create this if they want it. It's automatic on lots of other distros though.

If you have the symlink, and it is correct, try this:
Code:
mount -t iso9660 /dev/cdrom /mnt
Of course, make sure nothing else is mounted on at /mnt first.

If you don't have the /dev/cdrom link, and you are not sure of the device to use, try doing:
Code:
dmesg |grep -i -e CDROM -e CD-ROM
In my case, I get this output:
Code:
[    4.464000] scsi 1:0:0:0: CD-ROM            _NEC     DVD+RW ND-5100A  10AC PQ: 0 ANSI: 5
[    4.652000] Uniform CD-ROM driver Revision: 3.20
[    4.652000] sr 1:0:0:0: Attached scsi CD-ROM sr0
The CD device is /dev/sr0.
 
Old 03-18-2008, 06:55 AM   #5
ramchip
LQ Newbie
 
Registered: Feb 2008
Location: UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: 0
My silly mistake, of course it should have been -t iso9660. Anyway, the mount command issued the same error message, complaining about the device.
I booted into Windows to check the hardware at a basic level. The CD-ROM reads alright. However, it doesn't want to boot from a bootable CD-ROM. BIOS is set to try CD-ROM, then floppy, then hard disk. The bootable CD-ROM is just ignored and the boot happens from the hard disk when no floppy is present.

The dmesg command produced these results:

hdc: CD-532E-B, ATAPI CDROM drive
hdc: ATAPI 32X CD-ROM drive, 128kB Cache
Uniform CDROM driver REvision: 2.54

Maybe that old CD-ROM drive is flakey now, but I would like Linux to help me find out the truth.

Are there any diagnostic progams I can run to test the drive?

It's annoying that it refuses to boot from a CD. The machine is a dual-boot system which needs a floopy to boot into Slackware. I have a DSL bootable CD-ROM that I would like to try on this system.

Thanks to all for your help so far, long may it continue!

Regards, ramchip
 
Old 03-18-2008, 07:05 AM   #6
pkhera_2001
Member
 
Registered: Mar 2006
Location: New Delhi, India
Distribution: Fedora, CentOS, RHEL, Ubuntu
Posts: 67

Rep: Reputation: 18
Hello,

Boot your machine into slackware and chec with following command:

mount -t iso9660 -o loop /dev/hdc /mnt

Before this you should verify that /mnt folder exists and it's not mounted already.

Kindly post the contents of /mnt folder once cdrom is mounted to see if it's really botable, use this command :

ls -la

Regards,
PK
 
Old 03-18-2008, 09:39 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
There could be several reasons:

Look at your grub.conf or lilo.conf file. If you are using SCSI emulation i.e. hdc=ide-scsi then you should be using /dev/scd0 instead of /dev/hdc. Have you ever been able to mount CDs in the past? Post your /etc/fstab entry for your CDROM.

Do you know this CD is actually bootable? How was it created? If the CDs contents are a single ISO file then it was not burned correctly. If this is a really old PC the CDROM drive might not be able to handle new 700mb CDs. Yes the drive could be flaky but have you tried other bootable CDs?

BTW you can not tell from the /mnt folder to know if a CD is bootable.
 
Old 03-18-2008, 01:05 PM   #8
ramchip
LQ Newbie
 
Registered: Feb 2008
Location: UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: 0
Okay, the "-o loop" option gives the same error.

Previously I said "I have a DSL bootable CD-ROM". I confirm that this CD is viable since it boots another machine into DSL without any
trouble at all.

Looking in /etc/fstab there is no entry for /dev/hdc.
So, the problem appears to be a deficient fstab.

What would be the best way to correct that?
Run a script to update it or edit the file?

Regards, ramchip
 
Old 03-18-2008, 01:57 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,937

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
You could manually edit the file but that would not fix the issue since you are manually mounting the CD the fstab file is not being used. Have you looked at your bootloader configuration file? Have you tried other bootable CDs in this computer?
 
Old 03-20-2008, 08:33 AM   #10
ramchip
LQ Newbie
 
Registered: Feb 2008
Location: UK
Distribution: Slackware
Posts: 17

Original Poster
Rep: Reputation: 0
Hello michaelk and other readers,

The delay in my reply was caused by having to cast around for another bootable CD to try in the Teac CD-ROM drive.
I found a Windows Recovery Console CD that I made a few years ago. That boots okay!

My Linux boot loader is Loadlin (from floppy) and I'm not using SCSI emulation.

The strange thing is that my bootable DSL CD fails in this CD-ROM drive, yet works on two other systems.

The BIOS message says: "Loading boot record from CDROM.."

Then a few seconds later I see: " - not found", and the boot chain looks for a bootable floopy, then the hard disk.

I've read that a possible fix is to check the /etc/mkinitrd/modules file and add ide-cd, ide-disk and ide-generic, then remake the boot image. Is that the easiest way forward or is there a simple fix?

Regards, ramchip
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic, thought it was due to hardware fault???! klod Linux - Hardware 4 04-21-2008 11:32 PM
hardware access leads to segmentation fault MikeMc Linux - Software 2 03-14-2006 02:02 PM
mount-command yields segmentation fault forest_bear Linux - General 1 11-10-2005 04:58 AM
mount: segmentation fault guldo Linux - General 2 11-29-2004 08:27 AM
Segmentation fault during Slackware setup. Suspect hardware. JackFlanders Linux - Hardware 4 09-23-2004 05:20 PM


All times are GMT -5. The time now is 06:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration