Bad2theBone
12th October 2010, 10:03 PM
I will be out of town for a while and have a need to utilize apps from my system (running Fedora 13-x86_64) on an unknown M$ Windows PC. I bought a 16GB USB Flash Drive and want to utilize the full capacity or at least be able to access the unused portion available beyond the Live Image. I need to add some apps that don't come already installed on the Live Desktop CD. I have outlined below the steps that I have done so far:
1. Setup a Qemu-KVM VM running F 13 with livecd-tools and revisor installed and SELinux set to permissive. The Host SELinux is set to enforcing.
2. Created a kickstart cfg file with pretty much default on options set except for packages, I added the ones that I wanted included.
3. I first tried Revisor and found that nothing would happen beyond the step where I select my kickstart.cfg file, so I used the CLI livecd-creator
4. Created the LiveCD.iso file with the following command: setarch i686 livecd-creator -c /path-to-kickstart.cfg-file.
5. I then moved the iso file to a folder on the Host machine and ran liveusb-creator with the following CLI command: livecd-iso-to-disk --format --reset-mbr --home-size-mb 1024 /home/scott/.kickstart/F13LiveCD3.iso /dev/sdd
I had tried several partitioning schemes to include, 2 partitions as primary 1st set to about 2GB since image was about 1.1GB and the 2nd using the rest of the drive, 1 partition set as primary using the whole drive. In both cases I used either type 83 or later c all with mixed results. The final attempt was with no partitions set. The last attempt went through a media check and indicated that it was OK and to continue would destroy any data on it. I continued and the DOS partition was created and formatted, image files copied, then it went onto the creation of the /home overlay using LUKs encryption so it asked for my passphrase and then verifyed it along with asking for it again for mounting the fs loop. It then went on creating the overlay and seemed to finish.
Now due to some glitch in my BIOS I'm unable to boot the USB Flash Drive (get "boot error" which I had problems with the installation DVD with similar errors and found that others had the same problem with Gigabyte MoBos), but I was able to test it with qemu-kvm -hda /dev/sd?1 -m 1024 -vga std.
Now I have few questions because I'm totally not sure what is going on, even though so far it seems to be working.
1. When I do a df -vh on the host machine the USB shows up with total size of 16GB used about 2.1GB with about 13GB avail. But when I do the same in the virt. machine I get 4 devices that do not add up and nothing about /home.
Should I not be seeing /home listed as well as /?
How can I tell if I actually do have the full flash drive being utilized with the free space truly usable?
1. Setup a Qemu-KVM VM running F 13 with livecd-tools and revisor installed and SELinux set to permissive. The Host SELinux is set to enforcing.
2. Created a kickstart cfg file with pretty much default on options set except for packages, I added the ones that I wanted included.
3. I first tried Revisor and found that nothing would happen beyond the step where I select my kickstart.cfg file, so I used the CLI livecd-creator
4. Created the LiveCD.iso file with the following command: setarch i686 livecd-creator -c /path-to-kickstart.cfg-file.
5. I then moved the iso file to a folder on the Host machine and ran liveusb-creator with the following CLI command: livecd-iso-to-disk --format --reset-mbr --home-size-mb 1024 /home/scott/.kickstart/F13LiveCD3.iso /dev/sdd
I had tried several partitioning schemes to include, 2 partitions as primary 1st set to about 2GB since image was about 1.1GB and the 2nd using the rest of the drive, 1 partition set as primary using the whole drive. In both cases I used either type 83 or later c all with mixed results. The final attempt was with no partitions set. The last attempt went through a media check and indicated that it was OK and to continue would destroy any data on it. I continued and the DOS partition was created and formatted, image files copied, then it went onto the creation of the /home overlay using LUKs encryption so it asked for my passphrase and then verifyed it along with asking for it again for mounting the fs loop. It then went on creating the overlay and seemed to finish.
Now due to some glitch in my BIOS I'm unable to boot the USB Flash Drive (get "boot error" which I had problems with the installation DVD with similar errors and found that others had the same problem with Gigabyte MoBos), but I was able to test it with qemu-kvm -hda /dev/sd?1 -m 1024 -vga std.
Now I have few questions because I'm totally not sure what is going on, even though so far it seems to be working.
1. When I do a df -vh on the host machine the USB shows up with total size of 16GB used about 2.1GB with about 13GB avail. But when I do the same in the virt. machine I get 4 devices that do not add up and nothing about /home.
Should I not be seeing /home listed as well as /?
How can I tell if I actually do have the full flash drive being utilized with the free space truly usable?