Форум: "Потрепаться";
Текущий архив: 2005.03.27;
Скачать: [xml.tar.bz2];
ВнизКак добавить Linux в nt loader? Найти похожие ветки
← →
AlterEgo of WondeRu © (2005-03-07 02:51) [0]Имеется два жестких диска на одном (master) установлен WinXP, затем этот диск отключался, и на диск 2 (slave) ставился Linux. Подсоединяю первый диск и загружается как и положено WinXP, как мне добавить в меню загрузки NTLoader Linux?
← →
cspr (2005-03-07 02:56) [1]зря диск отключал ... линух может не понять этого прикола :-)
← →
Magnit © (2005-03-07 03:03) [2]думаю за разъяснениями лучше сходить сюда www.opennet.ru :-)
← →
Magnit © (2005-03-07 03:04) [3]думаю за разъяснениями лучше сходить сюда www.opennet.ru :-)
← →
Kerk © (2005-03-07 07:03) [4]Да.. отключал зря.. Линух бы сам разобрался в ситуации и поставил в загрузчик менюшку с выбором.
← →
AlterEgo of WondeRu © (2005-03-07 10:24) [5]Kerk © (07.03.05 7:03) [4]
Линух бы сам разобрался в ситуации и поставил в загрузчик менюшку с выбором.
он бы LILO поставил... а оно вообще к черту не сдалось!
← →
Kerk © (2005-03-07 10:25) [6]AlterEgo of WondeRu © (07.03.05 10:24) [5]
он бы LILO поставил... а оно вообще к черту не сдалось!
А оно тебе мешает?
← →
AlterEgo of WondeRu © (2005-03-07 10:30) [7]Kerk © (07.03.05 10:25) [6]
А оно тебе мешает?
ага, особенно, когда захочу снести Линух!!! Да и странно как-то... загружаешь LILO, а потом еще NTLoader предлагает винды всякие... раздражает однако
← →
Kerk © (2005-03-07 10:36) [8]boot.ini подредактируй.. должно помочь.
← →
AlterEgo of WondeRu © (2005-03-07 10:38) [9]Kerk © (07.03.05 10:36) [8]
boot.ini
эээ.... вопрос как бы подразумевал... как бы его подредактировать[boot loader]
- вот здесь неправильно!(
timeout=3
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" /fastdetect
multi(0)disk(1)rdisk(0)partition(1)\root="LINUX"
← →
Kerk © (2005-03-07 10:44) [10]Кстати в MSDN написано как удалить LILO
← →
Kerk © (2005-03-07 10:52) [11]
multi(0)disk(1)rdisk(0)partition(1)\="Linux"
попробуй
еще как вариант, выдрать оттуда бут-сектор и добавить в boot.ini строчку типаC:\bootsect.lnx="Linux"
← →
DSKalugin © (2005-03-07 11:07) [12]Читаем вслух
Все о boot.ini (загрузчике ОС Windows NT/2K/XP)
http://softic.ru/site.html?name=Pages&go=page&pid=76
есть даже софтины для корректной конфигурации этого файла
>ага, особенно, когда захочу снести Линух!!!
Сносиш lilo быстро. Для этого есть команды "fixboot" и "fixmbr", которые восстанавливают загрузочные файлы и master boot record
← →
vecna © (2005-03-07 11:45) [13]NT OS Loader + Linux mini-HOWTO
Bernd Reichert, <reichert@dial.eunet.ch>
v1.11, 2 September 1997
1. Abstract
This document describes the use of the Windows NT boot loader to start
Linux. This procedures have been tested with Windows NT 4.0 WS and
Linux 2.0.
2. How does the NT OS Loader work
The NT OS loader likes to have the boot sector from the other
operating systems available as a file. It reads this file and starts
the operating system selected, i.e. either Windows NT in different
Modes or any other OS.
3. Tips on how to install Windows NT and Linux on the same System
3.1. Windows NT installation
Try to install Windows NT first. If you want to use NTFS for your
Windows NT-partition, keep in mind, that the todays production version
of Linux cannot access NTFS partitions. An alpha driver that can read
NTFS-Partitions is available at http://www.informatik.hu-
berlin.de/~loewis/ntfs. You may create a separate FAT-Partition for
data exchange or you have to use DOS-formatted floppies.
3.2. Partitioning
Another Mini-howto recommends not to use NTs "Disk Administartor" to
create the Linux swap- and root-partitions. It is sufficient to see
the free space there. I also recommend to use linux"s fdisk later.
3.3. Linux installation
Now boot linux from diskettes, create the swap and root-partition.
Fdisk assumes the ntfs-partition to be a HPFS-partition. This is
normal. Boot again from diskettes and install Linux as you like.
Just in case the installation procedure suggests that you could mount
the HPFS partition which it has found: Ignore it.
3.4. Lilo
When you come to the Lilo-Section, specify your Linux-root-partition
as your boot device because the Master Boot Record (MBR) of your
harddisk is owned by Windows NT. This means that the root-entry and
the boot-entry in your /etc/lilo.conf have the same value. If you
have a IDE-harddisk and your Linux-partition is the second partition,
your boot-entry in /etc/lilo.conf looks like:
boot=/dev/hda2
If you have two disks and your Linux resides on the first partition of
your second disk, your boot-entry in /etc/lilo.conf looks like:
boot=/dev/hdb1
Run lilo with a kernel that matches your system. Check the kernel by
booting from diskette first if you are not sure.
If you cannot boot Windows NT now, you have a problem. I hope you
have created a repair-disk recently.
4. Bootpart
There is a NT-programm called bootpart written by G. Vollant that can
do the jobs from the next two points for you. Bootpart is available at
http://ourworld.compuserve.com/homepages/gvollant/bootpart.htm.
If you want to know how things are working together, use the
procedures described in point 5 and 6.
5. The Linux part of the work
You have to boot from diskettes until the NT-part is fixed.
Now you have to peel the bootsector from your Linux-root-Partition.
With /dev/hda2 as your linux-partition, the dd-command is:
# dd if=/dev/hda2 of=/bootsect.lnx bs=512 count=1
There is something wrong if your bootsect.lnx has more than 512 bytes.
Now copy the file bootsect.lnx to a DOS-formated floppy if this is
your way to transfer files to the NTFS-Windows-partition.
You can copy it with
# mcopy /bootsect.lnx a:
or with
# mount -t msdos /dev/fd0 /mnt
# copy /bootsect.lnx /mnt
# umount /mnt
6. The Windows NT part of the work
Copy the file from the diskette to C:\\bootsect.lnx. I don"t tell you
how to do that.
What lilo.conf is for linux is c:\\boot.ini for Windows NT. Remove
the, system- and the read-only-attribute before you can modify it
with:
C:\attrib -s -r c:\boot.ini
Now change the file boot.ini with an editor, notepad for example, as
follows:
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINNT
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
multi(0)disk(0)rdisk(0)partition(1)\WINNT="Windows NT Workstation ...
C:\BOOTSECT.LNX="Linux"
Only the last line has been added in this example. Restore the
attributes after you have saved boot.ini with:
C:\attrib +s +r c:\boot.ini
After a shutdown of your Windows NT and a restart your should see the
following:
OS Loader V4.00
Please select the operating system to start:
Windows NT Workstation Version 4.0
Windows NT Workstation Version 4.0 [VGA mode]
Linux
Select Linux and see
LILO loading zImage ....
7. Play it again Sam
A new copy of bootsect.lnx must be transfererd to C:\BOOTSECT.LNX evry
time the bootsector of your linux-partition has been modified. This
happens for example when you install a new kernel with lilo. As you
can see such a system in not ideal for testing experimental kernels.
8. Troubleshooting
If things do not work as expected, check bootability with a floppy
disk. With /dev/hdb1 as your Linux-partition, your /etc/lilo.conf has
the following entries:
root=/dev/hdb1
boot=/dev/fd0
Run lilo with a diskette inserted. Now try to boot from the diskette.
If your Linux on /dev/hdb1 can"t be started, the NT OS loader will
also fail to start it. If you see a lot of 01 01 01 01, your root-
disk is not accessible. Check whether all your disks are known by the
bios.
If the floppy boots your Linux partition, you can peel of your boot-
sector for the NT OS loader with:
# dd if=/dev/fd0 of=/bootsect.lnx bs=512 count=1
You can keep this diskette as your rescue-diskette just in case your
Windows NT installation breaks.
9. References
╖ The Linux+WindowsNT mini-HOWTO
╖ The FAQ for FreeBSD 2.X
10. Acknowledgements
╖ Thanks to Xiaoming Yi <z3c20@ttacs.ttu.edu> for the tip that the
procedures work also with other disks than the first one.
╖ Thanks to Frank Dennler <Frank.Dennler@zkb.ch> for the diskette-
trick.
11. Feedback
Any comments are welcome.
← →
AlterEgo of WondeRu © (2005-03-07 13:34) [14]и так и сяк попробовал... не работат(
← →
какодемон (2005-03-07 13:36) [15]multi(0)disk(1)rdisk(0)partition(1)\root="LINUX" - вот здесь неправильно!(
попробуй еще так:
multi(0)disk(0)rdisk(1)partition(1)/root="LINUX"
← →
AlterEgo of WondeRu © (2005-03-07 14:40) [16]какодемон (07.03.05 13:36) [15]
multi(0)disk(0)rdisk(1)partition(1)/root="LINUX"
неа)
Страницы: 1 вся ветка
Форум: "Потрепаться";
Текущий архив: 2005.03.27;
Скачать: [xml.tar.bz2];
Память: 0.5 MB
Время: 0.033 c