LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-06-2007, 03:47 PM   #1
Jorophose
Member
 
Registered: Oct 2006
Location: Ontario, Canada
Distribution: Xubuntu 6.06!! =D
Posts: 137

Rep: Reputation: 15
Does resising partitions erase data?


Hey guys,

I found a site in someone's signature, explaining how to resize current Fat32 partitions. I had a question; if you never defragmented the partition, will resizing it erase data?
 
Old 01-06-2007, 04:08 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
As far as I know it's held possible, and the preferred way is to first defragment, then resize. It may or may not do it, according to the people who "know something more about it" and write about it on the web.

I've done it a few times, being lazy, resizing a FAT32 partition with data inside, and have not had any problems or lost data (yet, at least). This may be because of the partitions I've played with have never been even nearly full, so it's probable that the resized area didn't contain any information even though I didn't defragment. I don't know if resizing bigger poses any trouble, but shrinking might; if you have any data you consider important (i.e. are not ready to delete because I ask you to), first defragment, then think of resizing. And backup, no matter how sure you were.
 
Old 01-06-2007, 04:11 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Strictly speaking, altering the partition does nothing to the filesystem installed in that partition.
However if you are shrinking the partition and they don't agree, it's certainly possible (at least some of) your data could be exposed.
 
Old 01-06-2007, 04:12 PM   #4
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
If you use gparted, you can resize your FAT partition without data loss (BUT! Always backup. Always! There is no such thing as safe playing with partitions!)
 
Old 01-06-2007, 07:34 PM   #5
Jorophose
Member
 
Registered: Oct 2006
Location: Ontario, Canada
Distribution: Xubuntu 6.06!! =D
Posts: 137

Original Poster
Rep: Reputation: 15
Thanks guys.

There's nothing too valuable here that I can't rebuild, and when I'm going to resize I should have a copy of Puppy, so I have access to important apps if I need them. There's just some HTML, PHP, and image files I have for a site I'm working on, and a few projects I still haven't handed in. The rest I don't care about. Fortunately I got an MP3 player as a gift, and there's enough room there to store most of my valuable files.

How long would it take to defragment around 6GB of data, though? I'm not sure if it's all fragmented (Windows is like 3GB, and should be fine) as I haven't done a defragmentation in a while.
 
Old 01-08-2007, 12:57 AM   #6
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
Speed of defragmentation depends on your hard drive's speed. If it's new hard drive, you'll be probably done in a half of hour, even less.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Edit Partitions/Erase Disk! pengu Linux - Hardware 2 07-04-2006 10:38 PM
Did using LVM commands erase existing data? laxisusous Fedora 13 06-08-2006 12:37 PM
Resising partition The_Messiah Linux - Newbie 4 04-05-2005 03:50 AM
How to erase your hard disk with Linux partitions on it 357mag Mandriva 10 03-16-2005 08:53 AM
unable to mount partitions after resising through windows electronics45 Linux - Software 10 03-11-2004 05:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:04 AM.

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
Open Source Consulting | Domain Registration