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 have a secondary data disk divided into a 140GB partition and a 60GB partition. The 60GB is currently empty and useless while the 140GB is almost full. Is it safe for me to unmount the disk and combine the partition with qtparted? Assuming I delete the smaller one, can I just make the larger one inactive and extend the size of it, or will I risk losing everything that's on it? If there's a risk, I can simply copy data from one partition to the other.
There's always risk whem moving partitions. You should always have a backup. That said I have never lost data doing it with one of the excellent partiotioning applications that linux offers. You are doing it in the best manner possible by unmounting the two partitions in question, deleting the unused on and expanding the larger one.
FWIW most catastrophes happen when shrinking a partition not when expanding them. Also I would look into using LVM or EVMS for disk management. They both handle this scenario very well.
OK, finally got gparted to resize the partition after three crashes.
Luckily nothing seems to be lost. However, although gparted tells me that /dev/hdb1, mounted at /media/supersize is 189.92GB, bash, krusader etc. tell me that it's still 145GB. I tried umount and mount to see would it change the recognized size, but I think some info in fstab might be telling the OS how many blocks to mount at /dev/hdb1
I haven't rebooted yet, that said
From that link:
GNU Parted This program provides both filesystem and partition resizing at once, so it's easier to use than resize2fs. It's described in more detail shortly, in "Using GNU Parted."
I don't really understand the difference between a volume and a partition.
What's stranger yet is that gparted tells me that 175GB or 92% of the partition is in use, whereas there is really only an occupation of 131GB, according to df.
Last edited by pickarooney; 12-24-2006 at 01:13 PM.
I don't know the real difference between a volume and a partition, but there is one. I think it is the difference between allocated space and the space really used by the filesystem. Have you tried running resize2fs? It really sounds it is what you are looking for. See:
Quote:
The resize2fs program will resize ext2 or ext3 file systems. It can be used to enlarge or shrink an unmounted file system located on device. If the filesystem is mounted, it can be used to expand the size of the mounted filesystem, assuming the kernel supports on-line resizing. (As of this writing, the Linux 2.6 kernel supports on-line resize for filesystems mounted using ext3 only.).
and
Quote:
The resize2fs program does not manipulate the size of partitions. If you wish to enlarge a filesystem, you must first make sure you can expand the size of the underlying partition first.
Try "man resize2fs" in console to get instruction how to use the programm. To resize /dev/hdb1 type as root:
Quote:
resize2fs -p /dev/hdb1
Last edited by hansalfredche; 12-25-2006 at 04:05 AM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.