[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Where is "append" command



Hi Colin, Bill, Paul and others

Thanks for your advice.

在 星期五 02 一月 2004 20:54,Colin Watson 寫道:

> > I'm going to add following line to /etc/lilo.conf
> >
> >  # append "hdc=ide-scsi" /etc/lilo.conf
> >  bash: append: command not found
>
> You're confused: append="hdc=ide-scsi" is a line you put in
> /etc/lilo.conf, *not* a shell command. Use an editor.

# nano -w /etc/lilo.conf
added append="hdc=ide-scsi"

# lilo -v

rebooted the pc

$ cat /etc/lilo.conf
boot=/dev/hda
root=/dev/hda1
install=/boot/boot.b
map=/boot/map
image=/vmlinuz
append="hdc=ide-scsi"
        label=Linux
        initrd=/initrd.img

~$ dmesg | grep ROM
hdc: SAMSUNG CD-R/RW SW-240B, ATAPI CD/DVD-ROM drive
hdd: SONY CD-ROM CDU5221, ATAPI CD/DVD-ROM drive
hdc: ATAPI 40X CD-ROM CD-R/RW drive, 8192kB Cache, DMA
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI 40X CD-ROM drive, 128kB Cache, UDMA(33)


> In answer to your question as asked, 'echo whatever >> filename' appends
> a line containing "whatever" to filename; but this isn't what you really
> want here.

If I understand your advice correctly

# echo append="ide-scsi" /etc/lilo.conf

If I am wrong, please correct it.  Thanks

B.R.
Stephen



Reply to: