Sunday, December 28, 2008

xp on USB

***** USB_MultiBoot.cmd - Install XP from USB *****

1. Introduction

The Batch Program USB_MultiBoot.cmd can prepare a Bootable USB-Stick,
which can be used for Install of XP from USB.
Install from USB-Drive is of general use, convenient and faster than Install from CD or DVD,
but is limited to computers that are bootable from USB, as determined by BIOS and Motherboard.
Updating and Changing an USB-stick is also easier than preparing a new Bootable CD or DVD.
Install of XP from USB is very useful when the computer has no optical drive,
like e.g. ASUS Eee subnotebook.

Preparing a Bootable USB-Drive with USB_MultiBoot.cmd Involves:

  • Format USB-stick like a Bootable Harddisk Drive with NTLDR BootSector
    using PeToUSB or HP USB Format Tool
  • Select from the Main Menu of USB_MultiBoot.cmd
    1 - Give XP Setup Source Folder and give UserData for XP Setup
    2 - Give USB-Drive Target
    3 - Make Bootable USB-Drive with XP Setup Folders
Install of XP from USB requires to Reboot from USB-Drive
and Select from Boot Menu: 1. Begin TXT Mode Setup Windows XP

- Download Direct from CD Forum: USB_MultiBoot_10.zip

Or from BootLand Forum: USB_MultiBoot_10.zip smile.gif

Or from Mirror (Thanks to Siginet) - USB_MultiBoot_10.zip

- Unpack USB_MultiBoot.zip to your Harddisk in a simple Path without SPACES.

USB_MultiBoot.cmd is Vista Compatible, but requires User Account Control OFF.
In this case a BOOTMGR type BootSector is made when Formatting the USB-Drive.
Such Bootsector is Detected and Auto Converted by BootSect.exe to
NTLDR type Bootsector required for booting with boot.ini Menu
XP as OS is Preferred for Speed of FileCopy to USB ( 10 min instead of 30 minutes for Vista OS )

The procedure for Install of Windows XP from bootable USB-stick was developed by
ilko_t , jaclaz , cdob, porear and wimb at MSFN Forum

- Install XP from USB at MSFN Forum http://www.msfn.org/board/Install-XP-from-USB-f157.html

- List of FAQs http://www.msfn.org/board/FAQs-t116766.html

- More Info See Guide with ScreenShots

- More Help with Bookmarks is available in the Help_Info Folder in USB_MultiBoot.zip

- Use of MultiBoot.cmd and everything in this Guide is COMPLETELY at your own risk.


2. XP-Source Preparation - *** BEFORE YOU START ***

Take care that your XPSOURCE Folder is located on your Harddisk in a simple Path without SPACES.
Copy the Content of your Windows XP Setup CD to your XPSOURCE Folder on Harddisk

Siginet's RyanVM Integrator or nLite can be used to Integrate Windows UpdatePacks in the XP-Source.
http://integrator.siginetsoftware.com/index.php?download
http://www.nliteos.com/

Windows XP UpdatePacks and Addons:
http://www.ryanvm.net/msfn/
http://www.ryanvm.net/msfn/updatepack-sp2.html
http://integrator.siginetsoftware.com/index.php?addons
http://www.ryanvm.net/forum/

Supports the use of BTS DriverPacks located in OEM Folder on USB-Drive
http://driverpacks.net/DriverPacks/
For Install of XP on a modern system with SATA Drives it is needed to use DPsBase.exe
for Integrating in your XPSOURCE BTS DriverPack Massstorage with TXT Mode Enabled.
In that case a lot of Extra RAID SCSI and SATA Drivers (about 120 extra) are Integrated which appear in the
XP Setup BootFolder $WIN_NT$.~BT on USB-Drive and can prevent a lot of XP Install Boot Problems.
First use RyanVM Integrator and then use DPsBase to Improve your XP-Source.
The program supplies a Customised presetup.cmd and changes the winnt.sif file for use of DriverPacks.

