Jump to content


  • Posts

  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by kof94

  1. Very long time... happy new year. I can't see the point either, just seams like a waste disk of space if you ask me. It's been a while since I used Ubuntu but I'm sure there's meta-packages to add/remove the various DE's: # apt-get install ubuntu-desktop I spend most of my time playing with Linux these days (I'll be a SysAdmin one day ) but I'm still making multi-boot disks now and again... I'm just using my USB stick more now. I'm kinda hooked on grub4dos at the moment, it's not as attractive as syslinux but what it lacks in aesthetic appeal it makes up for in features. I just wish they'd add more of the features from Super Grub Disk (USB Shift etc). Is this a remastered Kubuntu livecd?
  2. Nevermind. I realised this does work (what I originally tried) I just needed to create my partition on sector 95 (really helps when you read ). # dd if=/dev/sdb of=MYMBR96.TMP count=96 bs=512 More over, since I can write directly to the device don't have to write create little images anyway (again reading really helps here ).
  3. I'm planning to write a shell script to setup a bootable UFD and I want to add an option to create a triple MBR. From the GRUB4DOS readme I understand I can use this to add a partition boot record (see Note 2 under "Use bootlace.com to install partition boot record"): Assumes /dev/sdb is my UFD # ./bootlace.com --floppy=0 /dev/sdb1 I'm stuck, however, on grabbing the first 96 sectors from the device. I'm very familiar with dd but mind melts when I try to work out how many bytes I need etc. Here's my output from fdisk: # fdisk -l -u /dev/sdb Disk /dev/sdb: 4009 MB, 4009754624 bytes 124 heads, 62 sectors/track, 1018 cylinders, total 7831552 sectors Units = sectors of 1 * 512 = 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdb1 * 62 7826383 3913161 c W95 FAT32 (LBA) If someone could please explain how to work this out I'd greatly appreciate it (cue jaclaz ).
  4. Just a thought... If you have a fast internet connection why don't you just do a netinstall and download the desktop you want instead of filling your disk with three squashfs images containing similar files.
  5. I recall something similar, will test again with a few sources and get back. Thanks. I just lauched it manually from a seperate terminal and to be honest I don't thing I've ever seen it run in the entire fours years I've used the DriverPacks. I have a feeling it might have something to do with the start command but I have know idea how to work around that. Encase anyone is interested... I got a response over at DriverPacks.net on this issue. It's only supposed to be used with the defunct KTD function so this error can be ignored.
  6. No, no, no... *instead* of copying to usb stick i.e. do all the modifying of the source and creating the iso but not copying it to the usb stick. I have my reasons, may be others will find it redundant but if you do this many times (testing etc) then a program like rsync would do the copying alot quicker by only copying (or removing) files that have changed. This will also reduce disk wear. Make sense? Ah, fair enough... well 32bit XP works fine It should hide as soon as I start using the regular fake setup.exe, not the debug version which shows the cmd window. Currently, for troubleshooting, as at that stage the troubles are expected, the debug version is used. setup.cmd is hidden by fake setup.exe but you still see the presetup.cmd because it's called by setup.cmd. You'd need something like hidec, cmdow or pistart to hide presetup.cmd as well. I recall something similar, will test again with a few sources and get back. Thanks. I just lauched it manually from a seperate terminal and to be honest I don't thing I've ever seen it run in the entire fours years I've used the DriverPacks. I have a feeling it might have something to do with the start command but I have know idea how to work around that.
  7. Fair enough, I'm not a coder but an option that modifies the source instead of copying it first would be preferred by me. Besides rsync works alot better than copying the whole tree over and over again This is the whole reason way I switched from using cdob's RAM method. I'm already using it and works like a charm Off topic... I added this to setup.cmd to hide the presetup.cmd terminal window: :: +=======================================================+ :: | DriverPacks method 2 http://driverpacks.net/ | :: |-------------------------------------------------------| ::if exist presetup.cmd ( ::echo call presetup.cmd >>winsetup.log ::start "" /wait /min presetup.cmd ::echo end presetup.cmd >>winsetup.log ::) for /f "tokens=1 delims=: " %%? in ('mountvol.exe ^|find ":\"') do ( dir %%?:\OEM > nul 2>&1 && set disk=%%?: ) if defined disk ( start /wait /realtime /separate "" %disk%\OEM\bin\un7zip.exe %disk%\OEM\DP*.7z %systemdrive%\ %disk%\OEM\bin\un7zip.exe %disk%\OEM\bin\*.7z %systemdrive%\ copy /y %disk%\OEM\bin\DPsFnshr.ini %systemdrive%\ if exist %disk%\OEM\*.ins copy /y %disk%\OEM\*.ins %systemdrive%\ %disk%\OEM\bin\DevPath.exe %systemdrive%\D start %systemdrive%\DSPdsblr.exe ) I noticed that DSPdsbler.exe wont run, I get an error that it's not executable (Since when did Windows XP have an executable attribute ) . The commands and paths are identical to presetup.cmd from the DriverPacks so I'm starting to wonder if it's ever worked... especially since I have driver signing disabled in my winnt.sif anyway. Any thoughts?
  8. At T-13 the UFD is still seen as D: but after the second reboot (after oobe, when RunOnceEx is started) it is seen as H: (I have card readers and other disks). It's no problem though I've just switched to using GUIRunOnce instead. Whats new, did you considered this: Also, would you consider changing this: setup.cmd SET TAGFILE=\WINSETUP FOR %%h IN (U C D E F G H I J K L M N O P Q R S T V W X Y) DO ( IF EXIST "%%h:%TAGFILE%" ( SET CDDRIVE=%%h: goto :CDDRIVE_found ) ) to this: set TAGFILE=\WINSETUP for /f "tokens=1 delims=: " %%? in ('mountvol.exe ^|find ":\"') do ( dir %%?:%TAGFILE% > nul 2>&1 && set CDDRIVE=%%?: ) if defined CDDRIVE goto :CDDRIVE_found Stops "no disk" errors for us poor fools with card readers!
  9. Something else I've just discovered... $OEM$ dir works. I don't know why I thought it wouldn't but my cmdlines.txt is ran at T-13. The only draw back is the drive letter for the UFD changes after second reboot so any paths set at T-13 for RunOnceEx are incorrect when you get to the desktop. This isn't an issue though as I can work around it. Infact I could just launch the same script via GUIRunOnce instead and make the $OEM$ dir redundant
  10. If you hit Enter you should be able to delete/create a new partition on your HDD and install Windows. Setup wont allow you to delete the partition on your UFD. If the wrong drive letter is assigned (e.g. your HDD has no partition(s) to start with) then setup.cmd will force a reboot and reset the drive letter to C: at first GUI. I hope this makes sense because I'm a little confused with what your trying to do... do you want to install Windows on your HDD from your UFD?
  11. At the bottom of menu.lst or winsetup.lst (I can't remember) change the line that reads root (hd0,F:) to root (hd0,0) or even better find --set-root /winsetup.lst. This should solve your problem. Edit: Here's some files for you. txtsetup.sif (for ISO), setup.cmd, menu.lst and winsetup.lst files.7z
  12. To be honest so many things could be different with my setup. My main OS is Slackware, I used fdisk (coreutils) to create a FAT32 (LBA) partition and mkdosfs to create a FAT32 filesystem on my disk then ran your GUI inside VirtualBox to do the rest. It's an odd arrangement I will admit but it works for me. Edit: I nearly forgot... The feature I'd most like to see is an option that just creates the ISO without doing the file copying. I can copy/move setup.cmd and setup(org).exe myself! I also did a test removing migrate.inf... it made no difference. @Arvi I had to edit setup.cmd and txtsetup.sif (inside the ISO) to get this to work... I don't know if this helps.
  13. Second go, same thing: File \WIN_SETUP\XP_Pro_SP3\I386\biosinfo.inf could not be loaded The error code is 18 ... The file exists... any ideas? Edit: Nevermind, I renamed the directories \WINSETUP\XP\ and everything works.
  14. Welll my first attempt ended with a code 18 error about missing biosinfo,inf, which *is* on the UFD. I'm gonna give it another go but I have one question... is the migrate.inf really required? The reason I ask is, I create backups of my disk using dd (there's a lot of other stuff on it), if I write my image to a new disk (if say my current disk dies) will it still work?
  15. Well I've certainly learnt something today, thanks to both of you . Edit: I liked both solutions so much I thought I'd combine them: set tagfile=\OEM for /f "tokens=1 delims=: " %%? in ('mountvol.exe ^|find ":\"') do ( dir %%?:%tagfile% >nul 2>&1 && set CDDRIVE=%%?: ) if not defined CDDRIVE ( goto EOF )
  16. @cdob Yeah, I had no issues when I disconnected the card reader! By 'random' I just meant that I didn't expect it because it didn't happen without the card reader attached. No can't because I've wiped the drive now. I did notice that when the hdd was already partitioned, when I repartitioned it and returned to hit enter to install it was assigned to C: and the drive letter for my ufd was removed (just a hyphen when it was previously C:). But on this occasion the the hdd was blank so after partitioning it was assigned to I: when I started the install. fixDrive.USB is uncommented in textsetup.oem so I assume thats what caused reboot because %systemdrive% was I: prior to that. Forgive my ignorance but wont this still cause the "No Disk" errors because there's still going to be an attempt to "mount" a non-existent filesystem and list it's contents? @jaclaz No jokes. Thanks for the advice though.
  17. Since looking at this thread: Install 2000/XP/2003 from RAM loaded small ISO I started to wonder if it would be possible to combine the two projects (sort of). Would it be possible to boot a mini iso with the boot files (as flyakites guide - saves on boot time!) in RAM (0XFF) and direct boot the full iso (safes RAM) from the UFD (0XFE) then install from the full iso. Just a thought but I wondered if it would work. Edit: Nearly forgot... tested install on my desktop with and without card reader. Everything went fine except on the attempt where I created a new partition on the drive (disk was empty) and ended up with a random reboot just at the point presetup.cmd should have run. I booted to hdd a second time and everything went fine except I ended up with a 'All Users.WINDOWS' dir in Documents and settings. I think this reboot was caused by the for loop in presetup.cmd because on subsequent installs (and on the second attempt above) I had "No Disk" errors at this point when the card reader was connected. A part from disconnecting it prior to install the only solution I can think of is to reverse the search order in the loop, that way the UFD (where my OEM dir is) should, hopefully, be found before the card reader. SET TAGFILE=\OEM FOR %%i IN (Y X W V U T S R Q P O N M L K J I H G F E D C) DO IF EXIST "%%i:%TAGFILE%" SET CDDRIVE=%%i:& GOTO DPsFound If I was doing this in a bash script I'd search for the volume label instead and save a possible 23 mounts but I have know idea how to do that in Windows.
  18. My bad, I gzipped the XP iso's and ImDisk obviously can't handle that!
  19. Ok, I'm having the same issue as Doveman. After booting from hdd (and after presetup.cmd runs) I get an error that the installation CD cannot be found. At best guess I'd say it hasn't been mounted at all. I've trieed this in Qemu and on real hardware, same result... any ideas?
  20. A few years ago I remember someone saying that this sort of thing would never be possible with XP, so when I saw this I had to have ago. Everything seams pretty straight forward and I'll test installing XP from a USB stick in the next day or so but I have one question. Is there any additional steps required to mount a PE (UBCD4Win) in RAM using this method?
  21. @Phylum Just in case it's your mkisofs commands this is my simple mkisofs script. This script is located in boot/isolinux along with mkisofs. If your using Windows just grab the commands lower down the script. #!/bin/bash # Script to create a bootable ISO image cd -- "$(dirname "$0")" SOURCE=$(cd ../; pwd) APPID="Bootdisk" VOLID="Bootdisk" BOOT=boot/isolinux/isolinux.bin CATALOG=boot/isolinux/boot.cat OUTPUT=$HOME/Bootdisk.iso help() { echo " -------------------------------------------------------------------------- This script creates a bootable ISO image using mkisofs. Usage: $(basename "$0") [options] Example: $(basename "$0") -o $OUTPUT --md5 -o, --output <file> Set output file name -m, --md5 Create MD5 check file -h, --help Help -------------------------------------------------------------------------- " } waiting() { chars=( "|" "/" "-" "\\" ) array=${#chars[*]} count=0 echo -n " " while [ -e "$1" ]; do count=$(( count + 1 )) echo -ne "\b${chars[$(( count % array ))]}"; sleep 0.2 done } while [ "$1" != "" ]; do case $1 in -h | --help ) help exit ;; -o | --output ) OUTPUT="$2" shift 2 ;; -m | --md5 ) MD5="1" shift ;; * ) shift esac done if [ -f "$OUTPUT" ]; then echo "$(basename $0): \`$OUTPUT' already exists" echo -n "Remove this file and continue? [Y/n]: " read retval case $retval in Y|y|[Yy][Ee][Ss]) rm -f $OUTPUT || exit 1 ;; *) help exit 1 esac fi rm -f $SOURCE/contents.md5 if [ "$MD5" = "1" ]; then if [ -x `type -path mktemp` ]; then md5tmp="`mktemp`" else md5tmp="/tmp/md5.$RANDOM" touch $md5tmp || exit 1 chmod 600 $md5tmp fi echo -n "Creating MD5 check file. Please wait..." waiting $md5tmp & ( cd $SOURCE find . -type f -exec md5sum {} \; | sort -k 2,2 > $md5tmp mv $md5tmp contents.md5 ) echo -e "\bDone" fi if [ ! -x "`type -path mkisofs`" ]; then echo "$(basename $0): \`mkisofs' command not found" exit 1 fi mkisofs \ -iso-level 4 \ -full-iso9660-filenames \ -disable-deep-relocation \ -rock \ -joliet \ -joliet-long \ -no-emul-boot \ -boot-info-table \ -boot-load-size 4 \ -appid "$APPID" \ -volid "$VOLID" \ -eltorito-boot $BOOT \ -eltorito-catalog $CATALOG \ -output $OUTPUT \ $SOURCE || exit 1 echo "$(basename $0): \`$OUTPUT' succesfully created" exit 0 One more thing... You can use the file util in Linux to query a file type, I'm not sure but you might find a Windows port as part of cygwin. First decompress the image (gzip -d initrd.gz) then test the file. $ file initrd initrd: ASCII cpio archive (SVR4 with no CRC)
  22. @james_deepak I hate quoting myself but I think you might have missed this one: If any of us feel that we can contribute to solving a specific issue for you then we will but we're not going to write a step-by-step tutorial when there is so much information here already. I know it's frustrating but your not going to have an all-sing-all-dancing boot disc without putting in some effort. For the last year or so I've spent a lot of my free time learning about how Linux works. I've done everything from Gentoo stages to (B)LFS and I'm still only a fraction of the way towards my goals. Things just take time and if you keep waiting for someone else to do this for you then your not going to get anywhere.
  23. Yes and no. I recently decided to update my multi-boot disc so I took advantage of some of the new features but I still can't get the Vista bootmgr to boot. It's no bother though, bcdw does the job for now and I don't really use Windows much any more apart from at work or other peoples PC's anyway.
  24. RockRidge support basically allows you to add symlinks and Linux file perm's to your disc. You usually need it for install cd's and things like the repo on the Ubuntu livecd's. In my experience it also breaks the XP install routine (because it can't read the disc anymore) but for some really weird reason has no effect on Win/BartPE. I'm now wondering if mkisofs -iso-level 4 (ISO96660:1999) fixes the XP install issue then.

  • Create New...