Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 30 Aug 2014, 00:49
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Boot 4.3 from EXT4?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Author Message
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Wed 23 Sep 2009, 07:07    Post subject:  Boot 4.3 from EXT4?
Subject description: Is it possible?
 

Is it possible to boot 4.3 from an EXT4 partition? pup-430.sfs isn't found.
I tried the following:
- With/out psubdir
- pup-430.sfs, pup_430.sfs, both, both on 2 partitions ...
- zdrv, here, there ...

I got 4.3 to boot from a flash drive, it works just fine, even reads my EXT4 partition.

The help pages and all documentation say that Puppy DOES boot from EXT4.

So ... Boot 4.3 from EXT4, is it possible?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
Jim1911

Joined: 19 May 2008
Posts: 2455
Location: Texas, USA

PostPosted: Wed 23 Sep 2009, 09:57    Post subject:  

I haven't been able to boot a frugal installation from ext4 and have reported it on the 4.3 thread. Somewhere I read that the initrd.gz needs to be changed in order for it to be booted properly. I hope this does get corrected so pup has complete ext4 support. Next, we need pupsave files to be created in ext3/4.
Back to top
View user's profile Send private message 
united

Joined: 09 Nov 2008
Posts: 22

PostPosted: Wed 23 Sep 2009, 12:46    Post subject:  

I have puppy 4.3 installed on my netbook and it is a ext4 - boots just fine - however I have it as a full HD install and not frugal
Back to top
View user's profile Send private message 
Jim1911

Joined: 19 May 2008
Posts: 2455
Location: Texas, USA

PostPosted: Wed 23 Sep 2009, 16:00    Post subject:  

United,
Thanks, because of your post, I installed 430 on an old Sony laptop and it runs fine. It is a full HD installation on an ext4 partitition, created by 430's Gparted. Now all that's needed for complete ext4 support is to correct the initrd.gz, or whatever, so that a frugal installation is recognized and booted properly when installed on an ext4 partition.

Thanks,
Jim
Back to top
View user's profile Send private message 
piratesmack


Joined: 16 Sep 2009
Posts: 100

PostPosted: Thu 24 Sep 2009, 14:57    Post subject:  

Another possible solution would be to recompile the kernel with ext4 support built into it instead of compiling it as a module.
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Fri 25 Sep 2009, 04:56    Post subject:  

It has EXT4 support, but something is still wrong. 4.3 reads my EXT4 partition, but is unable to boot from it.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
piratesmack


Joined: 16 Sep 2009
Posts: 100

PostPosted: Sat 26 Sep 2009, 12:46    Post subject:  

Iguleder wrote:
It has EXT4 support, but something is still wrong. 4.3 reads my EXT4 partition, but is unable to boot from it.


Hm, you're right.
I'll take a look at the initrd and see if I can get it to work
Back to top
View user's profile Send private message 
piratesmack


Joined: 16 Sep 2009
Posts: 100

PostPosted: Sat 26 Sep 2009, 13:29    Post subject:  

Got it!

Just had to change something in the init script.
Replace your initrd.gz with the attached one and frugal + ext4 should work

Or if you want to fix the initrd yourself:

Extract it:
Code:

gunzip initrd.gz
mkdir myinitrd && cd myinitrd
cpio -i --make-directories < ../initrd


Open the "init" file with a text editor and find this section:
Code:

#######################FINDING PUPPY FILES###########################
echo -n "Searching for Puppy files in computer disk drives..." > /dev/console #STEP TWO
#locate all partitions (and superfloppy drives)...
PCPARTSALL="`probepart_init -k`"
PCPARTS0="`echo "$PCPARTSALL" | grep '^/dev/' | cut -f 1-2 -d '|'  | grep -E 'iso9660|ext2|ext3|reiserfs|msdos|vfat|minix|ntfs' | sed -e 's/\/dev\///g'`"
PCPARTS="`echo "$PCPARTS0" | tr "\n" " "`" #note, will have a space char on end.


Or specifically, this line:
Code:

