Boot 4.3 from EXT4?
- Iguleder
- Posts: 2026
- Joined: Tue 11 Aug 2009, 09:36
- Location: Israel, somewhere in the beautiful desert
- Contact:
Boot 4.3 from EXT4?
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?
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?
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.
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
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
- piratesmack
- Posts: 100
- Joined: Wed 16 Sep 2009, 14:22
- piratesmack
- Posts: 100
- Joined: Wed 16 Sep 2009, 14:22
- piratesmack
- Posts: 100
- Joined: Wed 16 Sep 2009, 14:22
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:
Open the "init" file with a text editor and find this section:
Or specifically, this line:
Change it to:
And save
Now rebuild the initrd:
That's it
EDIT:
It now boots from ext4, but still won't save to ext4
Will look into that
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: Select all
gunzip initrd.gz
mkdir myinitrd && cd myinitrd
cpio -i --make-directories < ../initrd
Code: Select all
#######################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.
Code: Select all
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'`"
Code: Select all
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'`"
Now rebuild the initrd:
Code: Select all
find ./ | cpio -H newc -o > initrd
gzip initrd
EDIT:
It now boots from ext4, but still won't save to ext4
Will look into that
Saving to EXT4
Hi, piratesmack, did you manage to save to ext4?
- piratesmack
- Posts: 100
- Joined: Wed 16 Sep 2009, 14:22
- piratesmack
- Posts: 100
- Joined: Wed 16 Sep 2009, 14:22
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:
and edit it (adding ext4) in this way:
Please find attached the fixed script.
Hope it helps,
tulindo
Just open /etc/rc.d/rc.shutdown script and find the following line:
Code: Select all
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'`"
Code: Select all
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'`"
Hope it helps,
tulindo
- Attachments
-
- rc.shutdown.gz
- fixed script.
- (13.13 KiB) Downloaded 468 times
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
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
pupsave.4fs
The file system inside the pupsave file is not related to the file system the pupsave file resides in. (e.g. a pupsave.2fs file stored in an NTFS partition has an ext2 file system inside it.)Jim1911 wrote:The next problem to overcome is to be able to use pupsave.4fs save files on ext4 partitions.
Most flexible if "init" implements the following naming scheme:
pupsave.2fs -> ext2
pupsave.3fs -> ext3
pupsave.4fs -> ext4
gyro
- piratesmack
- Posts: 100
- Joined: Wed 16 Sep 2009, 14:22
- piratesmack
- Posts: 100
- Joined: Wed 16 Sep 2009, 14:22
Here it is
I just added a simple dialog menu that lets you select what filesystem you want to use for the save file.
The save file will still be called pupsave.2fs, but will be formatted as whatever filesystem you choose. I tried to make it 2fs for ext2, 3fs for ext3, and 4fs for ext4, but that was too much work
I haven't gotten to test it yet, so let me know if it works.
I just added a simple dialog menu that lets you select what filesystem you want to use for the save file.
Code: Select all
FILESYSTEM=`dialog \
--stdout \
--no-cancel \
--no-collapse \
--menu "Select a filesystem for your pupsave file" 0 0 0 \
ext2 "Second extended filesystem" \
ext3 "Third extended filesystem" \
ext4 "Fourth extended filesystem"`
....
JOPT=''
[ "$FILESYSTEM" = "ext3" ] && JOPT='-j'
[ "$FILESYSTEM" = "ext4" ] && JOPT='-t ext4'
mke2fs $JOPT blah blah blah
I haven't gotten to test it yet, so let me know if it works.
- Attachments
-
- rc.zip
- /etc/rc.d/rc.shutdown
- (13.08 KiB) Downloaded 357 times