How to migration Root FS from reiserfs to ext4

Message
Author
MSOA
Forum Novice
Forum  Novice
Posts: 10
Joined: Sun Apr 08, 2012 10:14 am

How to migration Root FS from reiserfs to ext4

#1 Postby MSOA » Thu Apr 26, 2012 5:37 pm

I installed Mepis on the Reiserfs, but now wish to change Root file system to Ext4. I've tried a few times, but think the Initrd on the boot time encountered with error, when boot the system with new Ext4 partition. Do i need to apply on the Initrd file? I do the copy progress with "rsync -azvr" command.

User avatar
m_pav
Forum Guide
Forum Guide
Posts: 2520
Age: 49
Joined: Sun Aug 06, 2006 3:02 pm

Re: How to migration Root FS from reiserfs to ext4

#2 Postby m_pav » Fri Apr 27, 2012 3:34 am

I have done something like that but instead of using rsync, I used cp -ax media/source* media/destination
then I fixed permissions by logging in as root instead of the user and issues chown -R NAME /home/NAME && chgrp -R users /home/NAME

Logged out of root and after that, the system operated as normal when logged in as a regular user.

Mike P
Mike P

Regd Linux User #472293
(Mine)Lenovo T550, i7-5600U, 16GB, 128GB SSD + 1.0TB HDD, MX15 64-bit
(Wifes) Asus M4A88TD-M, AMD Phenom II x4 955 CPU, nVidia GF610, 6Gb, 500GB+320GB, MX14 + KDE
(Kids) Intel NUC, J1900, 4GB, 64GB SSD, MX14 + KDE

MSOA
Forum Novice
Forum  Novice
Posts: 10
Joined: Sun Apr 08, 2012 10:14 am

Re: How to migration Root FS from reiserfs to ext4

#3 Postby MSOA » Fri Apr 27, 2012 12:11 pm

I think there is a problem in Initrd file.

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 6176
Age: 41
Joined: Wed Jul 12, 2006 1:42 am

Re: How to migration Root FS from reiserfs to ext4

#4 Postby Adrian » Fri Apr 27, 2012 2:32 pm

You probably just need to reinstall Grub... use the LiveCD and do a Grub repair.

MSOA
Forum Novice
Forum  Novice
Posts: 10
Joined: Sun Apr 08, 2012 10:14 am

Re: How to migration Root FS from reiserfs to ext4

#5 Postby MSOA » Fri Apr 27, 2012 8:45 pm

Adrian wrote:You probably just need to reinstall Grub... use the LiveCD and do a Grub repair.

Do it, just "grub-install", but didn't solve. Both before and after above action encountered whit following error:

Code: Select all

cannot create /var/log/syslog.pid: read-only file system
and other things like this.
I tried with "single user mode", after geven root password tried create a directory in the root home directory but said:

Code: Select all

can not create folder: read-only file system

Whatever the problem related to the file system. In your opinion rsync don't suitable for this job.

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 6176
Age: 41
Joined: Wed Jul 12, 2006 1:42 am

Re: How to migration Root FS from reiserfs to ext4

#6 Postby Adrian » Fri Apr 27, 2012 9:40 pm

Hmm, you cannot write on the partition, it's not rsync's fault. Did you mount the partition read only somehow?

MSOA
Forum Novice
Forum  Novice
Posts: 10
Joined: Sun Apr 08, 2012 10:14 am

Re: How to migration Root FS from reiserfs to ext4

#7 Postby MSOA » Sat Apr 28, 2012 2:36 am

Edite: Delete duplicate post
Last edited by MSOA on Sat Apr 28, 2012 2:42 am, edited 1 time in total.

MSOA
Forum Novice
Forum  Novice
Posts: 10
Joined: Sun Apr 08, 2012 10:14 am

Re: How to migration Root FS from reiserfs to ext4

#8 Postby MSOA » Sat Apr 28, 2012 2:39 am

Changed options in partition mount from:

Code: Select all

/dev/sda3 / ext4 defaults,noatime,notail 0 0

To:

Code: Select all

/dev/sda3 / ext4 errors=remount-ro 0 1

Indeed, which of options was caused the partition mounted Read-Only?
Thanks frinds

User avatar
lucky9
Forum Veteran
Forum Veteran
Posts: 12336
Joined: Wed Jul 12, 2006 5:54 am

Re: How to migration Root FS from reiserfs to ext4

#9 Postby lucky9 » Sat Apr 28, 2012 4:50 am

Not sure what you're asking about, but ro is read-only. rw is read-write.
Yes, even I am dishonest. Not in many ways, but in some. Forty-one, I think it is.
--Mark Twain


Return to “Software / Configuration”

Who is online

Users browsing this forum: No registered users and 1 guest