Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (4) </ 1 2 [3] 4 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: FROM RAM to USB (configurations), booting from usb (ram)< Next Oldest | Next Newest >
henk1955 Offline





Group: Members
Posts: 249
Joined: June 2004
Posted: Sep. 09 2004,15:21 QUOTE

Code Sample

/proc      /proc       proc   defaults            0 0
/sys       /sys        sysfs  noauto              0 0
/dev/pts   /dev/pts    devpts mode=0622           0 0
/dev/fd0   /mnt/auto/floppy auto   user,noauto,exec,umask=000    0 0
/dev/cdrom /mnt/auto/cdrom  auto   user,noauto,exec,ro 0 0
# Added by KNOPPIX
/dev/hde1 /mnt/hde1 vfat noauto,users,exec,umask=000,uid=1001,gid=500 0 0
# Added by KNOPPIX
/dev/hda1 /mnt/hda1 vfat noauto,users,exec,umask=000,uid=1001,gid=500 0 0
# Added by KNOPPIX
/dev/hda2 /mnt/hda2 ext2 noauto,users,exec 0 0
# Added by KNOPPIX
/dev/hda5 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda6 /mnt/hda6 vfat noauto,users,exec,umask=000,uid=1001,gid=500 0 0
# Added by KNOPPIX
/dev/hda7 /mnt/hda7 ext2 noauto,users,exec 0 0


--------------
You have a Q or just want to chat?
Come to #damnsmalllinux on irc.freenode.net!
Open 24/7

dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster
asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl)
ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
Back to top
Profile PM WEB MSN 
henk1955 Offline





Group: Members
Posts: 249
Joined: June 2004
Posted: Sep. 09 2004,15:40 QUOTE

wat puzels me the most is that if i replace the original /etc/rc5/S49dsl-restore by my simpler variant( it set /opt/.backup_device and than call /usr/sbin/filetool.sh
every thing goes well

following the COMPLETE code of my /etc/rc5/S49dsl-restore :
Code Sample

!/bin/bash

. /etc/init.d/dsl-functions

 CMDLINE=$(cat /proc/cmdline)
#  DEVICE="$(getbootparam 'restore')"
 BACKUP_DEVICE="$(getbootparam 'restore')"
#  BACKUP_DEVICE="/dev/hda7"
 echo "$BACKUP_DEVICE" > /opt/.backup_device

/usr/sbin/filetool.sh restore noprompt
exit 0



my car /proc/cmdline
Code Sample

ramdisk_size=100000 init=/etc/init lang=us apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi vga=791 nomce fromhd=/dev/hda7 knoppix_dir=dsl-0.8.1 frugal lpd restore=/dev/hda7 mydsl_dir=(/dsl-0.8.0/base /dsl-0.8.0/henk)


filetool.lst
Code Sample

/home/dsl/filetool.lst
/opt/ppp
/opt/bootlocal.sh
/opt/powerdown.sh
/opt/phome.sh
/usr/share/icewm/themes/BlueCurve/default.theme
/opt/mysql
/opt/openoffice
/opt/openoffice1.1.2
/home/dsl/OpenOffice.org1.1.0
/home/dsl/OpenOffice.org1.1.2
/home/dsl/.sversionrc
/home/dsl/.mime.types
/home/dsl/mailcap
/home/dsl/bewaar
/home/dsl/.mplayer
/home/dsl/.sylpheed
/home/dsl/Mail
/home/dsl/.amsn
/home/dsl/.amsn_received
/home/dsl/.mozilla
/home/dsl/.phoenix
/opt/.firefox_plugins
/home/dsl/.icewm
/home/dsl/GNUstep
/home/dsl/Choices
/home/dsl/.xinitrc
/home/dsl/.xserverrc
/home/dsl/.axyftp


<edit>
btw
at startup it says
Restoring backup files from /cdrom
at shutdown
... to /cdrom
</edit


--------------
You have a Q or just want to chat?
Come to #damnsmalllinux on irc.freenode.net!
Open 24/7

dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster
asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl)
ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
Back to top
Profile PM WEB MSN 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Sep. 09 2004,17:09 QUOTE

Quote
fromhd=/dev/hda7 knoppix_dir=dsl-0.8.1 frugal lpd restore=/dev/hda7


Since I don't run fromhd, it may be a timing issue.

You mod is just really delaying things by storing from cmdline to /opt/.backup_device then reparsing and starting another script that would allow more time to pass.

I will have to setup a test environment to see if I can reproduce this. I will also check with beta testers to see if anyone tested such an environment. But it seems that you have a work-around for your needs for now.

It is indeed interesting to see the many various ways users deploy the system It does make it challenging to test the system in so many ways.
Back to top
Profile PM WEB 
henk1955 Offline





Group: Members
Posts: 249
Joined: June 2004
Posted: Sep. 09 2004,18:25 QUOTE

i hardy think its a timing problem
i autoload:
icewm.dsl
spool_lpd_ld.tar.gz = printer settings
amsn.dsl
dsl-aterm.tar.gz
firefox.uci
ImageMagic.dsl
j2re1.4.2.uci
rkhunter.dsl
rox.dsl
tcktk8.3.dsl

this should give more then enough delay.

@Roberts:
please dont waste to many time on this.
i dont give this high priority.
i am happy with the way i have solved it.


--------------
You have a Q or just want to chat?
Come to #damnsmalllinux on irc.freenode.net!
Open 24/7

dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster
asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl)
ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
Back to top
Profile PM WEB MSN 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Sep. 09 2004,19:46 QUOTE

No. I like the challenge. I have setup a test machine. Their is an issue with the combination of using fromhd and restore from the same hard drive, same is true  for frugal, your mod is specific only to those two combinations. Is it not a timing issue but one of the boot device not represented in /etc/fstab, it is correct in the /etc/mtab which represents devices that have been mounted. That is why your mod works with the fromhd. Your hda7 from /etc/fstab would indicate a mount point of /mnt/hda7 and not /cdrom, whereas using /etc/mtab yields the correct response. To me this indicates a problem inside the knoppix-autconfig whereas the boot device should be represented in /etc/fstab correctly which it is not. It is there I must look for a complete solution.
Back to top
Profile PM WEB 
15 replies since Sep. 07 2004,11:57 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: FROM RAM to USB (configurations)

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code