-
tohd - then run lilo
Hi
Today I tried the "tohd" command for the first time. One thing I was thinking about was to make a scipt which run lilo and install a boot manager on the hd.
The script could possibly be run from inside /etc/init.d/knoppix-autoinstall.
One problem is to detect if there is already is a boot manager installed. I guess this this could be done by looking for a lilo.conf or grub.conf on all the partitions but it might be better just to ask the user: "Are you sure would install a boot-loader".
The other problem is to find where the Windows installations is located. Usually they would be found at hda1.
Here is the lilo.conf I used today:
Code:
boot=/dev/hda
default=knoppix
prompt
nowarn
timeout=100
image=/mnt/hda1/knoppix/vmlinuz
label=knoppix
root=/dev/hda1 # probably not needed
initrd=/mnt/hda1/knoppix/miniroot.gz
append="lang=da quiet noscsi" # home=scan myconf=scan
vga=normal
read-only
other=/dev/hda1
label=windows
table=/dev/hda
To install the lilo I start up from the cdrom and run the following commands as root:
Code:
mount /mnt/hda1
mount -o loop /cdrom/KNOPPIX/boot.img /mnt/test
cp -f /mnt/test/vmlinuz /mnt/hda1/knoppix/
cp -f /mnt/test/miniroot.gz /mnt/hda1/knoppix/
umount /mnt/test
umount /mnt/hda1
The following commands should be run each time lilo.conf has to be changed:
Code:
mount /mnt/hda1
vi /mnt/hda1/knoppix/lilo.conf
rm -f /boot # don't know how to avoid this
ln -s /mnt/hda1/knoppix /boot # and this
lilo -v -C /mnt/hda1/knoppix/lilo.conf -b /dev/hda
umount /mnt/hda1
Would you think it is safe to write a script which does the above? I find it a bit scaring to write a boot manager to an end-user harddisk.
/hans
Similar Threads
-
By tmj0nes99 in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 03-30-2005, 07:16 PM
-
By lester in forum General Support
Replies: 3
Last Post: 01-27-2005, 03:47 PM
-
By Mercury 4063 in forum General Support
Replies: 4
Last Post: 11-12-2004, 09:52 PM
-
By crix in forum General Support
Replies: 5
Last Post: 08-25-2004, 04:56 PM
-
By Blue in forum Customising & Remastering
Replies: 0
Last Post: 09-22-2003, 08:05 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W picture](/store/img/g/W38AAOSwtcVjVC0Z/s-l225/Dell-PowerEdge-R730-2x-E5-2699V3-2-3Ghz-36-Core-12.jpg)
Dell PowerEdge R730 2x E5-2699V3 2.3Ghz 36 Core 128GB RAM H730 X520-I350 2x750W
$329.99
![Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD picture](/store/img/g/vx0AAOSwvwFlExVY/s-l225/Dell-PowerEdge-R630-Server-2x-E5-2680-V4-28-Cores-.jpg)
Dell PowerEdge R630 Server 2x E5-2680 V4 = 28 Cores S130 32GB RAM NEW 480GB SSD
$197.99
![Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330 picture](/store/img/g/ZD0AAOSwm41mOZYw/s-l225/Dell-PowerEdge-R630-Server-2x-E5-2640v3-2-60Ghz-16.jpg)
Dell PowerEdge R630 Server 2x E5-2640v3 2.60Ghz 16-Core 64GB H330
$182.65
![Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays picture](/store/img/g/GAcAAOSw9Q1mGSZW/s-l225/Dell-Poweredge-R630-Server-2x-E5-2620-V4-16-Cores-.jpg)
Dell Poweredge R630 Server 2x E5-2620 V4 =16 Cores | S130 | 32GB RAM | 2x trays
$159.99
![Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD  picture](/store/img/g/yAwAAOSwdyNlgQ8d/s-l225/Dell-PowerEdge-R720xd-26HDD-300gb-2-5-inch-E5-2697.jpg)
Dell PowerEdge R720xd 26HDD 300gb 2.5-inch E5-2697 X 2CPU 384RAM 7.2 Tb HDD 
$180.00
![Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server picture](/store/img/g/ZfUAAOSw~TFmclF7/s-l225/Dell-PowerEdge-T620-8-Bay-LFF-Xeon-E5-2660-0-2-20G.jpg)
Dell PowerEdge T620 8-Bay LFF Xeon E5-2660 0 2.20GHz 48GB NO HDD S110 Server
$174.99
![Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox picture](/store/img/g/480AAOSw9TVl9vAv/s-l225/Dell-PowerEdge-R620-Server-256GB-RAM-2x8cCPU-120Gb.jpg)
Dell PowerEdge R620 Server - 256GB RAM, 2x8cCPU, 120Gb SSD/3x900Gb SAS, Proxmox
$320.00
![Dell PowerEdge R640 1U 2x Xeon Gold 3.2GHz 192GB RAM | Dual Power Supply picture](/store/img/g/5kMAAOSwqJdmaLkv/s-l225/Dell-PowerEdge-R640-1U-2x-Xeon-Gold-3-2GHz-192GB-R.jpg)
Dell PowerEdge R640 1U 2x Xeon Gold 3.2GHz 192GB RAM | Dual Power Supply
$719.99
![Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB picture](/store/img/g/7XkAAOSwnhFkFNvU/s-l225/Dell-Poweredge-R630-2x-Xeon-E5-2680-v4-2-4ghz-28-C.jpg)
Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB
$334.99
![DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 256GB H730 4xRJ45 picture](/store/img/g/qfQAAOSw9XRklkNR/s-l225/DELL-PowerEdge-R630-8SFF-Server-2x-E5-2690v4-2-6GH.jpg)
DELL PowerEdge R630 8SFF Server 2x E5-2690v4 2.6GHz =28 Cores 256GB H730 4xRJ45
$562.00