x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Cant EXTRACT JORNADA base install to CF card!!

LGSUTEKH Page Icon Posted 2007-03-25 5:16 PM
#
Avatar image of LGSUTEKH
H/PC Newbie

Posts:
5
Status:
I am trying to extract the Linux Jornada base install to my CF card that has already been formatted with FAT and Linux.
I cant seem to UNTAR the file to the CF drive. The Jornada file is on the desktop. I am at the desktop root when I type:

tar -xjvpf 720degrees-sarge-r2-base.tar.bz2 -C /dev/sdb2
---------then I get--------

tar: /dev/sdb: CANNOT CHDIR: Not a directory

Also, when I try to go to my CF card with:
/dev/sdb, I get PERMISSION DENIED.

Both partitions on my CF card are mounted. Why cant I see my CF partitions?
What AM i DOING WRONG?
 Top of the page
RTFM Page Icon Posted 2007-03-25 7:28 PM
#
Avatar image of RTFM
H/PC Elite

Posts:
639
Location:
Green Bay, WI
Status:
As root try typing fdisk -l in a terminal, that will list all available drives and partitions. Make sure your CF *is* in fact /dev/sdb. Also you cant just go to /dev/sdb, thats the entire drive. You need to specify a partition to go to and its mount point. e.g. /mnt/sdb2 or /mnt/ext2 etc etc.

So you should be doing this instead.
tar -xjvpf 720degrees-sarge-r2-base.tar.bz2 -C /mnt/sdb2 ( or whatever the mount point is ) not the device ( /dev/ )
Hope that helps.

Cheers.
 Top of the page
LGSUTEKH Page Icon Posted 2007-03-25 9:22 PM
#
Avatar image of LGSUTEKH
H/PC Newbie

Posts:
5
Status:
Ok..thanks...I ran fdisk -l
My CF card is indeed SDB with sdb1 and sdb2 as the partitions.
In MUT, my CF card IS LABELLED sdb as the storage device and /sdg1 as the mounted partition. However, I do not see /sdb2 in MUT although FDISK says its there. In other words, I can't see the LINUX partition in MUT.

I tried your suggestion.

mount /dev/sdb
NO SUCH FILE OR DIRECTORY

mount /dev/sdb1
Can't find /sdg1 in etc/fstab

What I would like to do is change over to either partition on the command line to see what's in there obviously. Linux says it's mounted but I can't seem to get into the drive. I'm not quite fluent at this but I think I'm pretty close to fixing this.
WTF am I doing wrong?
Thanks in advance...


 Top of the page
RTFM Page Icon Posted 2007-03-25 10:36 PM
#
Avatar image of RTFM
H/PC Elite

Posts:
639
Location:
Green Bay, WI
Status:
I think your automount is a bit strange. Maybe try this. Unmount the CF card. As root make new mount points. Like mkdir /mnt/fat16 and mkdir /mnt/ext2. Then manually mount your CF. Being that your CF is /dev/sdb try this.

mount -t vfat /dev/sdb1 /mnt/fat16
then
mount -t ext2 /dev/sdb2 /mnt/ext2

Now your windows partition you'll be able to access from /mnt/fat16 and your linux partition from /mnt/ext2.
It will make life alot easier to have these mount points instead so you know which is which.

Now to see whats in each partition/directory try ls -l /mnt/fat16 to list contents of windows (fat) partition, and ls -l /mnt/ext2 to list contents of linux (ext2) partition. If they are empty, then you wont see any output.

To unpack the 720degrees base do as i suggested above. tar -xjvpf 720degrees-sarge-r2-base.tar.bz2 -C /mnt/ext2 ( not /dev/sdb )
Also check the 720degrees forums for general how-to's @ forums.720degrees.net

Cheers.
 Top of the page
sophisticatedleaf Page Icon Posted 2007-03-26 7:03 PM
#
Avatar image of sophisticatedleaf
H/PC Elder

Posts:
2,294
Location:
Sunny California
Status:
We already solved it over at the 720degrees forum. Please don't cross-post, it is offensive and wastes time. The instructions on the site explain how to do the extraction process quite clearly.
 Top of the page
LGSUTEKH Page Icon Posted 2007-03-26 8:51 PM
#
Avatar image of LGSUTEKH
H/PC Newbie

Posts:
5
Status:
OK....
I typed at the console as root: CF card is not mounted...

mount -t vfat /dev/sdb1 /mnt/fat16
mount: mounting /dev/sdb1 on /mnt/fat16 failed: No such file or directory.

This is real screwy.....

I tried fdisk /dev/sdb:...(then hitting "P" for partition table.....

The return listed:
/dev/sdb1-Fat16
/dev/sdb2-Linux

fine so far....but after exiting fdisk...

I tried to unmount with:

umount /mnt/sdb
umount: /mnt/sdb; not found

I seem to get the same results on a desktop puppy linux and a laptop vector linux. This is very strange. One thing to note. There is an icon for the CF card that pops up when plugging in the USB reader that the CF card is attached to.
This is on the VECTOR distro. On Puppy I tried MUT.
Also, there is an UNMOUNT SDB ICON to unmount it that sits right next to the other icon. I clicked the UNMOUNT icon to unmount the CF card as well and then tried as root from the terminal to unmount-couldn't do it...
W.....T............F....?

 Top of the page
LGSUTEKH Page Icon Posted 2007-03-26 9:01 PM
#
Avatar image of LGSUTEKH
H/PC Newbie

Posts:
5
Status:
ooops..sorry...didnt see your above post on cross posting. Should I just pot this problem from now on to 720degrees forum?
 Top of the page
sophisticatedleaf Page Icon Posted 2007-03-26 10:16 PM
#
Avatar image of sophisticatedleaf
H/PC Elder

Posts:
2,294
Location:
Sunny California
Status:
Quote
LGSUTEKH - 2007-03-26 5:51 PM
mount -t vfat /dev/sdb1 /mnt/fat16
mount: mounting /dev/sdb1 on /mnt/fat16 failed: No such file or directory.

You are mounting to a directory that does not exist. Do:

mkdir /mnt/fat16

to create the mount point. You can do similarly for sdb2.

To unmount properly, do:

umount /dev/sdb1 ; umount /dev/sdb2

You are unmounting partitions, not the card itself.

The cross-post does not matter at this point, but keep it in mind for the future.

Edited by ProgramSynthesiser 2007-03-26 10:18 PM
 Top of the page
LGSUTEKH Page Icon Posted 2007-03-28 6:32 PM
#
Avatar image of LGSUTEKH
H/PC Newbie

Posts:
5
Status:
Fixed aLl this by using the PUPPY Linux instructions. But now, I cant get out of a prompt after the CONFIG shell. I scrolled down to the bottom where it says EXECUTE SHELL,and then I am back to a prompt? WTF
btw...GREAT instructions on setting up Jornada using PUPPY.
HELP-
 Top of the page
sophisticatedleaf Page Icon Posted 2007-03-28 10:19 PM
#
Avatar image of sophisticatedleaf
H/PC Elder

Posts:
2,294
Location:
Sunny California
Status:
I already answered your question at forums.720degrees.net. Read the site, it says to login as root without a password.
 Top of the page
Jump to forum:
Seconds to generate: 0.171 - Cached queries : 66 - Executed queries : 10