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 need to partition my /dev/hda. I just have one drive that has all my data in ext3. its /dev/hda2. I would like to resize it so I can have separate partitions for my /home /var, /tmp, /usr, /opt directories.
It looks like this
Device Boot Start End Blocks Id System
/dev/hda1 * 1 255 2048256 83 Linux
/dev/hda2 256 4959 37784880 83 Linux
/dev/hda3 4960 4997 305235 82 Linux swap
My question is what should I do? I am afraid that I might write over some of my data when I try to resize my /dev/hda2. because I don't where the data is written between start and end.
I can't really help with regard to the actual partitioning as all of mine tends to be done prior to the install.
One thing I will say though, and back me up here, is to back up everything. That way, if it does go titsup you won't lose anything. It may even be that you'll need to do a fresh install - but that is just an opinion and has no basis in anything resembling experience or whatever.
I do already have a back up. I'm just wondering if it was possible do partition the drive. Its already being used, so I imagine I have to use parted to resize it to make it smaller( but I don't know what sector to start at with because I don't know where the data is written to. unless there is a utility which lets me know what has data and what doesn't). then I have to fdisk whats left over for my directories that I want a partition for.
I still donsn't know what are you going to do...... well, I remember that Mandrake 9.1 first CD has partition utility which can resize partitions. But there are some limitations. You can take a look and try.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.