LinuxQuestions.org
Review your favorite Linux distribution.
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 02-04-2014, 11:32 AM   #1
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 88

Rep: Reputation: Disabled
Raspberry Pi - fatdog - LVM


Hiya!

I followed the instructions on http://rpi.fatdog.eu/
However, I've made a modification by creating an LVM instead of normal partitions.
Everything installed fine, but I could not add the important information about initrd to LILO, because there is no LILO and of course I ended up with an unbootable Slackware installation.

How should I proceed on the next attempt?
 
Old 02-04-2014, 02:10 PM   #2
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
Amongst the other options you need to add "-L" so that lvm is added to your initrd, and you might also need to add the necessary modules via "-m" depending on the kernel you are using.
But I don't see much pint in doing that on the Pi, unless for some reason you are also doing luks encryption.

Can't give you any more detailed info as I don't have a Pi now and I can't remember the details dating back to when I had one lent to me for a short time.
 
Old 02-05-2014, 04:27 AM   #3
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
Ok I checked at work and I still have the SD card on which I had Slackware running on the Pi.
Unfortunately at the time I tried none of the community images booted on the device I had lent to me so I did it according to what I documented as emergency way of getting slackware on the Pi here below the community links.

Anyway on the boot partition in my SD did not have an initrd, not sure if fatdog's image has:
if it does you will not need to edit config.txt,
if it does not you should add something like this to config.txt "initramfs initrd.gz 0x00800000"

You will then haveto create an initrd image. If you already have initrd you will need to figure out what options it was built with and add the lvm modules via -m and enable lvm root via -L, if fatdog's image does not use initrd you will only need to create initrd with "-m dm-mod -L" options but do checkout if dm-mod has dependencies as on my kernel build it's built into the kernel.

Hope this helps more the the previous my post.
 
Old 02-05-2014, 11:17 AM   #4
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by louigi600 View Post
Hope this helps more the the previous my post.
Aye, this explanation seems like it should work. I won't have time to play with it during the week though. I'll report back in a few days.
 
Old 02-05-2014, 04:03 PM   #5
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 264

Rep: Reputation: 74
FatDog.eu images uses initrd for the slackware arm installer which is deleted towards the end of the install process.
 
Old 02-09-2014, 03:38 AM   #6
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 88

Original Poster
Rep: Reputation: Disabled
Unfortunately I was not able to create an initial ramdisk (it was spewing errors about files it couldn't find), so I couldn't follow your advice. I wasn't in the mood of tracking down the issue, so I just followed the tutorial and installed Slackware on normal partitions, sorry :P
 
Old 02-09-2014, 06:11 AM   #7
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
Well unless you wanted a fully luks encripted syeytem it does not make much sense to run LVM on a single SD card.
Were you looking for help on a LVM installation ? if so I guess most of what I said is inapplicable ... but if you do an ordinary install you might be able to use the SD you installed on to make another SD with just the fat partitionb and the rest in LVM by using another computer.

As of yesterday evening I now have a Pi too ;-)

Last edited by louigi600; 02-09-2014 at 07:23 AM.
 
Old 02-09-2014, 03:54 PM   #8
elesmod
Member
 
Registered: Sep 2012
Distribution: Slackware
Posts: 88

Original Poster
Rep: Reputation: Disabled
Nah, no encryption. I only wanted to have a more flexible patrition scheme. I've set my /var/log partition to be 200M, and I wanted to be able to easily shrink /home and expand /var/log if needed. I guess, I'll just use gparted if that time comes
 
Old 02-09-2014, 04:39 PM   #9
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 635
Blog Entries: 20

Rep: Reputation: 81
For personal use and up to 60Gb or so, I don't have much of a problem in doing a 3 partition install (boot, root and swap).
In the past (before LVM support in linux) I used to spend endless hours trying to decide how much space I'd give to root, home, var, usr ... etc. I allays seemed to end up in a situation where I needed a certain amount of space and I actually had it but spread across several filesystem making it unusaqble directly. I then decided that for my personal use I could do with just the partitions strictly necessary.
Ok technically boot partition is not mandatory but 30 odd Mb aint gonna hurt anybody.

Back to making your own initr ... what was mkinitrd looking for ?
Is your system capable of creating PV, VG and logical vomume ?
If you can create a filesystem on a LV and the mount it and use it I suppose all you need are the bits and pieces necessary for the initrd creation.
 
  


Reply



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
Problem with LVM mirror and failed PV, can't recover -- Debian Squeeze lvm 2.02.66-5 Linux Ninja Linux - Server 2 06-02-2017 04:50 PM
LXer: Raspberry Jams: why Raspberry Pi is going back to school LXer Syndicated Linux News 0 10-25-2013 12:20 PM
LXer: Raspberry Strudel: My Raspberry Pi in Austria LXer Syndicated Linux News 0 08-23-2013 06:12 AM
LXer: Raspberry Pi becomes Raspberry PC via Mini-ITX carrier LXer Syndicated Linux News 0 07-17-2013 01:20 PM
LXer: Enter the element14 Pi Day ??Raspberry RoadTest? Challenge for a chance to win a Raspberry Pi c LXer Syndicated Linux News 0 03-08-2012 06:20 AM

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

All times are GMT -5. The time now is 05:44 AM.

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