LinuxQuestions.org
Register a domain and help support LQ
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 01-22-2005, 09:39 PM   #1
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Rep: Reputation: 15
help mounting new hdd-Linux finally crashed


I haven't been in this forum in many years; y'all help me get my first linux server up and running and I haven't had any troubles with it untill if finally pooped out on me the other day. I forgot most of what I new about linux for lack of use, so maybe y'all can tell me what I'm doing wrong?

I have 2 linux hard drives... I have redhat 7.2 freshly installed on a 10gb and then I have a linux partitioned 120gb that has all my backed up media. When I boot my computer I see that the new hard drive is labeled hdc

When I try to run the mount command 'mount -t etc3 /dev/hdc /media' I get an error "mount: /dev/hdc/ is not a valid block device" does this mean it's not recognizing hdc? I don't see it listed with I do mount -l or fdisk -l

Please help!
-Andy

Last edited by XxAndyxX; 01-22-2005 at 09:57 PM.
 
Old 01-22-2005, 09:42 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
Do you have it in /etc/fstab?
nano -w /etc/fstab

Last edited by comprookie2000; 01-22-2005 at 09:43 PM.
 
Old 01-22-2005, 09:56 PM   #3
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by comprookie2000
Do you have it in /etc/fstab?
nano -w /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
/dev/hda7 swap swap defaults 0 0


What a I looking for? HDC? I know it says it when it boots...
 
Old 01-22-2005, 10:14 PM   #4
teckk
Senior Member
 
Registered: Oct 2004
Distribution: FreeBSD Arch
Posts: 1,825

Rep: Reputation: 221Reputation: 221Reputation: 221
When I try to run the mount command 'mount -t etc3 /dev/hdc /media' I get an error "mount: /dev/hdc/ is not a valid block device" does this mean it's not recognizing hdc? I don't see it listed with I do mount -l or fdisk -l

Is that a typo, it should be mount -t ext3

Which drive is hda that your fstab points to?
I would say that you have 7 partitions on hda that are mounted.

If you have that 120GB drive partitioned and formated ext3 then your mount command should look something like
mount -t ext3 /dev/hdc /media auto users
That is assuming that you have a folder under / named /media

Are you trying to mount the drive as user or root?

hdc would be the master drive on the secondary IDE controller. Is that where you have it?
 
Old 01-22-2005, 10:47 PM   #5
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by teckk
When I try to run the mount command 'mount -t etc3 /dev/hdc /media' I get an error "mount: /dev/hdc/ is not a valid block device" does this mean it's not recognizing hdc? I don't see it listed with I do mount -l or fdisk -l

Is that a typo, it should be mount -t ext3

Which drive is hda that your fstab points to?
I would say that you have 7 partitions on hda that are mounted.

If you have that 120GB drive partitioned and formated ext3 then your mount command should look something like
mount -t ext3 /dev/hdc /media auto users
That is assuming that you have a folder under / named /media

Are you trying to mount the drive as user or root?

hdc would be the master drive on the secondary IDE controller. Is that where you have it?
Yes, that was a typo. I'm mounting it as root, and yes it's on the secondary IDE controller.

When I try to use the command 'mount -t ext3 /dev/hdc /media auto users' it doesn't work (it just acts like I put in the wrong command).
 
Old 01-22-2005, 11:15 PM   #6
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
you mount partitions, not the entire hdd - for example,

mount -t ext3 /dev/hdc1 /media

or hdc2, etc.....
 
Old 01-23-2005, 02:35 AM   #7
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Genesee
you mount partitions, not the entire hdd - for example,

mount -t ext3 /dev/hdc1 /media

or hdc2, etc.....
It says the same thing...

[root@localhost root]# mount -t ext3 /dev/hdc1 /media
mount: /dev/hdc1 is not a valid block device

...is that what it says when it doesn't even recognize the hard drive?
 
  


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
securing linux HDD mounting with magic number ?? Bluesuperman Linux - Security 1 11-27-2004 08:52 AM
Mounting hdd linuxmandrake Linux - Newbie 2 11-19-2004 05:20 AM
mounting a fat32 hdd on my linux server halaszrobert Linux - Networking 1 08-09-2004 01:54 AM
linux crashed my hdd Faddeous Dookie Linux - Hardware 1 09-08-2003 01:11 AM
Mounting HDD vs. Mounting Filesystem snailophone Linux - Hardware 4 08-12-2003 12:00 PM


All times are GMT -5. The time now is 10:51 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