Problems mounting file system after converting from btrfs to ext4

I am having an issue as I tried to convert my file system to ext4 from btrfs. The reason for the switch is that btrfs takes a lot of snapshots which take up a lot of disk space. So I backed up the directory “/srv” and deleted and recreated it on the Logical Volume Manager is /dev/system1/srv using ext4 but now when I reboot it doesn’t mount automatically. I tried doing fsck /dev/system1/srv and it checks too quick fixes nothing and when I mount it manually it starts some but not all the services. and I am using OpenSuSE 12.3

any idea are greatly appreciated.

On 2013-11-26 19:26, jaycova wrote:
>
> I am having an issue as I tried to convert my file system to ext4 from
> btrfs. The reason for the switch is that btrfs takes a lot of snapshots
> which take up a lot of disk space. So I backed up the directory “/srv”
> and deleted and recreated it on the Logical Volume Manager is
> /dev/system1/srv using ext4 but now when I reboot it doesn’t mount
> automatically. I tried doing fsck /dev/system1/srv and it checks too
> quick fixes nothing and when I mount it manually it starts some but not
> all the services. and I am using OpenSuSE 12.3
>
> any idea are greatly appreciated.

I just got an idea.

Try to recreate initrd. I think there is a copy of fstab in there and it
might be using that entry instead of the new one.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

So I go into /boot and look at the initrd which is encrypted so I cannot read it but I see it is a link to initrd-3.7.10-1.16-desktop but there is also a file initrd-3.7.10.1.1-desktop so can I just relink?

Also I noticed there seems to be a lot of backups of /boot such as /boot/boot/boot/boot…

You don’t edit the initrd, that’s not what Carlos suggested. Recreate it:


sudo mkinitrd

Ok I tried and this and it did not like it. Got a message that it is running out of disk space. How much is needed for this. There is only 25% available but it is a small filesystem.

Probably because of the snapshots which do not show in normal tools.

Can I delete snapshots or the extra /boot/boot/boot directories?

/boot/boot/boot are just linked folders do not try to remove.

There are some tools for BTRFS but I don’t run it so you will have to look for the BTRFS docs and read up on it Google is your friend :wink:

On 2013-11-26 21:46, jaycova wrote:
>
> Ok I tried and this and it did not like it. Got a message that it is
> running out of disk space. How much is needed for this. There is only
> 25% available but it is a small filesystem.

How big is it?

If it is not enough, you have two alternatives.

One, you should only have two kernels on it, if you have more check.

Two, remove the package plymouth from the system. Your boot will not be
so cute, but such is life.

Then recreate try the initrd. Sorry for not detailing that, I thought
you knew.

Of course, another alternative is making that partition bigger. Half a
gigabyte or 1 gygabyte is what I would use nowdays.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

You do not explain what exactly you did (only a vague story. no statements), thus I may be wrong. Bur when you did not use YaST > System > Partitioning (which would then do all the things you might forget about), but did it from the CLI, then I miss the editing of /etc/fstab. In the entry there normaly the file system type is menstioned, thus you must change btrfs into ext4 on the entry for it to function as you intend.

On 2013-11-26 21:56, jaycova wrote:
>
> Can I delete snapshots or the extra /boot/boot/boot directories?

Your /boot partition is btrfs too? :-o {surprise}

It should be ext2.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Henk

Thank you. I did use Yast2 and there were 2 other file systems that I created. and those have no issues. I will try booting from a live cd

Well, if it is only /srv, as you informed us, booting must be possible and checking your /etc/fstab also. And mounting it from the CLI would then show messages.

No it does not do a full boot. Once I mount the /srv filesystem and exit the webservers start but I cannot log in. It errors somewhere.

I have done an mkinitrd and I get the message there is no space left on device. There is only 37M available.

Is there something I can delete?

On 2013-11-27 16:46, jaycova wrote:
>
> I have done an mkinitrd and I get the message there is no space left on
> device. There is only 37M available.
>
> Is there something I can delete?

Yes, I answered that some messages back.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)