Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Hi say I have /dev/hda1 that is an ext3 partition already but say has 12 Gig available disk space , is there away to make another partition out of that free space without moving data of of it , so just using some of the free space available..
You can use parted or qtparted to resize the ext3 partition, then use cfdisk or fdisk to create a new entry in the partition table for the new partition.
Thanks stress junkie , so how do I know what block to start at though ? Can you give me an example cli and how one may determine which block or inode to start the new partition at ?
TIA
Thanks stress junkie , so how do I know what block to start at though ? Can you give me an example cli and how one may determine which block or inode to start the new partition at ?
TIA
You don't need to work at that level. Using something like gparted, you simply tell it to resize the partition.
I used qtparted. That gives you a GUI interface. I just told it what partition to resize and I told it what I wanted the new size to be. When I made the new size too small it just gave me an error. When I made the new size to something that qtparted could do correctly then it went ahead and resized the partition.
Note that qtparted may not be able to recover all of the free space on the existing partition. In my case I had a 40 GB partition with NTFS. The Windows software only required 5 GB but the smallest size that qtparted could make this partition was 16 GB. So there is still 11 GB on the Windows partition that is free but qtparted couldn't make it available.
You can use parted or qtparted to resize the ext3 partition, then use cfdisk or fdisk to create a new entry in the partition table for the new partition.
Just how dangerous is this? I've wanted to do it for awhile but I've been deathly afraid. Considering this setup...
...you can see hda1 is the full system basically. I wasn't thinking when I cut up the partitions, and now I'd at the very least like to cut out a chunk for /home and make it an ACL'ed journaling system (maybe XFS). Best case would be /home separate and also /tmp, /var/tmp on their own partitions.
I'd like to hear from actual success (or failure!) cases doing this sort of thing, because I don't have room to mess up: everything was/is compiled/built here so there is no OS CD to restore from. I'll most likely be using GNU parted.
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425
Rep:
Quote:
Originally Posted by jayjwa
Just how dangerous is this? I've wanted to do it for awhile but I've been deathly afraid. Considering this setup...
...
I'd like to hear from actual success (or failure!) cases doing this sort of thing, because I don't have room to mess up: everything was/is compiled/built here so there is no OS CD to restore from. I'll most likely be using GNU parted.
------------------
ALWAYS back up your data. You can reinstall any Linux kernel, or distribution, or application, or all three for that matter, with minimal effort compared with trying to rescue a hard drive that you toasted with a resize that went pear shaped, if in fact, you could rescue your data.
If you can afford to trash things during experimentation, fine, go for it and tell us all what you did and how and the results. Otherwise, resize after backups. Practice safe computing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.