Re: lose data on shutdown?
Aleksandar Kuktin wrote: [...] But make sure you do it properly - if your script is like this: # Begin my_script.sh export LFS=/mnt/lfs export FOO=blabla Then simle `bash my_script.sh' won't help becouse the bash you just ordered will fork a totally new process which will run my_script.sh, set its own enviroment and then die. You should do: `source my_script.sh'. What I usually do is # mount /dev/device /mnt/someplace # cd /mnt/someplace # ./restart_script Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lose data on shutdown?
Kyle Rush wrote: I have a livecd 6.3 and book 6.3. the computer I am installing it on is somewhat old, and thus 1 SBU = about one hour. I can't figure out how to shut down the machine without losing everything i was working on. I do not know if this was covered in the book; i don't think it was. if i am wrong, say so and i will go back to reading the book. please help. There is a hint written about that. I used the same CD-ROM you are using to build 6.5 successfully a couple of times. I don't recall the entire URL, but I have a copy of that, and the file name is stages-stop-and-resume.txt I'm sure if you look in the hints section of the web site you can find it. If you have troubles, then I can shoot you a copy via separate e-mail. First, you can't really just shutdown whenever you like. You have to let any given build complete. You don't have to do an install, however. Second, when all activity has stopped, and a build has successfully completed, you certainly can shut down. I *highly* recommend that you write down exactly what you were doing, and what the next step needs to be, on a piece of paper, and conserve it with the machine where it will not get lost, or put it into a text file on the file system you need to mount. It's surprising how long you can put a build aside, thinking you'll be back at it next day, and then find out two weeks later, when you finally get back to it, that you can't remember just where you were. Third, in order to restart, you have to do some maintenance stuff. You have to mount your partitions, and set up some shell variables, like $LFS. This initial setup can be put into a little shell script in the top level of your mounted build file system. Later, you'll want to add another to enter the chroot environment, and then another which can be run inside the chroot to set up what you need. The scripts are not necessary, but are very helpful. That said, it is easier not to have to reboot, if you can avoid it. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lose data on shutdown?
On Fri, February 12, 2010 4:48 am, Mike McCarty wrote: Kyle Rush wrote: I have a livecd 6.3 and book 6.3. the computer I am installing it on is somewhat old, and thus 1 SBU = about one hour. I can't figure out how to shut down the machine without losing everything i was working on. I do not know if this was covered in the book; i don't think it was. if i am wrong, say so and i will go back to reading the book. please help. There is a hint written about that. I used the same CD-ROM you are using to build 6.5 successfully a couple of times. I don't recall the entire URL, but I have a copy of that, and the file name is stages-stop-and-resume.txt I'm sure if you look in the hints section of the web site you can find it. If you have troubles, then I can shoot you a copy via separate e-mail. First, you can't really just shutdown whenever you like. You have to let any given build complete. You don't have to do an install, however. Second, when all activity has stopped, and a build has successfully completed, you certainly can shut down. I *highly* recommend that you write down exactly what you were doing, and what the next step needs to be, on a piece of paper, and conserve it with the machine where it will not get lost, or put it into a text file on the file system you need to mount. It's surprising how long you can put a build aside, thinking you'll be back at it next day, and then find out two weeks later, when you finally get back to it, that you can't remember just where you were. Third, in order to restart, you have to do some maintenance stuff. You have to mount your partitions, and set up some shell variables, like $LFS. This initial setup can be put into a little shell script in the top level of your mounted build file system. Later, you'll want to add another to enter the chroot environment, and then another which can be run inside the chroot to set up what you need. The scripts are not necessary, but are very helpful. That said, it is easier not to have to reboot, if you can avoid it. Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page OK thanks, but I'm losing EVERYthing. not just partitions, but everything. users, files, builds...when i restart, it's just what's on the livecd. NOTHING else. am i doing someting wrong? -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lose data on shutdown?
On 12/02/10 12:14, Kyle Rush wrote: I have a livecd 6.3 and book 6.3. the computer I am installing it on is somewhat old, and thus 1 SBU = about one hour. I can't figure out how to shut down the machine without losing everything i was working on. If you've made a partition on your hard drive to work on then when you unmount it all that you've compiled will be saved there. The problem is when you resume work you need to make sure things are set up properly. In chapter 5 that just means su - lfs but in chapter 6 you need to make sure that you've mounted /proc, /sys and /dev Andy -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lose data on shutdown?
On Fri, February 12, 2010 5:15 am, Andrew Benton wrote: On 12/02/10 12:14, Kyle Rush wrote: I have a livecd 6.3 and book 6.3. the computer I am installing it on is somewhat old, and thus 1 SBU = about one hour. I can't figure out how to shut down the machine without losing everything i was working on. If you've made a partition on your hard drive to work on then when you unmount it all that you've compiled will be saved there. The problem is when you resume work you need to make sure things are set up properly. In chapter 5 that just means su - lfs but in chapter 6 you need to make sure that you've mounted /proc, /sys and /dev that's the problem. I'm in chap.5 and su - lfs doesn't work. says error:user does not exist. I have set up the user lfs as instructed. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lose data on shutdown?
On Fri, 12 Feb 2010 13:14:37 +0100, Kyle Rush k...@cyber-rush.org wrote: I have a livecd 6.3 and book 6.3. the computer I am installing it on is somewhat old, and thus 1 SBU = about one hour. I can't figure out how to shut down the machine without losing everything i was working on. I do not know if this was covered in the book; i don't think it was. if i am wrong, say so and i will go back to reading the book. please help. If I understand you right, you want to shutdown the computer while installing LFS and resume the installation later? There is a hint for this here: http://www.linuxfromscratch.org/hints/downloads/files/stages-stop-and-resume.txt It is kind of old, but the basics should still apply for newer versions of the book. However, I have lost track of all the changes that were made in the past months, so I would not entirely rely on the information. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lose data on shutdown?
Kyle Rush wrote: On Fri, February 12, 2010 4:48 am, Mike McCarty wrote: [get] stages-stop-and-resume.txt I'm sure if you look in the hints section of the web site you can find it. If you have troubles, then I can shoot you a copy via separate e-mail. [...] OK thanks, but I'm losing EVERYthing. not just partitions, but everything. users, files, builds...when i restart, it's just what's on the livecd. NOTHING else. am i doing someting wrong? If you're following the book properly, you are losing nothing. You do have to go through the setup again, and remount your file system(s). Are you pretty much UNIX savvy, and understand the concept of a mount and what it does? Mike -- p=p=%c%s%c;main(){printf(p,34,p,34);};main(){printf(p,34,p,34);} Oppose globalization and One World Governments like the UN. This message made from 100% recycled bits. You have found the bank of Larn. I speak only for myself, and I am unanimous in that! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
Re: lose data on shutdown?
On Fri, 12 Feb 2010 05:22:24 -0800 Kyle Rush k...@cyber-rush.org wrote: On Fri, February 12, 2010 5:15 am, Andrew Benton wrote: On 12/02/10 12:14, Kyle Rush wrote: I have a livecd 6.3 and book 6.3. the computer I am installing it on is somewhat old, and thus 1 SBU = about one hour. I can't figure out how to shut down the machine without losing everything i was working on. If you've made a partition on your hard drive to work on then when you unmount it all that you've compiled will be saved there. The problem is when you resume work you need to make sure things are set up properly. In chapter 5 that just means su - lfs but in chapter 6 you need to make sure that you've mounted /proc, /sys and /dev that's the problem. I'm in chap.5 and su - lfs doesn't work. says error:user does not exist. I have set up the user lfs as instructed. Have you set it up after resuming? As I have understood it, you booted the livecd, made the preparations, built, stoped, rebooted (or whatev) and now you can't resume. It's simple - the root filesystem of the livecd lives in RAM and goes away with the power. What's on the HDD (/mnt/lfs) does not, ofcourse. So, when you boot the livecd, make a new user and build, then all that happens above /mnt/lfs is volatile. Upon rebooting, you just have to redo ALL the enviroment setting-up. Mike and others have already explained the details. The scripts they mention should be put somewhere under /mnt/lfs, so that they themselves are not in volatile memmory. Upon rebooting, run them. But make sure you do it properly - if your script is like this: # Begin my_script.sh export LFS=/mnt/lfs export FOO=blabla Then simle `bash my_script.sh' won't help becouse the bash you just ordered will fork a totally new process which will run my_script.sh, set its own enviroment and then die. You should do: `source my_script.sh'. -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page