LinuxQuestions.org
Visit Jeremy's Blog.
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 04-13-2008, 12:50 PM   #1
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
new filesystem: convert, or move data?


I have about 40GB of data on a partition I want to convert to XFS. would it be faster/safer to move or copy all the data first, and then just make the new filesystem (and then copy it all back, of course), or convert it with all the data still on there? are there any good tutorials for converting ext3 to XFS? I saw something in a gentoo wiki, but I think they recommended not converting but doing it more traditionally (umounting, making new fs, etc.)
 
Old 04-13-2008, 01:24 PM   #2
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
irrespective of converting or recopying you are always advised of backup. So I would better do a backup and then copy it once again.

try using rsync or tar for the transfer to preserve file permissions/dates...
 
Old 04-13-2008, 01:41 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Um, well, I don't know of a way to 'convert' filesystems, usually the formatting process involves the loss of all files on the partition being formatted.
 
Old 04-13-2008, 02:12 PM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by H_TeXMeX_H View Post
Um, well, I don't know of a way to 'convert' filesystems, usually the formatting process involves the loss of all files on the partition being formatted.
you convert with convertfs:

http://gentoo-wiki.com/HOWTO_Convert_Filesystems

not sure how stable or safe it is, though. as you can see, gentoo lists some bugs and caveats to the process, and they've taken it out of their repos.

So after reading that again, I think I'll just backup/copy and reformat normally. thanks.
 
Old 04-13-2008, 02:57 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Ahh, I see, it's a special algorithm, well certainly you should follow their advice:

Quote:
This can cause corrupt filesystems. Always backup your data.
There are some reports of severe data corruption - be warned
Add to that 'Have a nice day '
 
Old 04-13-2008, 03:35 PM   #6
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by H_TeXMeX_H View Post
Ahh, I see, it's a special algorithm, well certainly you should follow their advice:



Add to that 'Have a nice day '
exactly.

anyway, I just copied the data and converted the partition. I didn't time it, but I think it took about an hour or hour and a half. now i just have to copy the data back. tried and true -- the best method.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert move frames (avi/dvi/etc) to images(png/jpg/etc) 3saul Linux - Software 1 03-05-2006 09:29 PM
Convert NTFS to other filesystem dcs3jah Linux - Newbie 5 11-20-2005 12:45 PM
Need to move filesystem journal to another array Thaidog Linux - General 1 06-18-2005 02:11 PM
how to move data in partitioning provkitir Linux - Software 1 11-07-2004 06:21 PM
convert read only filesystem to write?... snip128 Linux - General 3 10-06-2004 08:06 PM

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

All times are GMT -5. The time now is 05:40 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
Open Source Consulting | Domain Registration