Computing.Net > Forums > Programming > boot from second hard drive

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

boot from second hard drive

Reply to Message Icon

Name: worldlibrary
Date: September 7, 2008 at 17:26:52 Pacific
OS: xp
CPU/Ram: 1gig
Comment:

Have two hard drives. Each has a copy of xp on them.

One for the grand kids and one for myself.

I have changed the boot.ini to give a choice
Works great but.....

The computer runs 24/7 so I am wondering if I can make a batch file with icon the kids can click on and the computer will reboot to the second hard drive.

To date: On my test computer the bat renames the boot.ini to .bac and replaces it with

multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Professional in Hard Drive 2" /fastdetect

Then uses
shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c "comment"] [-d up:xx:yy]

Rather than do the renaming I wonder if there is some way to have the boot.ini in the batch file.



Sponsored Link
Ads by Google

Response Number 1
Name: toast (by NoIdea)
Date: September 8, 2008 at 06:45:09 Pacific
Reply:

If you rename the boot.ini and change to your new version then at shutdown you have to change it back again. Will this be simpler

This is a boot.ini file for a PC with WinXP Pro installed in partition 1 on different hard drives.
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional in Hard Drive 1" /fastdetect
multi(0)disk(0)rdisk(1)partition(1)\WINDOWS="Microsoft Windows XP Professional in Hard Drive 2" /fastdetect

To do a restart:
shutdown -r -f -t 05 -c "SEE YOU IN A MINUTE"

Make a shortcut type in shutdown etc etc change icon


0

Response Number 2
Name: StuartS
Date: September 8, 2008 at 08:22:40 Pacific
Reply:

>> Rather than do the renaming I wonder if there is some way to have the boot.ini in the batch file. <<

Not a chance. Boot.ini is read by the Boot loader in the very early stages of the boot process, long before any batch files get processed. If the boot loader cannot find boot.ini or boot.ini is corrupted the boot fails. It is an essential part of the process.

The solution detailed above is the best option as it gives you a choice on which OS to boot on boot up.

Stuart


0

Response Number 3
Name: worldlibrary
Date: September 9, 2008 at 17:02:51 Pacific
Reply:

Hmmm,
Did get the bat to work changeing the boot ini on c to boot to d then shut down and reboot to d...on d it does just the same in reverse.

But then there is Murphys Law and Grand kids.

Have set up the two drives and changed the ini on c giving a menu. Pops Kids.

W.L.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: boot from second hard drive

adding hard drive www.computing.net/answers/programming/adding-hard-drive/5361.html

Active Partitions www.computing.net/answers/programming/active-partitions/18271.html

1. Time and Hard Drive Consumption www.computing.net/answers/programming/1-time-and-hard-drive-consumption-/10922.html