BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 19th, 2003, 10:39 PM
icrf's Avatar
icrf icrf is offline
Perl Monkey
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
Posts: 1,856 icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 10 h 28 m 31 sec
Reputation Power: 103
Send a message via AIM to icrf
Set default boot (from Windows?)

Generally, the only times I reboot my system is when I'm switching from Win2k to FreeBSD. Since the default boot device is reset to whatever was last booted, it makes this difficult in one direction. In BSD, I have a short script that uses boot0cfg to set the default boot device to be the windows partition, then reboot. Is there any way to get similar functionality in Win2k trying to go to BSD next? Filesystems shouldn't matter, since it's only dealing with the MBR, each OS can see that equally well. It's just that Win2k doesn't know much about BSD's boot loader (does it have a name?).

I guess one option would be to put NTLDR back on (I'd rather not) and use something like BootPart to boot BSD from there. In theory, BSD should be able to alter the boot.ini on the NTFS partition to change the default (my initial NTFS write test failed, but docs claim it's possible).
__________________
Andrew - Perl (and VB.NET) Monkey

Never underestimate the bandwidth of a hatchback full of tapes.

Reply With Quote
  #2  
Old October 20th, 2003, 11:58 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
AFAIK the boot loader remembers the last booted partition by marking it "active". You need a small windows tool to do the same. There should be freeware programs, if you know a little bit of C or another language, you can do it yourself. The partition table is in sector 0. (I take no responsibility if you destroy the partition table, make a backup to a (mounted) floppy disk first with "dd bs=512 count=1 if=/dev/ad0 of=/floppy/bootsect.bak" eg. and have your BSD installation CDs near your PC )

Check the output of fdisk from a DOS disk first to make sure ... I am not 100% confident on this.

M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #3  
Old October 20th, 2003, 01:16 PM
icrf's Avatar
icrf icrf is offline
Perl Monkey
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
Posts: 1,856 icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 10 h 28 m 31 sec
Reputation Power: 103
Send a message via AIM to icrf
You know, I said "Windows partition" but I suppose "Windows drive" would be a bit more accurate. Primary Master is a single NTFS partition with Win2k on it and Primary Slave is entirely FreeBSD. Since the limit is one active partition per drive, I assume both are active (what 2k's disk manager tells me). Unless maybe when no partitions are active on the Primary Master, it goes to the second boot device...something to look into.

Thanks for your help. Although I have good recent backups, it's been too long since I've used C for anything low-level to start pecking away at my MBR jsut yet

Reply With Quote
  #4  
Old October 28th, 2003, 11:42 PM
icrf's Avatar
icrf icrf is offline
Perl Monkey
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
Posts: 1,856 icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 10 h 28 m 31 sec
Reputation Power: 103
Send a message via AIM to icrf
From what I saw, yes, when BSD was set as default, the windows partition was not marked active. I was having problems finding a tool to set a partition as inactive in windows, but I finally came across MBR Wizard. From checking with fdisk, it definitely does what it states, but the bootloader didn't use it as a basis for setting the default, it keeps a record elsewhere. F1 was still the default and it was set as active upon booting to it, even though it wasn't active before.

I guess it doesn't bother me much anymore. If anyone else has other ideas, I'd love to hear them, but since I got X running on the TV, my need to reboot into windows has all but disappeared (I have intermittent sound issues I'm working on).

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > Set default boot (from Windows?)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway