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 Mon 25 May 2015, 03:55
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 Posts_count  
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: 13644
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_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0412s ][ Queries: 11 (0.0034s) ][ GZIP on ]