Results 1 to 2 of 2

Thread: Moving A File System To A Different Partition

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Location
    Bahrain
    Posts
    51

    Moving A File System To A Different Partition

    hi
    I need a bigger / fs so I created a new bigger partition for that, but I donīt know where to go from there,, and how to move the content of the old / to the new one? and how to tell the system of the change?

    btw I am using Mandrake 9.1 and have /, /usr, /var /boot, /tmp, /home each in a seperate patition

    thank you in advance

  2. #2

    Re:Moving A File System To A Different Partition

    Make a folder to mount the newly created partition.

    mkdir /new

    Mount your new partition there

    mount -t filesystem /dev/hd** /new where filesystem is the name of your filesystem, and hd** is your new partition.

    Copy everything in / to /new

    cp -rf /* /new/ (There might be an error here, because it might try to copy /new onto itself. I will check how to get over this when i get home.)

    Edit your boot manager to point / to your new partition.

    For lilo, edit it so that it looks like:

    image = /boot/vmlinuz
    label = linux
    root = /dev/hd**
    then rerun lilo.

    For Grub, you need to reinstall it:

    Install GRUB on the MBR. su -c grubroot (hd0,2) (substitute (hd0,2) for the hard drive and partition where your / is located.), setup (hd0)

    Then edit /etc/fstab to point to your new /.

    /dev/hd*****/ ***ext2 ***defaults ***1 ***1





    EDIT:

    Man, I'm confusing as hell. Let me know if I lost you.

Similar Threads

  1. How to revert my file modes of /etc file system
    By vesskrishna in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 10-26-2009, 05:24 AM
  2. Exceeding quota or full partition hangs system
    By gramdel in forum Linux - General Topics
    Replies: 1
    Last Post: 01-14-2007, 03:13 AM
  3. Definition of System and Boot Partition
    By regix in forum Windows - General Topics
    Replies: 0
    Last Post: 01-04-2005, 08:55 AM
  4. moving root partition
    By gmoreno in forum Linux - General Topics
    Replies: 8
    Last Post: 07-28-2003, 10:49 PM
  5. Moving a file from floppy to hdd
    By Phaete in forum Linux - General Topics
    Replies: 2
    Last Post: 04-20-2002, 01:43 AM

Bookmarks

Posting Permissions

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