2024. április 25., csütörtök

Gyorskeresés

CentOS soros install

Írta: | Kulcsszavak: CentOS . serial . console . install

[ ÚJ BEJEGYZÉS ]

Addig trivialis, hogy hogyan lehet USB-rol telepiteni.

Particionalas (nallam sdc a pendrive)

#fdisk /dev/sdc

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-62, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-62, default 62):
Using default value 62

Command (m for help): a
Partition number (1-4): 1

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c

Command (m for help): p

Disk /dev/sdc: 512 MB, 512753664 bytes
255 heads, 63 sectors/track, 62 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 62 497983+ c W95 FAT32 (LBA)

Command (m for help): w
The partition table has been altered!

Igy van egy pendrive VFAT particioval boot flaggel. Jon a fomazas:

# mkfs.vfat -F 32 -n USB /dev/sdc1

mbr-be a loader:

# dd if=/usr/share/syslinux/mbr.bin of=/dev/sdc
0+1 records in
0+1 records out
440 bytes (440 B) copied, 0.0237609 s, 18.5 kB/s

syslinux az sdc1-re;

# syslinux /dev/sdc1

A telepito masolasa:

# mount -o loop Downloads/CentOS-6.3-i386-minimal.iso /mnt/1
# mount /dev/sdc1 /mnt/2
# cp -r /mnt/1/* /mnt/2

isolinux -> syslinux

# cd /mnt/USB
# mv isolinux syslinux
# cd syslinux
# mv isolinux.cfg syslinux.cfg
# mv isolinux.bin isolinux.bin.old
# mv vesamenu.c32 vesamenu.c32.old
# cp /usr/share/syslinux/vesamenu.c32 .

Ha csak az USB-rol telepites a cel, akkor kesz is vagyunk. Ha soros konzol kell, akkor viszont az isolinux.cfg-t kell editalni. Az isolinux.cfg bar nem bonyolult ritkan foglalkozik vele az ember. Ime egy full minimal config COM2-re hangolva, de az eredetit is at lehet irni, ha kell:

Temeszetesen a menu.c32-ot is at kell masolni az USB syslinux konyvtaraba.

Copyright © 2000-2024 PROHARDVER Informatikai Kft.