This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Partitions on Hard Drive


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]