LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-26-2007, 04:25 AM   #1
jerds
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Rep: Reputation: 0
Mounting a drive


Hi guys, part of my drive failed apperantly, (determined here by other users, thanks!) that caused it to not find the proper users and whatnot during boot. Anyways I was able to use a rescue disk and load linux, and I could see all of the info on the drive is still intact.
I just loaded a fresh install of Linux on a brand new drive, and the computer works fine, I have the second drive plugged into the box, it finds it at boot, now how do I "mount" it, I vaguely remember the command, but I can't seam to get it right.
I can do mount /dev/hdb1 /mnt and that loads something into the /mnt directory, but it's not teh entire drive. If I do mount /dev/hdb2 /mnt it says "Mount: you must specify the filesystem type" ... I think hdb2 is the part of the drive containing the files? What do I need to do to specific it? Thanks for any advice!
 
Old 01-26-2007, 04:34 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
It seems that mount does not recognize the filsystem type of the drive. Please, do
Code:
fdisk -l
as root and post the result here. Thanks.
 
Old 01-26-2007, 04:39 AM   #3
jerds
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix
It seems that mount does not recognize the filsystem type of the drive. Please, do
Code:
fdisk -l
as root and post the result here. Thanks.
fdisk doesn't do anything, it just gives the stock unrecognized command line, I'm running FC6 if that helps.
 
Old 01-26-2007, 04:42 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Only as root you can do fdisk.
 
Old 01-26-2007, 04:43 AM   #5
jerds
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix
Only as root you can do fdisk.
Thats actually the only user account I have set up on the computer, so I am logged in as root...
 
Old 01-26-2007, 04:51 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Uh oh... probably you miss some utility. Check if you have the util-linux package installed. Try this:
Code:
rpm -q util-linux
 
Old 01-26-2007, 04:55 AM   #7
PennyroyalFrog
Member
 
Registered: Mar 2004
Location: Michigan
Distribution: Gentoo 2006.1
Posts: 107

Rep: Reputation: 15
Try:

Code:
/sbin/fdisk -l
It will display all your partitons as well. Unless you stored other directories on other partitions, such as your /home, /var, or /tmp, all your data would probably be on the root partition. Your hdb2 was probably your swap partition.

Also, you it will be a bit more organized if make a directory within /mnt and mount your hard drive there instead of mounting to just /mnt.

Code:
mkdir /mnt/slave
mount /dev/hdb1 /mnt/slave
Keep in mind you can use another name than "slave".

Last edited by PennyroyalFrog; 01-26-2007 at 04:57 AM.
 
Old 01-26-2007, 04:55 AM   #8
jerds
LQ Newbie
 
Registered: Jan 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by colucix
Uh oh... probably you miss some utility. Check if you have the util-linux package installed. Try this:
Code:
rpm -q util-linux
I just pulled the drive out of my linux box, and put it into my windows box, and used a program called explore2fs and it found the drive, loaded it, and I am recoving my files now! WHEW!

The only thing the computer did was be a web server honestly, so my www folder is all I'm getting, however I set up a bunch of domains and stuff like that for httpd when it starts. Do you happen to know where that file is that contains all that data so I can just copy that over without having to reconfigure my entire webserver again?
 
  


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
Mounting split raid drive as normal drive via USB William_Syd Linux - Newbie 2 11-01-2006 07:07 PM
mounting a cd drive ayman718 Linux - Newbie 8 05-19-2006 01:40 PM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 06:23 PM
Drive mounting iamsyk Linux - General 1 09-22-2003 11:57 AM
mounting drive chrismiceli Linux - General 6 12-04-2002 12:49 AM


All times are GMT -5. The time now is 09:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration