mounting an ext4 filesystem from ext3(or reiser): What do I need?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mounting an ext4 filesystem from ext3(or reiser): What do I need?
I just installed Slack13 and on encouragement by a friend who said ext4 was going to be the default on other distros, I tried ext4. The only problem is lilo seems messed up, so I thought I can simply boot another distro(such as Slack 12) I have on my machine and fix lilo. Didn't work
-among other things no other distro can see ext4. So the question is:
Is there some package I can install on an older installation that will allow the older installation to mount an ext4 fs? In general I will need this, as I regularly transfer files between my installations, also for backup purposes and I do not plan to work exclusively with Slack 13 and ext4
you can just boot into your system using the DVD or first CD.
At boot prompt, enter:
Code:
hugesmp.s root=/dev/hda1 noinitrd ro
change /dev/hda1 if your root (i.e. /) directory is located on another partition.
You can then correct your lilo configuration (edit /etc/lilo.conf and then run lilo).
Regarding ext4 filesystem, it was introduced as experimental in kernel 2.6.19 and was tagged as stable in kernel 2.6.28. So I would say that any distribution using a kernel >= 2.6.28 should be able to read your ext4 partition except if the distro team decided to compile the kernel without support for ext4. Also make sure the distro upgraded the e2fsprogs package as mke2fs is used to create ext4 partitions.
Last edited by gegechris99; 09-16-2009 at 04:08 PM.
Reason: corrected code syntax noinitrd ro + advice for ext4
I think you should do your own research on the internet and decide for yourself.
For my part, ext4 is the default filesystem when installing Slackware 13.0. I trust Patrick Volkerding on that topic. But as said, it's a question of personal choice.
For you it may be better to stay with ext3 or reiser because you'd like to transfer documents across partitions.
If you are booting an older distro to mount an existing ext4 fs, you can try "mount -t ext4dev". This assumes that ext4dev was compiled into that kernel. Before ext4 became fully incorporated in the newer kernels, it was in development stage.
no, this does not work directly. It does not use the fs on /dev/hda1, but it lets you mount it. Then you need to change all of lilo.conf so that instead of /boot it says /mnt/Slack13/boot, and invoke it from
/mnt/Slack13/sbin/lilo, but it still gives warning about the partition and
fais because it cannot find /boot/map
Quote:
mount -t ext4dev /dev/sdb3 /mnt/root
Nice try, but no luck...
Quote:
mount: wrong fs type, bad option, bad superblock on /dev/sdb3,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Then you must be using a kernel < 2.6.27.
I used the "ext4dev" switch this morning from openSUSE to copy a file from a ext4 Slackware partition to a ext3 suse partition.
If ext4* was compiled as a module instead of hard wired, you can search under /lib/modules for "ext4*.ko".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.