Find the answer to your Linux question:
Results 1 to 3 of 3
It's been about a year since I purchased my new Linux System and I feel my 80Gb internal hard drive is running out of space already. So I've decided to ...
  1. #1
    Banned
    Join Date
    Apr 2011
    Location
    India
    Posts
    1

    Adding Sata Hard disk

    It's been about a year since I purchased my new Linux System and I feel my 80Gb internal hard drive is running out of space already. So I've decided to purchase a new SATA 500Gb internal hard drive and install it as a second hard drive.

    But how do I format and mount the second hard drive in existing Fedora 8 without lossing any data or software ? Kindly help I am a new bee....

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    There are a couple of ways to do this.

    1. Copy the system drive to the new drive using the 'dd if=/dev/sda of=/dev/sdb' command, where /dev/sda is the system drive and /dev/sdb is the new drive. Then, fix up the partition table with the fdisk command, and resize the root and/or home partitions with fsck. Finally, switch drives, and reboot (good luck).

    2. Boot from a live/recovery CD/DVD. Create the appropriate partitions on the new drive, mirroring those on the old system drive. Then, copy the data (skip the swap partition) from each system drive partition to the appropriate new drive partition. Install grub (the boot manager) on the new drive, swap drives, and reboot (good luck).

    3. Swap drives, install FC8 on the new drive, copy data from old drive, and boot (no luck needed, other than making sure that /etc/fstab is properly configured).

    Myself, I'd probably go with option #3.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    2,941
    Quote Originally Posted by saptarshi_mitra View Post
    So I've decided to purchase a new SATA 500Gb internal hard drive and install it as a second hard drive.

    But how do I format and mount the second hard drive in existing Fedora 8 without lossing any data or software ?
    Shutdown the system, connect the second hard drive to the system.

    Partition and format the new hard drive I suggest you use something like the PartedMagic live CD, this will allow you to perform the partitioning etc through a GUI.

    If you want more specific advice on partitioning I suggest you connect the second hard drive and then post the output of
    Code:
    fdisk -l
    mount
    the -l has a small L, and the fdisk command requires root access (either su or sudo).

    Also tell us how you want to use the 2nd hard drive - as a replacement (Rubberman has posted how to do this above), for data storage, to install a second version of Linux etc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...