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 05-06-2004, 07:12 PM   #1
amanu1
LQ Newbie
 
Registered: Nov 2003
Posts: 8

Rep: Reputation: 0
RH9 - won't boot - messed up fstab


hi

I have a fresh redhat 9 version of linux. I was adding a second hard drive and changed the /etc/fstab file. Unfortunately, I messed it up!

When booting, it errors on loading the second drive. It gives the chance to fix the problem, but I don't know what to do. It will not let me get as far as editing the fstab file.

I do not have a recovery disc (the box does not have a floppy). Is there any solution other than reinstalling?

Also, is there a simple guide to installing a second hard drive so that I don't mess it up again!

Thanks

Aman
 
Old 05-06-2004, 07:52 PM   #2
Boby
Member
 
Registered: Feb 2004
Posts: 781

Rep: Reputation: Disabled
hello

ok, if you want to install youre 2-nd harddrive...it should be located in /dev/hdb. has youre hdd only one partition? is it the wondows hdd?
we say it is only one partition, and ...you can install it this way:

Code:
fdisk -l
shows all partions of youre harddisks
Code:
su -
you get root privileges
Code:
mkdir /mnt/drive2
makes a directory where you find the files located on youre second hdd
Code:
mount -t ext3 /dev/hdb1 /mnt/drive2
mounts the hdd to the directorie

to automount youre hdd at every boot edit youre /etc/fstab and add this:

Code:
/dev/hdb1               /mnt/winguest           auto    defaults        0 0
if youre "fdisk -l" shows other partitions, you have to change hdb1 to the other one.

hope this helped you!

cheers, boby
 
  


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
Need with messed up fstab. Tiyogi Linux - General 11 03-26-2008 12:57 AM
Messed up my fstab, now wont boot! Help, please. MillyFish Linux - Newbie 11 05-13-2004 07:37 AM
fstab got messed up after adding cd burner drrnsk8ter4 Linux - Software 3 04-24-2004 05:49 PM
I think my RH9.0 install is really messed up...very weird chornobyl Red Hat 2 03-31-2004 12:54 AM
messed up my fstab file aditya Linux - Newbie 1 10-07-2002 12:49 AM

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

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