Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was wondering if it's possible to create a new partition and assign one of the directories in the directory tree to use that partition. FOr example, i made a new partition, and i want to use it as /home. How do i assign /home to the new partition and delete the old /home.
Forgot to mention one thing, the above example is based on the assumption that all directories are in one single root partition...
You could try mounting the new partition somewhere else, then copying everything over, editing your fstab to point to the new partition and then reboot.
e.g. (not my current system, but hey!!:
/dev/hda1 = /
I create a new partition /dev/hdb6 and what it to be /home
mkdir /mnt/newhome
mount /dev/hdb6 /mnt/newhome -t ext3
cp /home /mnt/home -R
jed /etc/fstab
#edit the fstab to include a line that mounts /dev/hdb6 as /home with ext3 filesystem
init 6
There are probably other, better ways, but I can't think of any at the moment - not at my Linux box.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.