LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 08-11-2008, 05:07 AM   #1
dh2k
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: 203

Rep: Reputation: 44
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 05:19 AM.
 
Old 08-11-2008, 06:42 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,491

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
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.
 
Old 08-11-2008, 07:00 AM   #3
dh2k
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: 203

Original Poster
Rep: Reputation: 44
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?
 
Old 08-11-2008, 07:07 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
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.)
 
Old 08-11-2008, 09:00 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to know the command which shows all non-partitioned & partitioned hard drive saidul Linux - Newbie 2 12-04-2007 05:02 PM
adding drives to an existing raid1, EXT3 array` huggy77 Linux - Newbie 4 10-19-2007 01:38 PM
Disk is already fully (1) partitioned with XP, how can I squeeze a new partition in? garvey Linux - Software 7 11-03-2005 04:02 PM
Mount An Existing ext3 Partition br00tal Linux - Newbie 3 06-10-2005 01:08 AM
Resizing Existing Linux Partition (ext3) BxBoy Linux - General 23 09-22-2003 11:46 AM


All times are GMT -5. The time now is 04:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration