Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Peripherals / Hardware
Reload this Page Replacing a failing hard drive
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Peripherals / Hardware Is your hardware supported? Having trouble getting some hardware working? Post here!

Reply
 
Thread Tools Display Modes
Old 06-14-2005   #1 (permalink)
papadilbert
Just Joined!
 
Join Date: Jun 2005
Posts: 3
Replacing a failing hard drive

I have a SUSE linux system with 2 hard drives. One of the drives needs to be replaced. How do I do it?
papadilbert is offline   Reply With Quote
Old 06-14-2005   #2 (permalink)
zachtib
Linux User
 
Join Date: Dec 2004
Location: Speed School of Engineering
Posts: 267
I assume you mean on the software side of things.
Pop open your computer and replace the drive in question. When SuSE boots, it should detect the new drive and ask you to set it up / partition it

Unless of course the bad drive is the drive SuSE was installed to, in which case you'll have to reinstall SuSE
zachtib is offline   Reply With Quote
Old 06-14-2005   #3 (permalink)
papadilbert
Just Joined!
 
Join Date: Jun 2005
Posts: 3
The drive I needed to replace was the one where /home was mounted. I thought I'd get lucky and copy off the data before the drive died. I wasn't so lucky. It's dead and buried. The drive has been replaced but the data is gone.

And yes, I was referring to what was necessary system-wise to create a replacement /home partition. I was using jfs for this partition and have now switched to ext3. Was that a good or bad move?
papadilbert is offline   Reply With Quote
Old 06-14-2005   #4 (permalink)
zachtib
Linux User
 
Join Date: Dec 2004
Location: Speed School of Engineering
Posts: 267
i dont know much about different filesystems, I always use reiserFS myself
S, did you get the new drive working and mounted under /home?
zachtib is offline   Reply With Quote
Old 06-14-2005   #5 (permalink)
anomie
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
1. After physically adding the new drive (remember to set jumpers correctly if it is slave), then use
Code:
fdisk
to create a new Linux partition.

2. One you are done with that you do not have to reboot. Instead use
Code:
partprobe
to make Linux aware of the newly created partition.

3. Create your filesystem on the new drive. Use
Code:
mke2fs
or whatever you want.

4. Add an entry to /etc/fstab. Will probably look something like this for you:
Code:
/dev/hdb1            /home                ext3       acl,user_xattr        1 2
- NOTE: This assumes partition is on second physical drive, first partition; also assumes ext3 filesystem.

5. Either reboot or (my preference) drop down to single-user mode with
Code:
init 1
and then back up to your normal runlevel - I am assuming 5, so
Code:
init 5
That should do it.

To answer your question, yes it was a good move to start using ext3.
anomie is offline   Reply With Quote
Old 06-14-2005   #6 (permalink)
papadilbert
Just Joined!
 
Join Date: Jun 2005
Posts: 3
My system is back online. Thanks for all the help!!!!
papadilbert is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 09:16 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0