Slackware This Forum is for the discussion of Slackware 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-11-2008, 04:07 AM
|
#1
|
|
Member
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 188
Rep:
|
Can existing ext3 partition be partitioned without data loss
Here is what my current setup is in the context of partitions:
sda1 = NTFS (WinXP) ~15GB
sda2 = ext3 (Zenwalk 5.2) ~25GB
sda3 = swap (linux swap) ~512MB
I want to split sda2 and create another ext3 partition [sda4] to install slackware 12.1 but I want to retain Zenwalk 5.2 on sda2.
Now, using WinXP one would use disk defrag then continue to partition sda1 safely.
Do I have to defrag sda2 before I partition it?
If so, how is this done safely so there is no data loss on sda2?
If not, is it safe to partition sda2 without any data loss on sda2?
Thank you in advance.
Last edited by dh2k; 08-11-2008 at 04:19 AM.
|
|
|
|
08-11-2008, 05:42 AM
|
#2
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
You need to shrink the filesystem, then the partition. No need to defrag.
Easiest done with the gparted liveCD - it's a GUI like PartitionMagic.
Small, and very good.
|
|
|
|
08-11-2008, 06:00 AM
|
#3
|
|
Member
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 188
Original Poster
Rep:
|
I will be using gparted using the Zenwalk 5.2 Live CD to partition my harddrive - however if I shrink the filesystem then create the new partition from storage gained, will the data on sda2 be retained without loss?
|
|
|
|
08-11-2008, 06:07 AM
|
#4
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
I have used GParted to shrink various kinds of partition with no data loss, but I would still never attempt it without first backing up any important data.
Also, you can use something like "df" to see how full a partition is, so you know how much you can shrink it. (Don't push it--ie leave some extra room. I don't know what happens if you try to shrink a partition to a size smaller than the contained data.)
|
|
|
|
08-11-2008, 08:00 PM
|
#5
|
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 2,955
|
I have used gparted many times, including the live cd, and never had an issue that I recall.
Note: remember to edit your Zenwalk fstab for the new swap partition location.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:38 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
|
|