The Complete XP-Source is Copied by USB_MultiBoot.cmd to XP LocalSource Folder $WIN_NT$.~LS on USB-Drive
Computation of Estimated XP Folder Size is used to prevent USB-stick overflow
and includes $WIN_NT$.~BT + cmpnents + I386 + AMD64 + $OEM$ + OEM Folders.

Excluding LANG and WIN98X Folders from Copy to USB can be Selected
from USB_MultiBoot.cmd Main Menu, which reduces the XP-Source on USB-Drive by 135 MB
Reduction of the XP WINDOWS Folder can be achieved with nLite
but do NOT select Operating System Options-->Manual Install and Upgrade for removal.
If you did you will get BSOD, error 0x0000006F during Text mode Setup of Windows XP.

=========================================================================

3. Making Bootable USB-Drive with USB_MultiBoot.cmd

- Remove all other Removable Drives, like USB Backup Harddisks and Memory Cards
- Use USB-stick with High Read/Write Speed of about 15 MB/sec
- Unpack USB_MultiBoot.zip to your Harddisk in a simple Path without SPACES.

- Launch USB_MultiBoot.cmd and Display the Format Menu
- Format USB-Drive with FAT or NTFS - FAT32 is very SLOW for Install of XP

  • P) - PeToUSB - FAT Format - Max 2 GB
    To Format USB-Drive : Enable Disk Format with LBA FAT16X
    Do NOT Select here FileCopy of BartPE
    FAT Format Supports Direct Booting with MS-DOS using MULTI_CONTENT
    Install of XP from USB in 30 minutes - Buffalo FireStix 2 GB

  • H) - HP USB Disk Storage Format Tool V2.0.6 - NTFS Format - use X_CONTENT
    NTFS Format Supports DOS Boot Floppy Images via GRUB4DOS Menu
    Install of XP from USB in 16 minutes - Corsair Flash Voyager 4 GB
    Do NOT use HP Tool for USB-Harddisks having more than 1 Partition
    WARNING - HP Tool Formats whole Disk - Second Partition is Lost

  • N) - No Format - Use USB-Drive with FAT or NTFS Format by Windows XP
    Or Update Existing Bootable USB-Drive having NTLDR Bootsector
- For USB-Harddisk use Main Menu Option 0) to Change USB-stick in USB-Harddisk.
Because that makes that rdummy.sys is used and this is essential for using USB-Harddisk.
rdummy.sys makes Fixed USB-Harddisk seen in XP Setup as Removable Device.

- Select from the Main Menu of USB_MultiBoot.cmd
1 - Give XP Setup Source Folder and give UserData for XP Setup
2 - Give USB-Drive Target
3 - Make Bootable USB-Drive with XP Setup Folders

Attached File U_11_Main_Selected.jpg ( 59.4K ) Number of downloads: 252



4. XP Setup Parameters in winnt.sif file and $OEM$ folder

Display and Edit of the 8 required parameters for Unattended Setup allows
to give your ProductKey and TimeZone used in Current_winnt.sif Copy of your winnt.sif file.
The Current_winnt.sif File is auto adjusted for Install of XP from USB and then
copied by USB_MultiBoot.cmd to $WIN_NT$.~BT folder on USB-Drive.

The file useraccounts.cmd with UserName is made in the $OEM$ Folder
copied to $WIN_NT$.~LS folder on USB-Drive.
CMDLINES.TXT is used for making UserAccounts and install of Registry Tweaks at T-12
Info see: http://unattended.msfn.org/unattended.xp/

For the Option Edit UserData for XP Setup we have:

A. Unattended Install - UserName = YourName
in winnt.sif file - unattendswitch="Yes" - UserName is used Automatically
useraccounts.cmd with UserName is created in $OEM$ Folder copied to USB-drive

B. Semi-Unattended Install - UserName = None
in winnt.sif file - unattendswitch="No" - UserNames are given Manually at Windows Welcome Screens
useraccounts.cmd is Renamed to Inactive txt file in $OEM$ Folder copied to USB-drive

C. Undefined Install - UserName = Unknown
No Changes are made in winnt.sif file or $OEM$ folder

In all cases Selecting Cancel keeps given Settings for winnt.sif file and $OEM$ folder Unchanged

Selecting Unattended Install in the Editor instead of Cancel will enable to skip the Welcome Screens
by automatic adding the unattendswitch="Yes" Setting to the [Data] Section of the Current_winnt.sif file.
The UserName given at Edit Screen 8 will not be used in the case of XPSOURCE made by nLite.

OEM or nLite winnt.sif File is detected in XPSOURCE and Auto Changed for Install of XP from USB.
In that case All Setup Parameters come from XPSOURCE and therefore Empty $OEM$_X Folder is Selected.

Windows XP file SETUPLDR.BIN is Renamed to XPSTP according to the 5-letter limit requirement
for making NTFS BootSector Files using MakeBS3.cmd of jaclaz
http://www.boot-land.net/forums/?showtopic=2362

In the Attended Install all Setup Parameters are given Manually during the GUI Mode of Setup Windows XP.
For each XP Source the Program Supports to launch Unattended or Attended Setup.
For Attended Setup a second SetupLoader XATSP is made ,
where winnt.sif is Patched as winat.sif using gsar.exe
So the extra Setup Option does not take extra space from the USB-stick.
Attended Install is always available as Extra Option in the boot.ini Menu.


5. Install of XP from USB

  • Remove all other Removable Drives, like USB Backup Harddisks and Memory Cards
    This will enable that your Computer Harddisk in XP Setup gets DriveLetter C
  • Boot with USB-Drive plugged and Press [Delete] or F2 to Enter BIOS Setup
  • Change BIOS Boot Settings:
    Harddisk is First Boot Device Type and USB-Drive is seen as First Harddisk
  • Reboot from USB-Drive and Select 1. Begin TXT Mode Setup Windows XP
    Use Only C: Drive of Computer Harddisk as Partition for Install of Windows XP
    and then Select Quick Format with NTFS FileSystem, XP Install is Automatic

    ***** NEVER UNPLUG USB-Drive ***** Until After First Logon of Windows XP

  • New Harddisk and Creating Partitions after Booting from USB-Drive:
    Direct after Deleting and Creating New partitions, Quit XP Setup with F3
    OR Switch OFF your Computer and Boot in any case from USB-Drive again and
    Run 1. TXT Mode Setup again so that DriveLetters get their Correct Value
    So in this case one Boots ** TWICE ** in the TXT-mode Setup XP

  • USB_MultiBoot.cmd can make USB-stick to be seen in XP Setup as Boot Drive U:
    In this preferred case the driveletters of Harddisk Partitions and Optical Drives
    will get there desired normal value.
    Otherwise USB-stick will get Drive Letter D: and other drives have shifted drive letter.

    The same shifting of drive letters occurs for Install from USB-Harddisk,
    for which it is not possible to make it seen as Boot Drive U: by changing migrate.inf
    After First Logon there is only 1 USB-Harddisk partition visible as Removable Drive.
    After Reboot for Second Logon then all partitions of USB-Harddisk will become visible
    as Fixed Local Drives and the highest partition number of USB-Harddisk will get DriveLetter D:
    This reversal and use of DriveLetters might be unwanted and consequently
    the use of USB-stick for XP Setup is Preferred

  • NON-STANDARD INSTALLS OF WINDOWS XP AND INSTALL OF WIN2003
    Install of Windows XP from bootable USB-Drive
    next to WINDOWS on the same or on a different partition of the harddisk,
    is possible by proper manually adjustment in advance of the BOOT.INI file on the USB-Drive.

    Adjust BOOT.INI on USB-Drive: ( Or Select Correct boot.ini Using Option B in Menu Screen )
    For Install on the Second Partition, change partition(1) in partition(2)
    For Install Next to WINDOWS, change WINDOWS to
    what will be used as Install FolderName, e.g. WINDOWS.51
    Windows Install Folder Name required according to MS-DOS 8.3 format

    So these non-standard installs are still possible,
    but require only small changes in the BOOT.INI on the USB-Drive in advance.
    Otherwise ERROR Message for Setup of WINDOWS XP: WINDOWS\system32\hal.dll file missing
    will orccur on Reboot for GUI Mode.

