LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-18-2016, 05:34 AM   #1
sinar.kk
Member
 
Registered: Nov 2015
Location: Cochin , Kerala , India
Distribution: Slackware
Posts: 80

Rep: Reputation: Disabled
Question How to convert ext2 to ext3 in slackware 14.0 32 bit for root ( / )directory without losing data


Hi could you all help me ? i want to convert my ext2 to ext3 of my machine which is running slackware 14.0 (32 bit) ,i only have one partition just the "/" . i do not want to lose my data , while searching i found this "tune2fs -j /dev/hda2" to do as root but nothing else mentioned .

Can you help me with details step by step to achieve this exactly without losing data?

Hope you all will help.

Thanks ,
Sinar.KK
 
Old 01-18-2016, 07:15 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,367

Rep: Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335Reputation: 2335
tune2fs -j /path/to/drive is the trick.

The correct drive would hardly be hda2, and that info is out of date. There is no need to unmount. To see the drive, try

cat /etc/mtab

and look for /
 
Old 01-18-2016, 07:34 AM   #3
sinar.kk
Member
 
Registered: Nov 2015
Location: Cochin , Kerala , India
Distribution: Slackware
Posts: 80

Original Poster
Rep: Reputation: Disabled
@business_kid , yes i know my drive ... i was asking whether i should do something else other than just tune2fs , somewhere i have read like after that we have to do a makeinitrd with the boot img...im not sure about that

This is what i have seen , just want to check if its correct or not

Quote:
Log in as root
Edit /etc/fstab and change ext2 to ext3 on the line referencing the root directory.
tune2fs -j /dev/hda2
cd /boot
mv initrd-2.4.18-26.8.0.img initrd-2.4.18-26.8.0.img.ext2
mkinitrd initrd-2.4.18-26.8.0.img 2.4.18-26.8.0
reboot

I'm not sure about this
 
Old 01-18-2016, 08:22 AM   #4
MarcT
Member
 
Registered: Jan 2009
Location: UK
Distribution: Slackware 14.2
Posts: 125

Rep: Reputation: 51
Also make sure to update /etc/fstab from ext2 to ext3 so the affected filesystems are mounted as ext3 at boot.

You may need to update the initrd if the ext3 and jbd modules are not included.
 
Old 01-18-2016, 09:50 AM   #5
bassplayer69
Member
 
Registered: Jul 2007
Location: In a van down by the river...
Distribution: MX Linux 21
Posts: 237

Rep: Reputation: 56
I'd also make a full backup of your drive using Clonezilla or something similar just in case something goes wrong. You can always fall back on and retry.
 
Old 01-18-2016, 11:23 PM   #6
sinar.kk
Member
 
Registered: Nov 2015
Location: Cochin , Kerala , India
Distribution: Slackware
Posts: 80

Original Poster
Rep: Reputation: Disabled
Yes i was able to do with ,first edit the fstab file and changed the corresponding drive from ext2 to ext3 and then i just did "tune2fs -j /path/to/drive" , that's all it was required , after that i rebooted the system and everything is working fine. I am marking this thread as solved.. and thanks to all of you for your support
 
  


Reply

Tags
ext2, ext3, filesystem, slackware, tune2fs



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
How to convert EXT3 to EXT2? zivota Linux - General 9 11-15-2008 02:08 AM
Convert root file system from ext2 to ext3 lothario Mandriva 4 11-20-2004 05:21 PM
convert ext2 to ext3 without losing data andrewlkho Linux - General 4 10-24-2003 08:56 AM
convert ext2 to ext3 perch Linux - Newbie 2 10-05-2003 08:26 AM
Convert ext2 to ext3 or something else? coldfusion713 Linux - Software 3 08-03-2003 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:36 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