PCPARTS0="`echo "$PCPARTSALL" | grep '^/dev/' | cut -f 1-2 -d '|'  | grep -E 'iso9660|ext2|ext3|reiserfs|msdos|vfat|minix|ntfs' | sed -e 's/\/dev\///g'`"


Change it to:
Code:

PCPARTS0="`echo "$PCPARTSALL" | grep '^/dev/' | cut -f 1-2 -d '|'  | grep -E 'iso9660|ext2|ext3|ext4|reiserfs|msdos|vfat|minix|ntfs' | sed -e 's/\/dev\///g'`"


And save

Now rebuild the initrd:
Code:

find ./ | cpio -H newc -o > initrd
gzip initrd


That's it

EDIT:
It now boots from ext4, but still won't save to ext4
Will look into that
initrd.gz
Description  initrd.gz ext4
gz

 Download 
Filename  initrd.gz 
Filesize  1.36 MB 
Downloaded  348 Time(s) 
Back to top
View user's profile Send private message 
tulindo

Joined: 29 Sep 2009
Posts: 2

PostPosted: Tue 29 Sep 2009, 11:35    Post subject: Saving to EXT4  

Hi, piratesmack, did you manage to save to ext4?
Back to top
View user's profile Send private message 
piratesmack


Joined: 16 Sep 2009
Posts: 100

PostPosted: Tue 29 Sep 2009, 18:04    Post subject:  

No, I've been too busy.
I'll see if I can get it working tomorrow.
Back to top
View user's profile Send private message 
piratesmack


Joined: 16 Sep 2009
Posts: 100

PostPosted: Tue 29 Sep 2009, 18:23    Post subject:  

can anybody post their /etc/rc.d/rc.shutdown?
Back to top
View user's profile Send private message 
tulindo

Joined: 29 Sep 2009
Posts: 2

PostPosted: Wed 30 Sep 2009, 05:09    Post subject: Save the session to ext4  

Thanks to piratesmack's hint I managed to find the modification that allows to save session to ext4 partition.

Just open /etc/rc.d/rc.shutdown script and find the following line:
Code:
PARTSLIST="`probepart -m 2> /dev/null | grep '^/dev/' | grep --extended-regexp 'ext2|ext3|reiserfs|msdos|vfat|minix|ntfs' | cut -f 1-3 -d '|' | sed -e 's/msdos/vfat/g'`"


and edit it (adding ext4) in this way:
Code:
PARTSLIST="`probepart -m 2> /dev/null | grep '^/dev/' | grep --extended-regexp 'ext2|ext3|ext4|reiserfs|msdos|vfat|minix|ntfs' | cut -f 1-3 -d '|' | sed -e 's/msdos/vfat/g'`"


Please find attached the fixed script.

Hope it helps,
tulindo
rc.shutdown.gz
Description  fixed script.
gz

 Download 
Filename  rc.shutdown.gz 
Filesize  13.13 KB 
Downloaded  298 Time(s) 
Back to top
View user's profile Send private message 
Iguleder


Joined: 11 Aug 2009
Posts: 1886
Location: Israel, somewhere in the beautiful desert

PostPosted: Wed 30 Sep 2009, 07:48    Post subject:  

Awesome! Very Happy
You should send this to Barry!
Back to top
View user's profile Send private message Visit poster's website MSN Messenger 
ICQ Number 
piratesmack


Joined: 16 Sep 2009
Posts: 100

PostPosted: Wed 30 Sep 2009, 13:16    Post subject:  

Thanks, tulindo
Back to top
View user's profile Send private message 
Jim1911

Joined: 19 May 2008
Posts: 2455
Location: Texas, USA

PostPosted: Wed 30 Sep 2009, 13:24    Post subject:  

piratesmack and tulindo,

Thanks for the fix on this problem. I posted a link to this topic on Barry's 4.3 topic. I hope that he will incorporate your fixes in his next releases. For the first time, frugal pup installations on an ext4 partition are usable.

The next problem to overcome is to be able to use pupsave.4fs save files on ext4 partitions.

Thanks again,
Jim
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [31 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0874s ][ Queries: 12 (0.0173s) ][ GZIP on ]