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 Wed 20 Jun 2018, 12:00
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to force mount usr_cram.fs
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message

Joined: 20 Oct 2005
Posts: 451
Location: Boston MA USA

PostPosted: Tue 13 Dec 2005, 20:24    Post subject:  How to force mount usr_cram.fs  

This shell script can be used to manually force mount usr_cram.fs:
mount -t vfat -o rw /dev/hda1 /mnt/home
mkdir /.usr_cram
rmdir /usr
# rm -r /usr
mv /usr /usrsave
ln -s /.usr_cram /usr
losetup /dev/loop0 /mnt/home/usr_cram.fs
mount -r -t squashfs -o noatime /dev/loop0 /.usr_cram

The Puppy boot process is described here:

When your Puppy is not booting properly, you may choose to CTRL-C to a command prompt. rc.sysinit seems to contain most of the startup logic. But it is not smart enough to always work, and not dumb enough to just let you tell it what to do. You can try to study it to understand things, but changing it is a challenge, since it is packed into image.gz.

So, if you want to explore things at the half-booted point, you have only the command line, and also very limited tools, mostly just Busybox. If you study the sysinit script, you will find that most of the complications are due to trying to handle every imaginable situation. The core steps needed for just *your* situation may be pretty simple, if you can just figure out what they are. The above simple script worked for me for a hard-drive type install to a flash card on an IDE adapter with one MSDOS partition, to get usr_cram.fs mounted so there is access to bash, mp, and most all the files of a full Puppy.

I put the file on the Puppy freeDOS boot floppy (which has a lot of free space) named cram-mt. To use it, I just boot to failed Pup, CTRL-C, then:
# mount /dev/fd0 /mnt/floppy
# /mnt/floppy/cram-mt
and there it all is, the universe of full Pup files -- and you are not forced to learn vi, you can use the easier command line text editor mp.

I don't understand much about loop devices yet, but they are clearly key to how Puppy works. Any good reference/tutuorials about this? Seems like someday the Puppy cram should be renamed, if it is really squashfs.

107alpha on 128MB flash-hd msdos partition, set up by 106
128MBram P-233MMX Compaq DP-2000 13dec05
Back to top
View user's profile Send private message 

Joined: 24 Aug 2005
Posts: 13648
Location: Karlsruhe, Germany

PostPosted: Wed 14 Dec 2005, 01:59    Post subject:  

You also can modify /etc/rc.d/rc.sysinit in image.gz:


This has the advantage, the System boots "the normal" way.

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.1348s ][ Queries: 12 (0.0260s) ][ GZIP on ]