LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Upgrading HD Volume (https://www.linuxquestions.org/questions/linux-newbie-8/upgrading-hd-volume-236267/)

sacsjohn 09-28-2004 01:29 PM

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!
:newbie:

linmix 09-28-2004 02:06 PM

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)

sacsjohn 09-28-2004 03:06 PM

Yep,
Even same master drive on 2nd IDE Channel on MB. Oki doki....Will Continue with HD upgrade...
Thanks for the info!

J.W. 09-28-2004 03:18 PM

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.


All times are GMT -5. The time now is 08:32 AM.