LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-02-2002, 10:06 PM   #1
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Rep: Reputation: 15
So where is hdc?


I've got a second hard drive (hdc) in my system, and I can't access it.

I've been using Mandrake for quite some time, and decided to try SUSE and Red Hat. Both SUSE and Mandrake automatically set up a subdirectory in /mnt for hdc, but Red Hat didn't.

How do I configure Red Hat 7.2 so I can access my backed up /home directory on hdc?

If this is documented somewhere, please tell me where and I'll find my own answer, but as a Linux newbie I honestly don't have a clue as to which FM I need to R. (There should have been a "T" in there somewhere, but there's not.)

I guess that's my real question. What specific document will tell me how to attach hdc to a directory in /mnt?

Thanks!
 
Old 06-02-2002, 10:42 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
you first need to know on what partition of hdc is your backed up /home
and what filesystem it uses - ext2/3 ?
mount -text2/3 /dev/hdcN /mnt/backup
/mnt/backup must exist for this to work, you should figure out on which partition of hdc is the data you need, and the original filesystem.
 
Old 06-03-2002, 12:03 AM   #3
sakeeb
Member
 
Registered: Apr 2002
Posts: 270

Rep: Reputation: 31
in redhat to use a partition automatically you have to specify the mount point. i think didn't specify that. you can make a directory for hdc in /mnt mannually and add an entry in /etc/fstab to mount it automatically each time linux boots.

read fstab manual page.

if you want to set your backed home directory as your currect home dierectory use adduser -D option. Read useradd man page
 
Old 06-03-2002, 12:32 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Get into a console screen or a terminal window and run the command
fdisk -l /dev/hdc. This will give you a list of partitions on hdc.

Next run:

mkdir /mnt/home_backup
mount -t ext2 /dev/hdc? /mnt/home_backup


This will create the directory home_backup for the mount point and try to mount the partition /dev/hdc?. Replace the ? with the correct partition number. If the mount command works, you could add a line to your /etc/fstab file to make it easier to mount it.

The line would look something like this:

/dev/hdc? /mnt/home_backup ext2 noauto,defaults 1 2

As before, replace the ? with the correct number. Then all you have to do to mount it is run mount /mnt/home_backup or mount /dev/hdc?.
 
Old 06-03-2002, 05:46 AM   #5
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
The fdisk command you recommended gives this output:

Disk /dev/hdc: 240 heads, 63 sectors, 1092 cylinders
Units = cylinders of 15120 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1092 8255488+ c Win95 FAT32 (LBA)

I made myself root, and made the directory. (The second drive is actually the original windows drive that was in the PC.)

mkdir /mnt/windows

The mount command you suggested didn't work though. Here's the command and the output:

[root@localhost blalobw]# mount -t FAT32 /dev/hdc1 /mnt/windows
mount: fs type FAT32 not supported by kernel

I also tried "Win95" and "Win95 FAT32" with no success.

It seems impossable that Red Hat wouldn't provide support for FAT filesystems in thier kernal. What did I do wrong?

Time for a brute force solution. I'm going to use my Demolinux CD to get access to hdc, and email myself a few of the files I need. (I talk to myself too.)

Thanks!
 
Old 06-03-2002, 07:38 PM   #6
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You've almost got it. Run this command as root:

mount -t vfat /dev/hdc1 /mnt/windows

The mount command does not recognize FAT32. Check the man page for mount to see what file system names it recognizes.
 
Old 06-04-2002, 05:59 AM   #7
BBlalock
Member
 
Registered: Apr 2002
Posts: 47

Original Poster
Rep: Reputation: 15
Ahhh, that worked perfectly!

Thats what I get for assuming that fdisk was going to give me the file system type in a useful format.

Now all I need to do is to get that /ect/fstab entry made so I don't have to do this manually every time.

Thanks again!
 
Old 06-05-2002, 03:11 AM   #8
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
No hdc? Where did it go? logosys Linux - Newbie 8 09-08-2005 09:40 PM
hdc: lost interrupt sybille Slackware 2 06-18-2005 11:23 AM
hdc read error TomalakBORG Linux - Laptop and Netbook 0 03-16-2005 12:16 PM
hdparm -d1 /dev/hdc linuxnubx Linux - Newbie 5 08-31-2004 05:50 AM
Submount and /dev/hdc r_jensen11 Linux - Hardware 4 08-20-2004 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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