Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, I think I have another option that I'm going to try tonight...
- Install PClinuxOS to hard drive.
- Make changes (wallpaper, startup scripts, add/remove additional software, etc)
- Create a new image of my new "liveCD" using the PClinuxOS utility mkliveCD. This creates iso image.
- insert my compact flash card into hda using ide-to-CF adaptor.
- dd if=/mnt/hda3/my-newLiveCD.iso of=/mnt/hda (assuming hda is where CF is installed).
- Boot from new CF.
- Profit (I hope).
Well, I'm a little stuck now. I'll be brief.
I can make the iso image of my remastered PClinuxOS with the mklivecd utility. I've called it mynew.iso. And I can successfully burn the iso to a CD and boot. Hooray!!
Here's the contents of the remastered CD...
isolinux <-- a directory.
livecd.sqfs <-- one big file.
A du on this LiveCD shows it to be about 412MB, small enough for my CF.
I can partition my compact flash card successfully (512MB Lexar) with 1 big partition and format it with a ext2 filesystem. Hooray, m-kay?
And here's what I've tried with no success....
Here's some specs first:
CF (hda)
cdrom (hdd) is my LiveCD remaster
Hard Drive (hdc) to store the images and anything else.
1. cp /mnt/cdrom/* /mnt/hda1 <-- copy content of the live cd to the CF. Boot from the CF. No good.
2. dd if=/mnt/hdc1/mynew.iso of=/mnt/hda1 <-- Pretty much the same as above I think. Doing this, I can see the two files (isolinux directory and the livecd.sqfs).
Boot from flash.... fail. Can't boot.
3. Even tried dd if=/dev/hdd of=/dev/hda1 and again failed to boot.
So then I tried to copy the mbr from the live CD (hdd) using
dd of=/mnt/hdc/mbr.img if=/dev/hdd bs=512 count=1 <-- seemed to work. Got a file.
Then to load the mbr to the CF...
dd if=/mnt/hdc/mbr.img of=/dev/hda
Doing this erased the entire partition on the CF!! fdisk /dev/hda shows nuttin'. Uggh!
I searched and found a couple of howto's and tutorials, one for doing this from a Knoppix based liveCD but PClinuxOS does it different from knoppix. Again, the contents of my remastered PClinuxOS cd is just one directory and one big squashed file. The contents of the Knoppix liveCD's are very different. So I couldn't follow the instructions well.
I'm sure my problem is setting up a correct mbr, but I'm kinda dumb and don't really understand the whole boot process. But I sure would love to embedd my remastered liveCD.
Don't know right now what the ide-to-CF name brand is. I'll check later. In the past, I've installed dsl (damn small linux) to the CF just like a regular HD install, and it works, but there's a lot of writes to the CF that I know ain't good for it. I need it to be read-only loading the OS into memory (1G).
Well, I've been digging for answers to my problem and I'm coming more to the conclusion that it could very well be just a bootup issue. My LiveCd uses syslinux as the bootloader. I've always used lilo and sometimes grub. So googling for "boot syslinux" reveals a CF HOWTO...
which I'm going to try tonight. The only step that might give me a problem is step 5...
>> STEP 5:
Run TS-O-Matic and choose the SYSLINUX boot deployment option. Then download each file and copy it to
the CF card without modification or renaming.
<<
I'm thinking that my "Step 5" will be...
Copy the livecd.sqfs file from the CD to the CF.
I hope this works. Ideally, I'd liike to use lilo instead as the bootloader just because it's what I'm used to and the fact that syslinux only installs on FAT16, vfat filesystems (yucky!!). Perhaps I'll try later, but for know, I just want to get my liveCd embedded and booted and I don't care how. I'll follow up on this. If I get this to work, I think I'd like to submit a nice HOWTO for other embedded newbies like me. What better way to inspire and promote innovative ideas when you have an easy-to-follow roadmap. Todays newbies are tomorrows masters. And unfortunatley, too many good ideas are lost and not implemented from just not knowing how to accomlish them.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.