LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 09-23-2016, 11:05 AM   #1
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,212

Rep: Reputation: 295Reputation: 295Reputation: 295
Root partition on jfs


Hi , I just started to play a bit with my RPi v1 and the excellent guide from rpi.fatdog.eu . Thanks for making this site and packages to drmozes and whoever is the creator.

So I would like to understand one thing, do I need a initrd.gz file with the jfs filesystem inside if I want to install it on my root partition ?

Do I create it with the standard slackware way mkinitrd script or am I missing something ?

Probably I could use also btrfs in that same way correct ?

Rgds
Saxa
 
Old 09-26-2016, 02:46 AM   #2
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
It depends if the kernel has jfs compiled into the kernel or as module, and that may depend on what kernel you are running.
The only PI I have running on fatdog's kernel is a rPI2 with the hardfloat miniroot which has JFS compiled as module.

I'm not sure if the rPI1 kernel is compiled the same (chances are that it is) but I can tell you how to check:
Code:
# zgrep "CONFIG_JFS_FS" /proc/config.gz 
CONFIG_JFS_FS=m
#
If it's "CONFIG_JFS_FS is not set" then your kernel does not support JFS,
if it's "CONFIG_JFS_FS=y" then you don't need initrd to load the module ... the kernel should be able to mount jfs root as long as the cmdline.txt is set accordingly in the PI's boot partition with something like this:

Code:
dwc_otg.lpm_enable=0 console=tty1 nofont root=/dev/mmcblk0p2 rootfstype=jfs rootwait ro
Also your fstab needs to reflect that too.

If you need to create an initrd you can use slackware's mkinitrd to do so provided you build the initrd tree in a filesystem that supports soft links. I read a note about that somewhere but I forgot where. Look at the mkinitrd man page, in particular "-s" option for this issue because the default is /boot/initrd-tree and if that's on the PI's fat partition even if it's big enough it will not support soft links and the creation will fail.
 
Old 09-26-2016, 12:04 PM   #3
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,212

Original Poster
Rep: Reputation: 295Reputation: 295Reputation: 295
Luigi, grazie.

In fact I checked the source file and it seems that the config used for the kernel is with JFS as a module. So most probably it is same for all the different ARM versions. I have already tried to reboot, and of course it have not restarted again.

Since I do not want to loose other few hours reinstalling the system I will simply convert the stuff I have on that SD card to ext4. But I still think that JFS is better .

I also made that modification in the comandline.txt file and it have not boot. So the confirmation that JFS is as a module compiled comes here.

About creating the initrd image I saw the README in the boot dir and it explains everything clearly also about the -s option. So for now I will just try to play a bit and see if I can make it go, otherwise I simply convert the SD card file system into ext4.

Grazie mille Luigi ancora una volta.
Saluti
Saxa
 
Old 09-26-2016, 12:26 PM   #4
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,539

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
With the officially supported devices, JFS is included in the default initial ram disks, so all you'd not need to do anything - your file system would be detected. If it was not you could specify Kernel command operators

rootfs=jfs

(or rootfstype=jfs -- it's a synonym in the init script).

Exaga can chime in if this is different for rpi.
 
Old 09-26-2016, 12:33 PM   #5
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
The best way to say "thanks I found your post helpful" is ho hit the "yes" beside "Did you find this post helpful?"

You will also need to tell mkinitrd which extra modules you want in the initrd ... and jfs will be one of them for sure.
 
Old 09-26-2016, 02:11 PM   #6
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,212

Original Poster
Rep: Reputation: 295Reputation: 295Reputation: 295
Ok, @drmozes, thx for the info, but question is, is RPi 1 officially supported ? I think it is.
 
Old 09-27-2016, 02:10 AM   #7
drmozes
Slackware Contributor
 
Registered: Apr 2008
Distribution: Slackware
Posts: 1,539

Rep: Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309Reputation: 1309
Quote:
Originally Posted by saxa View Post
Ok, @drmozes, thx for the info, but question is, is RPi 1 officially supported ? I think it is.
http://arm.slackware.com/supportedplatforms/
It isn't.
 
Old 09-27-2016, 06:02 AM   #8
saxa
Senior Member
 
Registered: Aug 2004
Location: Nova Gorica, Salvador
Distribution: Slackware
Posts: 1,212

Original Poster
Rep: Reputation: 295Reputation: 295Reputation: 295
Ok, never looked at that page to be honest, I thought it was supporte as I saw it listed on fatdog.eu Nevermind, when I have some time I make it work .
 
  


Reply

Tags
btrfs, jfs, raspberrypi, rpi



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
no filesystem could mount root, tried: jfs TodayT Slackware 7 01-07-2016 09:08 AM
no filesystem could mount root, tried: jfs TodayT Slackware 1 01-03-2016 02:26 PM
JFS partition full, though it should not be kkutac001 Linux - Newbie 15 03-01-2010 04:38 PM
accidentally deleted jfs partition berrance Linux - Software 7 01-06-2010 06:49 AM
How do I convert an empty ext3 partition to a jfs partition? lothario Linux - Software 3 02-28-2006 10:40 AM

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

All times are GMT -5. The time now is 05:03 PM.

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