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 Fri 18 Apr 2014, 08:50
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Helping Puppy find user_cram.fs at boot
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Author Message
kabooky
Guest


PostPosted: Mon 13 Jun 2005, 15:28    Post subject:  Helping Puppy find user_cram.fs at boot  

so I have my drive booting with syslinux, it loads everything into the ram and when it gets to loading user_cram.fs off the usb drive it fails to find the drive. After failing to find the usb drive it automatically checks the cd-rom for usr_cram.fs and if i have the cd in at the time it will go ahead and load it, loading the GUI.

So i don't understand after loading the other files off the drive why when it comes to usr_cram.fs it can't find the device no matter where i look, sda sda1 sda2 sdb sdb1 sdb2 ( I have no other usb devices plugged in )

I need help
Back to top
Guest
Guest


PostPosted: Mon 13 Jun 2005, 15:37    Post subject:  

these guys were having the same exact problem as me but no help was really given.

http://www.murga.org/%7Epuppy/viewtopic.php?t=484
http://www.murga.org/%7Epuppy/viewtopic.php?t=239
Back to top
Jesse

Joined: 08 May 2005
Posts: 465
Location: Auckland, NZ

PostPosted: Mon 13 Jun 2005, 18:54    Post subject:  

Hi,

the thing about the boot process is that PuppyLinux doesn't know automatically where it came from, so it has to hunt for the last part of it before it gets into x windows, which is the usr_cram.fs file.
I've found that if you put the usr_cram.fs file inside the pup001 file, that PuppyLinux will find it more reliably.

So if when you boot up, you get to that red text saying "can't find usr_cram.fs" you can fix by doing these commands:

1)
# df

Filesystem 1k-blocks Used Available Use% Mounted on
rootfs 1005848 9520 996328 1% /
tmpfs 1005848 9520 996328 1% /
/dev/hda6 7808356 4701428 3106928 60% /mnt/home
/dev/loop1 507748 192071 289463 40% /root
/dev/loop0 562020 246343 289463 46% /usr
none 562020 246343 289463 46% /usr

Look for a /dev/loop* on the left with a /root on the right (on same line)
If there is one then proceed to step 2

2)
Make sure that you know where the usr_cram.fs file is, and copy it to the /root directory (this is copying into your pup001 file)

(e.g. if copying from cd, mount the cd)
# mount /dev/cdrom /mnt/cdrom

# cp /mnt/cdrom/usr_cram.fs /root/

flush file system buffers:

# sync

3)
restart your computer

# restart


Hope this helps.
Jesse
Back to top
View user's profile Send private message 
kabooky
Guest


PostPosted: Mon 13 Jun 2005, 19:59    Post subject:  

thank you so much, i will try this when i get home.
Back to top
kabooky
Guest


PostPosted: Mon 13 Jun 2005, 22:39    Post subject:  

ok well, the problem seems to be that when it goes to

"Puppy wants to mount the users home device"
mounting /dev/sda1 on /root failed: no such device or address
mounting /dev/sdb1 on /root failed: no such device or address
looking for usr_cram.fs on cd...

so puppy can't find the root or usbdrive
and therefore can't find usr_cram.fs

i have no idea what to do, perhaps an adjustment to the syslinux.cfg,
or would an image.gz file that has the usr_cram.fs work?

help would be greatly appreciated
Back to top
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Mon 13 Jun 2005, 23:31    Post subject:  

What sort of USB device are you using and which version of Puppy.
Back to top
View user's profile Send private message 
kabooky
Guest


PostPosted: Mon 13 Jun 2005, 23:49    Post subject:  

A PNY 512 mb PNY Attaché (no extra drivers came with it, runs great plug+play)
puppy bare-bones 1.0.3
Back to top
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Mon 13 Jun 2005, 23:55    Post subject:  

Have you tried any other version of Puppy and how did you do the install.
Back to top
View user's profile Send private message 
kabooky
Guest


PostPosted: Tue 14 Jun 2005, 00:10    Post subject:  

I haven't tried any other versions, for the install, I made the cd, I used the script on the cd to put the four files on the drive, I actually ran it twice once for each partition, because it didn't boot otherwise, I had sda and sda1. They were both the same device, i assume they were different partitions because sda was call PNY DIRECT ACCESS i think, and sda1 said something about the ms-dos fat partition, there was only the one usb device plugged in. Through ms-dos i copyed syslinux.exe, syslinux.c and makefile onto the drive, i ran syslinux.exe ---" syslinux -s f: " to make the drive bootable. And it boots now. It just can't find the usb drive after everything is loaded and hence can't find usr_cram.fs And yes I have tried the usb ports on the front and back of my machine because someone posted that his computer had a foreign hub controlling the front usb ports and it lost control through the boot just like mine is doing. So i'm now pretty lost
Back to top
kabooky
Guest


