LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-25-2013, 03:00 PM   #1
smells_of_elderberries
LQ Newbie
 
Registered: Dec 2006
Posts: 25

Rep: Reputation: 0
Best practice way of moving an Ext3 journal to another drive.


Hi,

I'm using Ext3 for my root filesystem. I'd like to permanently move the Journal from the boot drive to a newly-purchased USB flash drive. Could someone walk me through the best way to do this? I've found very little through web search, and nothing that was on a level I could understand.

I'm running Debian Wheezy.

Thank you
 
Old 05-25-2013, 03:13 PM   #2
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,128
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Hi
1st and foremost backup DATA. I then shrink the partition using gparted from a live cd "as you cant modif a mounted partition"
I then use dd command to copy partition to where ever
Code:
sudo dd if=/dev/sdax of=/dev/sdbx
(FYI dd can destroy data if not used correctly to destination) "x" being the partition
The partition must be the same size or smaller than where you are moving too.
You will then have to edit /etc/fstab acordingly and update grub to point to where root is.
Think that covers it all
 
Old 05-25-2013, 06:24 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,117

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
I've never attempted anything like that (having the journal on a separate device, remote from the rest of the filesystem). But a quick Google search turned up the following, which may be of some help to you:

http://insights.oetiker.ch/linux/ext...ournal-on-ssd/
 
Old 05-25-2013, 06:27 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,117

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
FWIW, I don't think flash drives (I assume you're talking about a generic "thumbdrive") have all that many read/write cycles before they fail. So storing your journal there should mandate you to do a little research on the appropriateness of that endeavor before you embark on it. If you're talking about the newer SSD drives and not a "thumbdrive", maybe it isn't so much of a problem.

Last edited by haertig; 05-25-2013 at 06:28 PM.
 
Old 05-25-2013, 07:14 PM   #5
smells_of_elderberries
LQ Newbie
 
Registered: Dec 2006
Posts: 25

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by haertig View Post
I've never attempted anything like that (having the journal on a separate device, remote from the rest of the filesystem). But a quick Google search turned up the following, which may be of some help to you:

http://insights.oetiker.ch/linux/ext...ournal-on-ssd/
I'm afraid that's one of the articles I found that wasn't "on a level I could understand". The author assumes a level of technical knowledge that I personally don't have. Thanks though.

Quote:
FWIW, I don't think flash drives (I assume you're talking about a generic "thumbdrive") have all that many read/write cycles before they fail.
I think they're more robust than you'd expect - I've got some pretty old Flash drives still in use that've seen a lot of activity. And even then, journalling doesn't constitute a great deal of writing, and this is not a high-activity system I'm talking about. I'm willing to give it a shot, but thanks for the advisory

Quote:
Originally Posted by spiky0011
1st and foremost backup DATA.
Thanks. That was going to a be a subsequent question. If it's as simple as using dd to make a bootable clone, then that's easy enough.
 
  


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
Ext3 Journal mohit.saha Linux - Newbie 2 05-07-2008 05:07 AM
ext3 journal idol007 Linux - Kernel 6 12-19-2007 11:02 PM
Western Digital My Book Ext3 format reports "Ext3-fs: Journal inode is deleted" ChronusDark Linux - Desktop 3 10-31-2006 04:56 PM
Moving files from NTFS drive to a EXT3 drive?? webshark Slackware 10 05-28-2006 04:02 PM
Ext3 journal corruption? Arkanoid Linux - Hardware 10 10-12-2005 06:02 AM


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