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 Sun 21 Dec 2014, 17:02
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 Posts_count   Goto page: 1, 2, 3 Next
Author Message
Iguleder


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

PostPosted: Wed 23 Sep 2009, 07:07    Post_subject:  Boot 4.3 from EXT4?
Sub_title: 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_website MSNM 
ICQ 
Jim1911

Joined: 19 May 2008
Posts: 2457
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: 2457
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: 1927
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_website MSNM 
ICQ 
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  356 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  303 Time(s) 
Back to top
View user's profile Send_private_message 
Iguleder


Joined: 11 Aug 2009
Posts: 1927
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_website MSNM 
ICQ 
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: 2457
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:   Sort by:   
Page 1 of 3 Posts_count   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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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