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 09-28-2004, 02:29 PM   #1
sacsjohn
LQ Newbie
 
Registered: Feb 2003
Location: Auburn , IN
Distribution: Red hat 7.2/7.3
Posts: 10

Rep: Reputation: 0
Upgrading HD Volume


Hello all!
I am strugling with a "basic" question that I can not seem to find an answer to in the fourms or faqs. I have a 4G ext3 volume labeled as /ftp on a RH 7.3 box that I am going to be upgrading to a larger volume. I have files backed up and am ready to physcally install the new 100G drive. Are there any config files I need to modify (like etc/fstab?) for this new volume to mount and be used, or just install the drive - FDISK and mkfs as same volume name (/dev/hsc /ftp).
Thanks!
 
Old 09-28-2004, 03:06 PM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
No need to change anything in fstab as long as the new drive is connected exactly the same as the old one and both are the same type (IDE, SCSI)
 
Old 09-28-2004, 04:06 PM   #3
sacsjohn
LQ Newbie
 
Registered: Feb 2003
Location: Auburn , IN
Distribution: Red hat 7.2/7.3
Posts: 10

Original Poster
Rep: Reputation: 0
Yep,
Even same master drive on 2nd IDE Channel on MB. Oki doki....Will Continue with HD upgrade...
Thanks for the info!
 
Old 09-28-2004, 04:18 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
It depends on whether or not you are saying that you've got a 4G drive that is entirely allocated to be the /ftp directory, or if you've got a drive with multiple partitions, one of which is 4G in size and is being allocated to /ftp.

If it's the former, then No, there shouldn't be any fstab changes necessary because you are merely replacing the existing hard drive with one with more capacity. All other things, including the device and partition names would remain the same, and thus, your existing entry for /ftp in the fstab file will remain valid. To illustrate, if your /ftp directory existed on a 4G drive that was located in the primary slave position, then your ftsab would contain a line roughly similar to the following
Code:
/dev/hdb1  /ftp   ext3  defaults  1 2
If it's the latter case however, then what you really are doing is relocating the /ftp directory from one device/partition to another. In this scenario, your existing fstab would need to be updated, in order to correctly specify which partition on which physical device the /ftp directory now exists on. To illustrate, if your existing /ftp directory corresponded to the third partition of your primary slave (ie, /dev/hdb3) and with this new drive you were going to allocate all 100G as a single partition and install the drive in the secondary slave position (ie, /dev/hdd1) then naturally you would need to modify your /ftp entry in fstab to now start using /dev/hdd1 instead of the existing /dev/hdb3.

To illustrate this concept, the "before and after" versions of the /ftp entry would look something like this
Code:
Before:
/dev/hdb3  /ftp   ext3  defaults  1 2
After:
/dev/hdd1  /ftp   ext3   defaults 1 2
Again, because /ftp now resides on a different device/partition, the fstab entry would need to be updated.

Finally, at risk of telling you something you already know, for reference:

/dev/hda = primary master
/dev/hdb = primary slave
/dev/hdc = secondary master
/dev/hdd = secondary slave

Hopefully this makes sense. Good luck with it -- J.W.
 
  


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
Upgrading to Badger! Can't login anymore after upgrading? BellaSha87 Ubuntu 1 12-03-2005 01:09 PM
upgrading (or not upgrading) glibc richarde Slackware 9 09-12-2005 01:56 AM
program volume rather than system volume Moebius Linux - Software 6 11-05-2004 10:57 PM
Adjusting how much volume jumps with volume keys vrillusions Linux - Laptop and Netbook 2 10-17-2003 10:11 PM
Volume davez530 Linux - Newbie 2 04-28-2003 12:07 AM


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