Re: Additional HardDisk

From: IAK Tanoli (sendtoimtiaz_at_yahoo.com)
Date: 04/11/04

  • Next message: peter_at_vratny.at: "Re: Additional HardDisk"
    Date: Sun, 11 Apr 2004 12:14:48 -0700 (PDT)
    To: General Red Hat Linux discussion list <redhat-list@redhat.com>
    
    
    

    Step 1:
    Create partitions using fdisk
    e.g fdisk /dev/hdb (for primary slave)
     
    Step 2:
    Create file system using mkfs.ext3
    e.g mkfs.ext /dev/hdb1
     
    Step 3:
    mount partitions
    # mkdir /mnt/hd2
    # mkdir /mnt/hd3
     
    # mount /dev/hdb1 /mnt/hd2
    # mount /dev/hdb2 /mnt/hd3
     
    Step 4:
    copy dir. to that paritions
    # cp -rf /home /mnt/hd2
    # cp -rf /var /mnt/hd3
     
    Step 5:
    rename old directories
     
    # mv -f /home /homeold
    # mv -f /var /varold
     
    Step 6:
    Add to fstab
     
    # vi /etc/fstab
    /dev/hdb1 /home auto defaults 0 0
    /dev/hdb2 /var auto defaults 0 0

    Step 7:
    Reboot system and make sure that every this is ok and all data in /home and /var is there.
     
    Step 8:
    After surity of step 7 delete /homeold and /varold
    # rm -rf /homeold
    # rm -rf /varold
     
     
    regards
     
     

     

     
    Bilal Dar <bdar@pbad.sbg.com.sa> wrote:

    Dear All,
     
    My harddrive got full, so I added another one. Now I do not know how to expand the older filesystems, I just made partitions using filesystem. How can I format it using ext3 and move /home /var to the new harddisk.
     
    Thanks.

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    --
    ________________
    Imtiaz Ahmed Khan
    Sr. System Consultant
    ANTS Consultiing
    Org:            ANTS Consulting
    URL:           http://ants.com.pk/
    Eml:            sendtoimtiaz@yahoo.com
    Mob:           +92300-2128278 
    ___________________________________
    ---------------------------------
    Do you Yahoo!?
    Yahoo! Tax Center - File online by April 15th
    
    

    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: peter_at_vratny.at: "Re: Additional HardDisk"

    Relevant Pages

    • Re: Boot failure after installation
      ... You just type fdisk devname where devname is the disk device. ... You can only mount a file system. ... Use newfs to create file systems on each of the partitions except swap & c. ... Just boot it up and run it. ...
      (freebsd-questions)
    • Re: How do I "see" a hard drive?
      ... at a shell command line. ... you can see the partitions. ... but if you /must/ use fdisk to see partitions, ... If your CD does not mount the partitions automatically, ...
      (comp.os.linux.powerpc)
    • Re: mounting msdosfs
      ... > I got two msdosfspartitions on my machine. ... > I can mount them without any problems, but fsck wont work. ... determine the order in which file system checks are done at reboot time. ...
      (freebsd-current)
    • Re: Read Apple hard drive -
      ... into an F-8 computer. ... fdisk sees it as /dev/sdb but that's about as ... few partitions on an Apple HFS drive. ... One of them will be large and that's the one you will want to mount. ...
      (Fedora)
    • Re: Read Apple hard drive -
      ... into an F-8 computer. ... fdisk sees it as /dev/sdb but that's about as ... few partitions on an Apple HFS drive. ... One of them will be large and that's the one you will want to mount. ...
      (Fedora)