Results 1 to 4 of 4

Thread: how can i change /var partition to /home??

  1. #1
    Poster BT Rep: +1
    Join Date
    Nov 2009
    Posts
    58
    how can i change /var partition to /home??

  2. Software & Hardware   -   #2
    Cabalo's Avatar FileSharingTalker BT Rep: +24BT Rep +24BT Rep +24BT Rep +24BT Rep +24
    Join Date
    Mar 2007
    Location
    European Union
    Age
    42
    Posts
    12,718
    GpartED ?

  3. Software & Hardware   -   #3
    Expeto's Avatar current user title
    Join Date
    Apr 2010
    Posts
    487
    What is the point? Why the hell do you want your var part to be your home part? Don't fuck with your Linux Filesystem Hierarchy.

    Thinks will get ugly! Specially opposite partitions like /home(a place to make your files permanent) and the /var (a place for VARiable data ).

    BTW, /var /proc /boot /dev /etc are usually not partitions, they are usually just folders of the root(/) partition. /home could be linked to a partition in some cases

    Also, making your home your var will fuck the system for other users, because they won't be able to connect the /var. Because your /var will be your home, and your home is protected against other users, so their software won't be able to store variable info like locks and other stuff. [notice the difference between home (/home/yourusername/ or ~/ ) and /home, they are very different things!] Do a chmod -R 777 to work around this problem, but this is a very insecure.

    if you still want to do it;

    #ln -s /var /home

    than
    #ls -l
    to check it.


    This makes a symbolic link to connect them. Symbolic links are really confusing things to play with.
    RTFMan-page (man ln) for more info.

    If you have another question, add the output of fdisk -l and uname -a to you post.

    #An example;
    Code:
    [Expeto@localhost ~]$ mkdir exmpleFST
    [Expeto@localhost ~]$ cd exmpleFST/
    [Expeto@localhost exmpleFST]$ ls
    [Expeto@localhost exmpleFST]$ #nothin here
    [Expeto@localhost exmpleFST]$ mkdir home
    [Expeto@localhost exmpleFST]$ ls
    home
    [Expeto@localhost exmpleFST]$ cd home
    [Expeto@localhost home]$ touch afile_in_folder_one
    [Expeto@localhost home]$ touch dont_fuck_with_your_file_system
    [Expeto@localhost home]$ ls
    afile_in_folder_one  dont_fuck_with_your_file_system
    [Expeto@localhost home]$ # there is new two files here
    [Expeto@localhost home]$ cd ..
    [Expeto@localhost exmpleFST]$ ls
    home
    [Expeto@localhost exmpleFST]$ ln -s home/ var
    [Expeto@localhost exmpleFST]$ ls
    home  var
    [Expeto@localhost exmpleFST]$ cd var
    [Expeto@localhost var]$ ls
    afile_in_folder_one  dont_fuck_with_your_file_system
    [Expeto@localhost var]$ #link complete
    [Expeto@localhost var]$ cd ..
    [Expeto@localhost exmpleFST]$ ls home/
    afile_in_folder_one  dont_fuck_with_your_file_system
    [Expeto@localhost exmpleFST]$ ls var/
    afile_in_folder_one  dont_fuck_with_your_file_system
    [Expeto@localhost exmpleFST]$ ls home/
    afile_in_folder_one  dont_fuck_with_your_file_system
    [Expeto@localhost exmpleFST]$ ls var/
    afile_in_folder_one  dont_fuck_with_your_file_system
    [Expeto@localhost exmpleFST]$ cd ..
    [Expeto@localhost ~]$ rm -rf exmpleFST/
    things start with # are comments, they have no effect on anything
    Last edited by Expeto; 10-20-2010 at 05:01 PM.
    ...

  4. Software & Hardware   -   #4
    lightshow's Avatar Asleep at the wheel
    Join Date
    Mar 2003
    Age
    33
    Posts
    928
    Maybe he has /home on a volume group that does not have enough free space. Let's say he has videos in his /home and his volume group only has 5 GB free on it.

    Then his /var is on another volume group that has more space in it. Well in that case, he can use pvmove to move data off some partitions in the larger volume group. Then he can vgreduce the larger volume group by that disk he pv'moved

    Then he can extend the other volume group that /home is on with vgextend the name of the disk partition you pvmoved earlier.

    Then he can lvextend lv_home to be bigger!
    I miss the days of random nut '03
    Click for more activation options, then activate by telephone. Run the keygen.
    if I call them, aren't they going to get me? (you know, down there)

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
  •