LinuxQuestions.org
Help answer threads with 0 replies.
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 09-16-2009, 02:58 PM   #1
svar
Member
 
Registered: Jul 2003
Posts: 352

Rep: Reputation: 30
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
 
Old 09-16-2009, 03:51 PM   #2
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
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
 
Old 09-17-2009, 12:30 AM   #3
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
Thanks. So an older installation with an older kernel, such as Slack 12.0 just needs to upgrade e2fsprogs?
 
Old 09-17-2009, 03:03 AM   #4
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
Quote:
Originally Posted by svar View Post
Thanks. So an older installation with an older kernel, such as Slack 12.0 just needs to upgrade e2fsprogs?
I'm afraid that you also need the kernel >= 2.6.28
 
Old 09-17-2009, 03:21 AM   #5
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
So I can only transfer files if I am using a >=2.6.28 kernel....
Which brings up the question: Is ext4 really better than ext3 and reiser?
 
Old 09-17-2009, 03:35 AM   #6
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
Quote:
Originally Posted by svar View Post
Is ext4 really better than ext3 and reiser?
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.
 
Old 09-17-2009, 03:51 AM   #7
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
I will be using Slack 13 quite often, so since I guess I can mount fs's and transfer files
cp myfile /mnt/Slack12/myfile
cp /mnt/Slack12/myfile ./

if I am in ext4, I guess it will be ok and stick with ext4. It's just that I cannot do that if I am on older
kernels....
 
Old 09-17-2009, 03:58 AM   #8
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
Yes you are correct. If you do the transfers while in 13.0, it's OK to have ext4.

I'm actually doing what you suggest between my partitions for 13.0 (ext4) and 12.2 (ext3).
 
Old 09-17-2009, 04:39 AM   #9
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
Thanks again. So, I'll try ext4. Pat's judgement has been more than trustworthy till now...
 
Old 09-17-2009, 08:14 AM   #10
plasmonics
Member
 
Registered: Jan 2009
Posts: 37

Rep: Reputation: 18
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.
 
Old 09-17-2009, 12:12 PM   #11
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
Quote:
hugesmp.s root=/dev/hda1 noinitrd ro
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
 
Old 09-17-2009, 12:44 PM   #12
plasmonics
Member
 
Registered: Jan 2009
Posts: 37

Rep: Reputation: 18
Quote:
Nice try, but no luck...
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".
 
Old 09-17-2009, 01:45 PM   #13
gegechris99
Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 14.1 32bit
Posts: 719
Blog Entries: 3

Rep: Reputation: 76
Quote:
Originally Posted by svar View Post
no, this does not work directly. It does not use the fs on /dev/hda1, but it lets you mount it.
Did you install Slackware 13.0 on /dev/hda1? I'm asking because you used /dev/sdb3 for the mount command.

Please modify /dev/hda1 with the partition where root directory of Slackware 13.0 was installed. For example:

Code:
hugesmp.s root=/dev/sdb3 noinitrd ro
 
Old 09-17-2009, 01:53 PM   #14
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
Yes, of course I installed on /dev/sdb3
and I used
hugesmp.s root=/dev/sdb3 noinitrd ro

I only mentioned /dev/hda1 so we can have a common reference for "wherever root is"
 
Old 09-17-2009, 01:54 PM   #15
svar
Member
 
Registered: Jul 2003
Posts: 352

Original Poster
Rep: Reputation: 30
Yes, this kernel is
2.6.18
 
  


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
ext4 new file system mounting compatibility with the older ext3 type james2b Linux - Newbie 6 09-08-2009 05:57 PM
mounting ext3 FS as ext4 info1686 Linux - General 1 07-08-2009 07:16 AM
formating and mounting fat32 as reiser or ext3 turkishkernel Linux - Newbie 2 07-27-2005 04:00 PM
Problem mounting ext3 filesystem on 2nd Hard Disk judgedeath2 Linux - Hardware 2 08-16-2004 09:43 AM
ext2_read_super: mounting ext3 filesystem as ext2 Jiggy Linux - Newbie 8 11-18-2003 07:27 PM


All times are GMT -5. The time now is 08:32 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration