This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Partitions on Hard Drive
- From: Nick Garnett <nickg at ecoscentric dot com>
- To: Donald Walton <dwalton at dramail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: 07 Dec 2006 18:46:08 +0000
- Subject: Re: [ECOS] Partitions on Hard Drive
- References: <1165519309.12537.11.camel@ze4805us.1.168.192.in-addr.arpa>
Donald Walton <dwalton@dramail.com> writes:
> Continuing the investigation into why there is a problem mounting
> partitions, other than the first partition, of a IDE hard drive, it
> appears that partitions other than the first one are being ignored.
>
> I tried to mount my IDE hard drive as /dev/disk0/1. eCos printed "disk
> lookup dev number = 1", which is correct. eCos then indicated that
> "disk read block=63", which is the start of partition 0, not partition
> 1. Partition 0 ends at 782207 and partition 1 starts at 782208.
The partition numbering is a little odd:
/dev/disk0/0 refers to the whole disk. So sector 0 of this will be the
MBR with the partition table. /dev/disk0/1 refers to the first
partition, /dev/disk0/2 to the second and so on. So you probably want
to try mounting /dev/disk0/2.
--
Nick Garnett eCos Kernel Architect
http://www.ecoscentric.com The eCos and RedBoot experts
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss