Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 plan on repartitioning because when I first installed linux, I didn't allocate enough space for linux, now that I have freed up some space from windows I hope to repartition. So here is my current state of my hard drive:
30gb (windows part)
20gb (linux part, I mount "/" here)
2gb (fat32 part for transfers)
1gb (swap part)
24gb (unpartitioned space freed up from windows)
What I am hoping to achieve (with linux intact) is:
(?gb) /boot
(?gb) /
(rest of space) /home
1gb swap
2gb fat32
10gb windows part
The question is, is it a simple matter of mounting /home on to the partitioned space or do I need to copy it over to the new partition and then change fstab? Also if you would be so kind please give me suggested values for the spaces marked? I plan on reinstalling windows after partitioning. Also how would I format in ext3, looking at the info for fdisk, it doesn't seem to give any info on selecting the type of filesystem. Or do I format with fdisk the make a filesystem on it afterwards?
Thanks for any help you can give, I would appreciate it.
that will clone the existing home onto the new partition exactly (hopefully)
the -j option in mke2fs creates a journal, which means it is actually ext3 not ext2. also fdisk doesn't do any formating at all. it's a partitioning tool only.
Sorry to bother you again but a few more questions arose:
When I typed in find -xdev /home | cpio -pvd /mnt it popped out with
find: paths must preced expression
Usage: find [path...] [expression]
0 blocks
is the -xdev suppose to represent something else?
My plan now is to copy everything to a second hard drive wipe the first and restore. The thing is I'm not sure how to do so.
Do I boot into linux on the second hard drive, partition and then copy my files back to the first? If so how?
Provided that everything is copied into the right partitions and everything how will I boot into linux now that my root partition has changed, do I simply change the grub entry? If so I still need to boot into linux to perform a grub-install.. right?
Second of all, how am I able to mount my /home and /boot directories looking at my fstab I only have one linux partition (aside from swap) to compare it to:
LABEL=/ / ext3 1 1
do I do it like this?
LABEL=/home /home ext3 1 1
LABEL=/boot /boot ext3 1 1
If so do I need to label something? Or is it done like this?:
/dev/hda1 /boot /ext3 1 1
/dev/hda5 / ext3 1 1
I apologize if these questions have already been answered if so point me to the right thread. Thanks for replying.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.