Article View: comp.os.linux.embedded
Article #4Re: Booting from compact flash (a question of LILO)
From: Religious Sect
Date: Tue, 28 Aug 2001 14:26
Date: Tue, 28 Aug 2001 14:26
99 lines
4297 bytes
4297 bytes
Hi I have had two great (and fortunately very similar) responses. Combining the two responses... cp -pv /boot/* /mnt/flash/boot/ cp lilo.flash /mnt/flash/etc/lilo.conf lilo -r /mnt/flash -v -v -v so /mnt/fkash/etc/lilo.conf: -------------------------------- boot=/dev/hdc map=/boot/map install=/boot/boot.b prompt timeout=50 linear read-only root=/dev/hda2 (was hdc2) image=/boot/vmlinuz-2.2.18 -------------------------------- I get: LILO version 21, Copyright 1992-1998 Werner Almesberger Caching device /dev/hda (0x0300) Caching device /dev/hda1 (0x0301) Caching device /dev/hda2 (0x0302) Caching device /dev/hda3 (0x0303) Caching device /dev/hda4 (0x0304) Caching device /dev/hda5 (0x0305) Caching device /dev/hda6 (0x0306) Caching device /dev/hda7 (0x0307) Caching device /dev/hda8 (0x0308) Caching device /dev/hdb (0x0340) Caching device /dev/hdb1 (0x0341) Caching device /dev/hdb2 (0x0342) Caching device /dev/hdb3 (0x0343) Caching device /dev/hdb4 (0x0344) Caching device /dev/hdb5 (0x0345) Caching device /dev/hdb6 (0x0346) Caching device /dev/hdb7 (0x0347) Caching device /dev/hdb8 (0x0348) Caching device /dev/sda (0x0800) Caching device /dev/sda1 (0x0801) Caching device /dev/sda2 (0x0802) Caching device /dev/sda3 (0x0803) Caching device /dev/sda4 (0x0804) Caching device /dev/sda5 (0x0805) Caching device /dev/sda6 (0x0806) Caching device /dev/sda7 (0x0807) Caching device /dev/sda8 (0x0808) Caching device /dev/sdb (0x0810) Caching device /dev/sdb1 (0x0811) Caching device /dev/sdb2 (0x0812) Caching device /dev/sdb3 (0x0813) Caching device /dev/sdb4 (0x0814) Caching device /dev/sdb5 (0x0815) Caching device /dev/sdb6 (0x0816) Caching device /dev/sdb7 (0x0817) Caching device /dev/sdb8 (0x0818) Caching device /dev/loop0 (0x0700) Caching device /dev/loop1 (0x0701) Caching device /dev/loop2 (0x0702) Caching device /dev/loop3 (0x0703) Caching device /dev/loop4 (0x0704) Caching device /dev/loop5 (0x0705) Caching device /dev/loop6 (0x0706) Caching device /dev/loop7 (0x0707) Reading boot sector from /dev/hdc open /dev/hdc: Permission denied It is the last line that is the killer (yes I'm logged in as root) And here's what happens when you do an fdisk -l Disk /dev/hda: 16 heads, 51 sectors, 1010 cylinders Units = cylinders of 816 * 512 bytes Device Boot Start End Blocks Id System /dev/hda1 1 41 16727+ 82 Linux swap /dev/hda2 * 42 1010 395352 83 Linux Disk /dev/hdc: 4 heads, 32 sectors, 490 cylinders Units = cylinders of 128 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 256 16368 83 Linux /dev/hdc2 * 257 490 14976 83 Linux Any ideas why I have no permission for hdc? Especially when I can mount and read/write to my hearts content? Thanks Steve
Technical Details
Message-ID:
<9SNi7.23857$A5.73618@news1.eburwd1.vic.optushome.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!demon!203.97.37.7!news.xtra.co.nz!news1.optus.net.au!optus!newshub1.rdc1.nsw.optushome.com.au!news1.eburwd1.vic.optushome.com.au.POSTED!not-for-mailReferences:
<bSqi7.23401$A5.71980@news1.eburwd1.vic.optushome.com.au> <pan.2001.08.28.09.52.16.151.6999@identecsolutions.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fff06,106a0a3918663612 X-Google-Attributes: gidfff06,public X-Google-Thread: 102983,2bac29b80736099f X-Google-Attributes: gid102983,public X-Google-ArrivalTime: 2001-08-28 07:26:18 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!dispose.news.demon.net!demon!203.97.37.7!news.xtra.co.nz!news1.optus.net.au!optus!newshub1.rdc1.nsw.optushome.com.au!news1.eburwd1.vic.optushome.com.au.POSTED!not-for-mail From: "Religious Sect" <dontspamthe.templeofcaring@optushome.com.au> Newsgroups: comp.os.linux.embedded,aus.computers.linux References: <bSqi7.23401$A5.71980@news1.eburwd1.vic.optushome.com.au> <pan.2001.08.28.09.52.16.151.6999@identecsolutions.de> Subject: Re: Booting from compact flash (a question of LILO) Lines: 101 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <9SNi7.23857$A5.73618@news1.eburwd1.vic.optushome.com.au> Date: Tue, 28 Aug 2001 14:26:13 GMT NNTP-Posting-Host: 203.164.122.47 X-Complaints-To: abuse@optushome.com.au X-Trace: news1.eburwd1.vic.optushome.com.au 999008773 203.164.122.47 (Wed, 29 Aug 2001 00:26:13 EST) NNTP-Posting-Date: Wed, 29 Aug 2001 00:26:13 EST Organization: @Home Network