Help with Angstrom tutorial

This is my first attempt to mount an image on my new Beagleboard. I
have followed the steps on the site: http://elinux.org/BeagleBoardBeginners.

I have successfully formated the sd card but I have some confusion
when trying to mount the MLO u-boot and angstrom image.

The tutorial asks that I copy the angstrom.tar to the card and untar
it in the SD card

However when I try to change to the sdb2 directory it tells me that
there is no directory.:

dewdlives@dewdlives-Optimus:/$ cd /mnt/sdb2
bash: cd: /mnt/sdb2: Not a directory
dewdlives@dewdlives-Optimus:/$ cd /mnt
dewdlives@dewdlives-Optimus:/mnt$ ls -a
. .. sdb1 sdb2
dewdlives@dewdlives-Optimus:/mnt$ ls -l
total 135400
-rw-r--r-- 1 root root 2578044 2009-11-07 01:24 sdb1
-rw-r--r-- 1 root root 135925203 2009-11-07 01:25 sdb2
dewdlives@dewdlives-Optimus:/mnt$ cd sdb2
bash: cd: sdb2: Not a directory

I am currently using Ubuntu, I am no expert in Linux/Unix but I know a
little. It may be something simple that I am missing.

Any help would be appreciated.

G'day,

If you want to get Ubuntu up and running, using Ubuntu 9.04 to do your image creation etc, I've put together a step-by-step howto:
http://automatica.com.au/blog/2009/10/howto-ubuntu-on-the-beagleboard/

Alsoo, make sure you upgrade the uBoot image on the beagleboard as well:
http://elinux.org/BeagleBoardUbuntu#Upgrade_U-Boot

It looks like you've created the /mnt/sdb1 and /mnt/sdb2 directorues, but you need to mount the formatted partitions at those directories...

Cheers,
Kai

Did you mount the partitions first? (/dev/sdb1 & /devsdb2)

Type 'mount' with no arguments to see all your mounted file systems.

I would guess that you've executed the cp commands without first mounting the
card, so it's just copied uImage & the rootfs to the /mnt directory and called
the sdb1 and sdb2, respectively.

If this is the case, delete the /mnt/sdb1 and /mnt/sdb2 files, because they'll
get in the way when you want to mount the partitions.

Cameron.

This is my first attempt to mount an image on my new Beagleboard. I
have followed the steps on the site: BeagleBoardBeginners - eLinux.org.

I have successfully formated the sd card but I have some confusion
when trying to mount the MLO u-boot and angstrom image.

What you've done, you simply a made of copy of those files, not put them
on to the SD/MMC.

You can only mount partitions to mount points which must be directories.
"df" should tell you if /dev/sdb1 and /dev/sdb2 have been automounted.
If they haven't, you can create 2 directories on which to mount
/dev/sdb1 and /dev/sdb2.
"mkdir -p /tmp/X /tmp/Y" your choice of names, X, Y, /tmp/sdb1 or 2
doesn't matter. -- omit the "s.
"mount /dev/sdb1 /tmp/X"
"mount /dev/sdb2 /tmp/Y"
"df" will now tell you that /dev/sdb1 is mounted on /tmp/X and /dev/sdb2
is mounted on /tmp/Y.

The tutorial asks that I copy the angstrom.tar to the card and untar
it in the SD card

As stated above, you didn't copy anything to the card.

However when I try to change to the sdb2 directory it tells me that
there is no directory.:

True you don't have /mnt/sdb1 and /mnt/sdb2 directories, you only have
copies of files with those names.

dewdlives@dewdlives-Optimus:/$ cd /mnt/sdb2
bash: cd: /mnt/sdb2: Not a directory
dewdlives@dewdlives-Optimus:/$ cd /mnt
dewdlives@dewdlives-Optimus:/mnt$ ls -a
. .. sdb1 sdb2
dewdlives@dewdlives-Optimus:/mnt$ ls -l
total 135400
-rw-r--r-- 1 root root 2578044 2009-11-07 01:24 sdb1
-rw-r--r-- 1 root root 135925203 2009-11-07 01:25 sdb2
dewdlives@dewdlives-Optimus:/mnt$ cd sdb2
bash: cd: sdb2: Not a directory

That says you have 2 files with those names not MMC partitions.
"df" will tell you if the 2 partitions are automounted e.g:-
This is how it looks on my box.
# df
/dev/sdd2 15291060 5440836 9073484 38% /media/LABEL2
/dev/sdd1 118587 3123 115464 3% /media/LABEL1
# ls -l /media
total 9
drwxr-xr-x 2 lancelot root 512 1970-01-01 01:00 LABEL1
drwxr-xr-x 18 root root 4096 2009-11-03 12:18 LABEL2

I am currently using Ubuntu, I am no expert in Linux/Unix but I know a
little. It may be something simple that I am missing.

Any help would be appreciated.

Hope that helps, but I reckon you missed a step in the tutorial.
Again, if the MMC partitions are not automounted, you have to manually
create the mount points (directories) and then mount each. I suspect
you'll find they are automounted.
Regards
Sid.

Great answers, you both were exactly right. I had miss understood one
line of the tutorial and your replies filled in the blank for me. Much
appreciated.