home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1998 January
/
CHIPCD1_98.iso
/
software
/
pelne
/
monkey
/
mlinux06.arj
/
LINUX.BAT
< prev
next >
Wrap
DOS Batch File
|
1997-04-28
|
2KB
|
39 lines
@ECHO OFF
rem First, ensure any unwritten disk buffers are flushed...
rem Warning: there is no posibility to boot Linux from M$ Windows
smartdrv /C
rem We go to heaven...
loadlin 3mide.030 root=/dev/hda1 rw
rem This line should be never interpretted (if everything goes well).
GOTO error
Seems /dev/hda1 magic for you? /dev/hda1 is usually C: in DOS environment.
hda is the first HDD on primary IDE interface (primary master)
hdb is the second HDD on primary IDE interface (secondary master)
hdc is the first HDD on secondary IDE interface (primary slave)
hdd is the second HDD on secondary IDE interface (secondary slave)
numbers is first, second, third partitions on HDD
(logical disk on extended partitions have number 5 or more)
rw is ReadWrite - how partition will be mounted during startup
In DOS on each HDD may be only one primary DOS and only one DOS extended
partition. Extended partitions may have more logical disks.
If you have 1 HDD and only DOS filesystem (without Stacker, Doublespace, etc)
C: /dev/hda1 -> primary partition
D: /dev/hda5 -> first logical disk on extended partition
E: /dev/hda6 -> second logical disk on extended partition
If you have 2 HDDs
C: /dev/hda1 -> primary partition on first drive
D: /dev/hdb1 -> primary partition on second drive
E: depend on you specific configuration
If you know nothing about partitions, consult with smart guru ;-)
You may experiment too.
:error
ECHO Somethig goes wrong. Check me please. I'm stupid LINUX.BAT