6. Post-Install of Drivers and Programs

The Folder usb_cfg_extra provides a script for Windows Post-Install Wizard (WPI) - http://wpiw.net/
WPI is very handy for the Automatic Install of Programs after Install of XP from USB.

In WPI script there is the option to run SFC /purgecache which deletes the dll cache
by deleting the files in Folder C:\WINDOWS\system32\dllcache
This is a very simple way to reduce the WINDOWS Folder Size by 360 MB
The Result is a XP WINDOWS Folder Size on Harddisk of only 785 MB inclusive all Updates.


================================================================================

Advanced Use of USB_MultiBoot.cmd for making MultiBoot USB-Drives

7. Adding Extra Sources for Booting with BartPE, UBCD4WIN, Windows PE 2.0 and Vista Setup

BartPE - http://www.nu2.nu/pebuilder/
or
UBCD4Win - http://www.ubcd4win.com/index.htm
can be added to USB-Drive by Selecting BartPE Source Folder in the Main Menu. Remove with Cancel.

The Folder usb_cfg_extra provides scripts for BartPE Menu

Install of Vista from USB is supported and launched via GRUB4DOS Menu
http://www.msfn.org/board/vista-t114092.html&st=6
http://www.msfn.org/board/Install-Vista-fr...6.html&st=2
For Vista Install from USB, Remove on first Restart your USB-stick.

Overflow Control is used by measuring DiskSize, FreeSize, XP-Source and
Extra Source Folders using ASP Drive Object and Visual Basic Scripting.
http://www.w3schools.com/asp/asp_ref_drive.asp
http://www.robvanderwoude.com/index.html


8. Multiple XP Install from USB and Multiple PE (BartPE and UBCD4Win) Booting from USB

Multiple XP Install from USB is Supported (max 9 sources)
http://www.msfn.org/board/SOLVED-Install-M...SB-t114543.html
Run USB_MultiBoot.cmd again using New XP Source and Empty XX_CONTENT Source Folder

Multiple PE (BartPE and UBCD4Win) from USB is supported using Multi_Partition USB-Drives.
Multi-Partition an USB-stick after using INSTALL_DUMMY.cmd from makebt Folder.
When dummy.sys is Installed in your OS, then USB-sticks are seen as Fixed Local Harddisks.
In that case you can make Multiple Partition USB-sticks with NTFS format,
allowing to combine BartPE and UBCD4WIN or different Vista Versions x86 and x64
http://www.msfn.org/board/Multiple-PE-from....html&st=11
http://www.911cd.net/forums//index.php?sho...20089&st=24
Run USB_MultiBoot.cmd again using New BartPE Source and
using Empty XX_CONTENT Source Folder and No Copy of XP Source.
http://www.boot-land.net/forums/?showtopic=4900

Saturday, December 13, 2008

Cisco IOS Router Commands

Routing with Cisco 2500 and 1000 Series for LAN-ISDN Service

Commands - General

There are 3 different modes of operation within the Cisco IOS.

1. Disabled mode
2. Enabled mode
3. Configuration mode

In the Disabled mode you can use a limited number of commands. This is used primarily to monitor the router.

The Enabled mode is used to show configuration information, enter the configuration mode, and make changes to the configuration.

The Configuration mode is used to enter and update the runtime configuration.

To get a list of the commands for the cisco type ‘?‘ at the prompt. To get further information about any command, type the command followed by a ‘?’.
clear Reset functions
clock Manage the system clock
configure Enter configuration mode
debug Debugging functions (see also ‘undebug’)
disable Turn off privileged commands
enable Turn on privileged commands
erase Erase flash or configuration memory
exit Exit from the EXEC
help Description of the interactive help system
login Log in as a particular user
logout Exit from the EXEC
no Disable debugging functions
ping Send echo messages
reload Halt and perform a cold restart
setup Run the SETUP command facility
show Show running system information
telnet Open a telnet connection
terminal Set terminal line parameters
test Test subsystems, memory, and interfaces
traceroute Trace route to destination
tunnel Open a tunnel connection
undebug Disable debugging functions (see also ‘debug’)
verify Verify checksum of a Flash file
write Write running configuration to memory, network, or terminal show
access-lists List access lists
arp ARP table
buffers Buffer pool statistics
configuration Contents of Non-Volatile memory
controllers Interface controller status
debugging State of each debugging option
dialer Dialer parameters and statistics
extended Extended Interface Information
flash System Flash information
flh-log Flash Load Helper log buffer
history Display the session command history
hosts IP domain-name, lookup style, name servers, and host table
interfaces Interface status and configuration
ip IP information
isdn ISDN information
line TTY line information
logging Show the contents of logging buffers
memory Memory statistics
privilege Show current privilege level
processes Active process statistics
protocols Active network routing protocols
queue Show queue contents
queueing Show queueing configuration
reload Scheduled reload information
route-map route-map information
running-config Current operating configuration
sessions Information about Telnet connections
smf Software MAC filter
stacks Process stack utilization
startup-config Contents of startup configuration
subsys Show subsystem information
tcp Status of TCP connections
terminal Display terminal configuration parameters
users Display information about terminal lines
version System hardware and software status

Other Useful Commands

  1. View the Software Version
  2. View the Ethernet IP
  3. View the Serial IP
  4. View the Default Route
  5. View the Filters
  6. View the Bandwidth
  7. Add a Static Route
  8. Change the Dial Number
  9. Turn Filters On and Off
  10. Ping from the Router
  11. Traceroute from the Router

View the Software Version

Cisco>en
Cisco#wr term <— Shows the running configuration
Building configuration…
Current configuration:
!
version 11.2
no service udp-small-servers
no service tcp-small-servers
!
hostname Cisco
!
interface Ethernet0
ip address 192.168.1.1 255.255.255.0
!
interface Serial0
ip address 192.168.6.1 255.255.255.0
encapsulation frame-relay
frame-relay lmi-type ansi
!
interface Serial1
ip address 192.168.4.2 255.255.255.0
encapsulation frame-relay
bandwidth 1536
keepalive 5
frame-relay map ip 192.168.4.1 101 IETF
!
router rip
version 2
network 192.168.4.0
network 192.168.6.0
neighbor 192.168.6.2
neighbor 192.168.4.1
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.6.2
ip route 0.0.0.0 0.0.0.0 192.168.4.1
!
line con 0
line aux 0
line vty 0 4
login
!
end

View the Ethernet IP

Router#wr term

This will show the running configuration.
Within the configuration, you will see an interface ethernet 0 section:

interface Ethernet0
ip address 38.150.93.1 255.255.255.0
no ip directed-broadcast

View the Serial IP

Router#wr term

Within the configuration, you will see an interface serial 0 section:

interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IETF

View the Default Route

Router#wr term

Within the configuration, you will see an ip route section.

In the ip route section, look for a route:
ip route 0.0.0.0 0.0.0.0 38.167.29.1
The last ip address is the POP ip.

View the Filters

Router#wr term

Under interface serial 0, look for:

ip access-group 104 in
ip access-group 105 out

This means that access-group 104 is the inbound filter set and
access-group 105 is the outbound filter set.
Then, continue to look in the configuration for the access-list statements:

