LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices



Reply
 
Search this Thread
Old 07-20-2008, 11:19 PM   #1
digerati1338
Member
 
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
Filesystem duplication problem


Alright, I have an interesting filesystem duplication problem here. I've found a couple of plausible solutions, but I wanna run it by some people before I screw myself over.

I've got a Debian Sid/Windows Vista dual boot system set up on my rig. I use Linux 90% of the time, but need Windows for some games and stuff. Anyway, I'm trying to get the Ext2 IFS driver for windows to access my 2 linux partitions (/home and /), both ext3. Unfortunately, the default inode size is 256 and the windows driver requires it to be 128. There is no way to change the Inode size without reformatting the partition using
Code:
# mkfs.ext3 -I 128 /dev/sda1
I have already fixed my home partiton like this:

I used Gparted Live to shrink my current home partition (lots of empty disk space right now cuz its a relatively new install) to roughly 1/2 its size. I made a new ext3 partition in the new empty space with the correct inode size. I then mounted the original as "/media/old" and the new one as "/media/new" all within the live cd. From there I did:
Code:
# cd /media/old
#cp -i -P -p ./* /media/new
Then I would delete /media/old and grow /media/new to fill the empty space. This worked great for the home partition, and seems to have correctly preserved permissions and system links as far as I can tell.

I could use the same technique for the root partition, but I've seen some sites that suggest using
Code:
# tar lcf - .|(cd /media/new; tar xpvf - )
I was wondering what the differences are between these two. I know the tar works by piping the tarred output to another tar that extracts it to the new partition, creating an exact copy. Are there any advantages to this? Also, GRUB is on my MBR. Do I need to be concerned about that?
 
Old 07-20-2008, 11:51 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,500

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
I always use "CP -a ..." from a liveCD. tar would work just as well. If you're moving the (start of) partition, you'll need to fix grub - I always do that anyway, from the liveCD.
(must be a recent build to get bitten by the 256 inode change).
 
  


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
Confusing USB Filesystem Problem (Can't Wipe Ext3 Filesystem) dkaplowitz Linux - Hardware 3 04-14-2007 07:30 PM
Disk Duplication jcombrink Linux - Enterprise 3 03-27-2007 03:29 AM
Packet duplication!!! vishamr2000 Linux - Networking 1 04-25-2006 05:37 PM
HDD Duplication... PenguinPwrdBox Linux - General 3 12-16-2004 05:25 PM
xcdroast cd duplication problem lasalsademuerte Linux - Software 4 10-30-2003 05:49 PM


All times are GMT -5. The time now is 07:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration