Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
07-04-2006, 02:02 AM
|
#1
|
Member
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102
Rep:
|
new partition in non empty hard disk
Hi, i have one hard disk which have two partitions: ext3 and swap. Is it some how possible to make new small partition from ext3, without deleting existing data in ext3?
Ext3 is used about 40%, 60% space is free.
|
|
|
07-04-2006, 04:18 AM
|
#2
|
Member
Registered: Jul 2005
Location: England, UK
Distribution: Ubuntu 8.04 Server, Kubuntu 12.04
Posts: 698
Rep:
|
just resize the ext3 partition and create a new partition in the empty space from a liveCD (eg KNOPPIX)
You'll probably want to resize your ext3 partition then move the swap partition in to that space and use free space at the end of the drive unless you want to edit fstab.
|
|
|
07-04-2006, 04:44 AM
|
#3
|
Member
Registered: Aug 2003
Location: Montpellier, France, Europe, World, Solar System
Distribution: Debian Sarge, Fedora core 5 (i386 and x86_64)
Posts: 262
Rep:
|
Prior to anything, backup your data. You then need to unmount the filesystem you want to resize (best option here is to boot from some live/rescue cd and not to mount your system disks). In the following, replace /dev/hdxy by the exact device your partition lies on. - Unconditionnaly check for errors on the filesystem (and repair):
Code:
fsck.ext3 -f -y /dev/hdxy
- Resize your ext3 filesystem (the last argument is the size, adjust to your needs, read 'man resize2fs' for more details):
Code:
resize2fs /dev/hdxy 45G
- Resize the partition with fdisk: delete the current partition and create a new one starting at the exact same block. Don't make the partition smaller than the filesystem. (my advice: make the partition a little larger than the filesystem and expand the filesystem to the full partition size once you're done by running 'resize2fs /dev/hdxy' with no arguments. It can even be done on a mounted filesystem using 'ext2online').
- You're done. Eventually check your filesystem again with fdisk.
|
|
|
All times are GMT -5. The time now is 01:26 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|