(Example access-list statements)
access-list 104 deny ip 38.166.101.0 0.0.0.255 any
access-list 104 permit tcp any any established
access-list 104 permit tcp any eq ftp-data any gt 1023
access-list 104 permit udp any eq domain any gt 1023
access-list 104 permit udp any eq domain any eq domain
access-list 104 permit icmp any any
access-list 104 permit udp any eq snmp any gt 1023
access-list 105 deny ip any 38.166.101.0 0.0.0.255
access-list 105 permit tcp any any established
access-list 105 permit tcp any any eq ftp
access-list 105 deny udp any eq netbios-ns any
access-list 105 deny udp any eq netbios-dgm any
access-list 105 permit ip any any

View the Bandwidth

Router#wr term

Within the config, you will see an interface serial 0 section:

interface Serial0
ip address 38.21.10.100 255.255.255.0
ip broadcast-address 38.21.10.255
ip access-group 106 in
encapsulation frame-relay
bandwidth 56
no fair-queue
frame-relay map ip 38.21.10.1 500 IETF

Add a Static Route

Cisco#config t
Enter configuration commands, one per line. End with CNTL/Z.
Cisco(config)#ip route DEST.DEST.DEST.DEST MASK.MASK.MASK.MASK GATE.GATE.GATE.GATE
where: DEST.DEST.DEST.DEST = The destination network the static route is for
MASK.MASK.MASK.MASK = The subnet mask of the destination network
GATE.GATE.GATE.GATE = The gateway of the static route
Example route statement:
ip route 38.222.75.0 255.255.255.0 38.20.5.1
Cisco(config)#^Z (hit z)

Write the entry to memory:

Cisco#wr mem
Building configuration…
[OK]

Change the Dial Number

Type en to put the router in enable mode:

test.com>en

The password should be the same as the one used to telnet in.

Password:

To view the router’s configuration, type:

test.com#show config

There will be a line in the configuration that says:

dialer map IP 38.1.1.1 speed 64 name LD3330 2707000

The 2707000 is the dial number.

NOTE: Record what interface the dialer map IP line is under because you will need to
use that interface when changing the number.

Type config t to configure from terminal.

test.com#config t

Enter configuration commands, one per line. End with CNTL/Z.
Enter the interface that the dialer map IP line is under:

test.com(config)#interface BRI0

Add in the new dialer map IP line with the new phone number:

test.com(config)#dialer map IP 38.1.1.1 speed 64 name LD3330 [new number]

Now, remove the old dialer map IP line.
To remove a line, type no and then the line.
For example, to remove the old dialer map IP, type:

test.com(config)#no dialer map IP 38.1.1.1 speed 64 name LD3330 2707020

Now leave config mode:

test.com(config)# [control] z

Save changes:

test.com# write mem
Building configuration…
[OK]

Verify the new number is in the config:

test.com#show config

The new number should be in the dialer map IP line.

Turn Filters On and Off

To turn the filters off:

Router#configure terminal
Router(config)#interface Serial0
Router(config-if)#no ip access-group 104 in
Router(config-if)#no ip access-group 105 out
Router(config-if)# Hit CTRL-Z
Router#wr mem
Building configuration…
[OK]
Router#

To turn the filters on:

Router#configure terminal
Router(config)#interface Serial0
Router(config-if)#ip access-group 104 in
Router(config-if)#ip access-group 105 out
Router(config-if)# Hit CTRL-Z
Router#wr mem
Building configuration…
[OK]
Router#

Ping from the Router

Cisco#ping
Example:
Cisco#ping 38.8.14.2

http://www.tomax7.com/mcse/cisco_commands.htm

Tuesday, December 09, 2008

forgot password OpenBSD

Kebanyakan pikiran, sampai-sampai root password kelupaan.
Kates dJakarta = pePAYAH
I am stupid and forgot my root password for my OpenBSD

probing: pc0 com0 com1 apm mem[636k 190M a20=on]
disk: fd0 hd0+
>> OpenBSD/i386 BOOT 3.02
boot> boot -s
Eter path name of shell, or ENTER for sh:
# fsck -p / && mount -uw /
# fsck -p /usr && mount /us
# passwd
New Password :________