PostPosted: Tue 14 Jun 2005, 00:49    Post subject:  

I think i'll go ahead and try my luck at barebones 1.0.2 since this other guy said his 1.01 and 1.02 works but not 1.03, and his couldn't find the usr_cram.fs or mount his home dir like mine. so i'll get back to you guys about it.
Back to top
kabooky
Guest


PostPosted: Tue 14 Jun 2005, 01:26    Post subject:  

SUCCESS FIRST TRY. I'm not sure why 1.0.3 didn't work but 1.0.2 mozilla bare bones works wonderfully.
Back to top
mdbarton
Guest


PostPosted: Fri 22 Jul 2005, 07:03    Post subject: got 1.0.3 working  

I have had the same problem (with a 512MB Corsair Flash Voyager). Managed to get is working with the following (from memory!)

Code:
mount /dev/sda /mnt/flash
mount -o loop /mnt/flash/usr_cram.fs /usr
mount -o loop /mnt/flash/pup001 /root
startx


And X started up. However, this does not persist - if I reboot I have to do it again, and I notice some of the apps will not work (mozilla and abiword). Still, finally got linux working(ish) off a USB pen!

Maybe I'll try 1.0.4 - is this problem fixed in the latest version?

Matt
Back to top
Guest
Guest


PostPosted: Fri 22 Jul 2005, 07:38    Post subject:  

ok....

sda this relates to the WHOLE drive.....ie what would initially be an unpartitioned drive

sda1, sda2, sdaxx these relate to the PARTITIONS and these must be the device file that is mounted...not sda

ok after manually mounting usr_cram.fs logout and log back in then start your x session.........This is related to the LD_LIBRARY_PATH variable...trust me on this one I know it works...

So to recap...Puppy should only be installed to sda1 or sdaxx not sda. And the same goes for mounting mount /dev/sdaxx not /dev/sda

I think the syslinux (or a readme) site has an explanation as to why some USB flash drives are difficult to get to boot
Back to top
mdbarton
Guest


PostPosted: Fri 22 Jul 2005, 07:55    Post subject:  

I thought it strange that it worked on /dev/sda not /dev/sda1, however I had a nightmare formatting the drive. If I used fdisk and mkdosfs from the Puppy liveCD or from my Ubuntu installation on my desktop, the usb stick will not boot. If I format the drive using Windows XP, it will not boot. The only way I found was to used the flash utility supplied by Corsair. The copy the files int the flash drive, run syslinux, and all as described.

I did notice that when I have formatted with the corsair utility, fdisk complains about overlapping partitions.
Back to top
bean

Joined: 27 Apr 2006
Posts: 2

PostPosted: Thu 27 Apr 2006, 16:40    Post subject: on boot: Mounting /dev/sda1 on /root failed: No such devi...  

As with the others posting to this thread Puppy has been unable to find my user_cram.fs file when booting from USB flash. I have found that removing and re-inserting the USB drive at the correct point in the boot process works around the problem. Here are my specifics:

-SanDisk Cruzer Mini 512MB USB Flash drive
- Dell Optiplex GX60 w/ latest BIOS flashed
-USB drive formatted with HP USB Disk storage Tool as vfat/win32 single partition
-Puppy live CD version: puppy-multisession-1.0.8r1-mozilla
-USB install using "Install Puppy USB" script with all defaults to /dev/sda1

During the boot process there is a long pause after the usb drive info is displayed:

Vendor: SanDisk Rev: 0.2
Type: Direct Access ANSI SCSI revision: 02

sda: Write Protect is off
sda:

It is at this point that there is a long pause in the boot process during which if I remove and re-insert the USB drive user_cram.fs is successfully found and Puppy boots as expected. If, however I do not remove and re-insert the usb drive at this point the following error messages are reported after the long pause (the first line shown below starts with the last one shown above):

sda:<6>scsi: device set offline - not ready or command retry failed after bus reset: host 0 channel 0 id 0 lun 0
SCSI disk error: host 0 channel 0 id 0 lun 0 return code=50000
I/O error: dev 08:00, sector 0
I/O error: dev 08:00, sector 2
I/O error: dev 08:00,sector 0

The boot process then continues with the typical complaints about not being able to find user_cram.fs and I am dropped to the shell. At this point if I try to manually mount /dev/sda1 I am told that the device does not exist. Though I haven't tried it, I suspect that removing the USB drive and re-inserting it at this point may make it mountable.

I have not been able to try booting on other machines but will do so this evening. If anyone has any ideas on how to fix this or would like me to do any further testing or provide more information I am happy to do so.

- Ben
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [19 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.0643s ][ Queries: 12 (0.0050s) ][ GZIP on ]