LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2002, 05:16 AM   #1
Gveto
LQ Newbie
 
Registered: Dec 2002
Location: BU - Peoria, IL.
Distribution: RedHat 8.0
Posts: 25

Rep: Reputation: 15
/dev all screwed up...


In the process of trying to link /dev/cdrom to /dev/hdd, a mistake was (obviously) made, and now /dev/hdd , /dev/cdrom , and /dev/dvd are all reported as broken links and denoted with "X" icons... I tried to use MAKEDEV to fix at least /dev/hdd, but that seemingly did nothing...
How do I fix this problem, and return the files to their original values?
Thanks.
Gveto
 
Old 12-14-2002, 05:21 AM   #2
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
Hmm

Don't you want to mount like this:

mount /dev/cdrom /mnt/cdrom

and not hdd?

I've never seen hdd used. Usually there's a number referring to the partition you're mounting.
 
Old 12-14-2002, 05:22 AM   #3
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
OOPS!

Not a mount question....sorry. Let me work on it...
 
Old 12-14-2002, 11:48 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
So it looks like you symlinked /dev/hdd to /dev/cdrom instead of the other way around then. I'd fix it by removing the symlink /dev/hdd and then try running MAKEDEV, that's how I fixed it when I did a similar mistake

Oh, and just to be completely safe, I grabbed MAKEDEV, and ran it in a different directory, then moved the /dev/hdd back to my /dev directory:
mv /home/temp/hdd /dev/hdd

But the key here is that you need to remove the bad symlink (which is a symlink to a symlink of itself right now) and then make the new device.

Cool
 
Old 12-14-2002, 04:14 PM   #5
Gveto
LQ Newbie
 
Registered: Dec 2002
Location: BU - Peoria, IL.
Distribution: RedHat 8.0
Posts: 25

Original Poster
Rep: Reputation: 15
Hey - thanks for the quick reply.
I did some research on block devices, and found that MAKEDEV was what I needed, and I tried that (in the /dev directory, though) with no avail as mentioned above... This was before I posted. So, I copied MAKEDEV in to a temporary directory, and tried to run it from there from shell:

Code:
[root@wyc412djh-1 devtemp]# ./MAKEDEV -v default
And nothing happens... Shouldn't this create all of the block device files since I specified no specific devices? Nothing is created in the directory....
And what worries me is that the file MAKEDEV size is listed as 0 bytes...
So, I downloaded the MAKEDEV .rpm for my distribution (RH 8.0), and it says that that package is already installed... Fair enough, but shouldn't this file have something in it?
Please, oh Linux gurus... Tell me where I'm going wrong!
Thanks.
Gveto
 
Old 12-14-2002, 04:27 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
I got my MAKEDEV from the LFS files. Here's a link:
ftp://ftp.linuxfromscratch.org/lfs-p...AKEDEV-1.7.bz2

Then extract it, wherever you want, probably that temp directory, then run:
./MAKEDEV -v generic

This *should* create those devices in that temp directory. Then you *should* as root, be able to move the needed missing device to the /dev directory.

The only problem I can think you might have is if RH is using DevFS, in which case you should simply be able to fix it with a reboot I'd think.

Cool
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
Ubuntu screwed up my second Windows (/dev/hda5 HPFS/NTFS) partition howyen Ubuntu 5 04-12-2005 12:11 PM
How can I boot either one of my hard drives /dev/hda or /dev/hdb, I have RH9 and FC2 omogunkristi Linux - General 1 06-21-2004 05:11 AM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:40 PM.

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
Open Source Consulting | Domain Registration