Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
tar: Error.... with /mnt/gentoo/boot and ext3 fs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
ahenrick
n00b
n00b


Joined: 21 Sep 2002
Posts: 5

PostPosted: Sat Sep 21, 2002 5:25 am    Post subject: tar: Error.... with /mnt/gentoo/boot and ext3 fs Reply with quote

Hello all:
In following the instructions for stage1 cd install, I ran into a little bit of trouble when attempting
Code:

tar -xvfjpf /cdroot/nocompress/stage1blah.....

This command exited with a
Code:

tar: Error blah....

When looking through the rest of the output, I noted that the tar command hiccuped when it came to putting stuff in /mnt/gentoo/home. For me, I had made this a separate partition (/dev/hda1) and mounted it previously with
Code:
mount /dev/hda1 /mnt/gentoo/home

The tar command was complaining about a "read only file system." When I typed mount, it listed this partition as being of type "vfs." Well, I unmounted it and remounted it specifying the ext3 type:
Code:
umount /dev/hda1
mount /dev/hda1 /mnt/gentoo/boot -t ext3

This did the trick, as verified by typing mount without any arguments. The tarball then extracted without error. Hope this helps someone else. Anyone have any idea why this would occur.

I had previously created an ext3 fs on /dev/hda1 so...
_________________
Ogiers are not like cakes
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Sep 21, 2002 5:29 am    Post subject: Reply with quote

Don't know if a reason is known. However, it is known that mount /blah/blah (without -t option) somtimes does this. I'm not certain if it is unique to ext3 or not. Using -t solves it (as you discovered).

Anyone more enlightened?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
rojaro
l33t
l33t


Joined: 06 May 2002
Posts: 732

PostPosted: Sat Sep 21, 2002 2:36 pm    Post subject: Re: tar: Error.... with /mnt/gentoo/boot and ext3 fs Reply with quote

ahenrick wrote:
Hello all:
In following the instructions for stage1 cd install, I ran into a little bit of trouble when attempting
Code:
tar -xvfjpf /cdroot/nocompress/stage1blah.....

This command exited with a
Code:
tar: Error blah....

of course it does as your tar commandline switches contain an error ... f must be always the last parameter before the file which it should use and it should never appear twice. also the - is not nessecary (but that doesnt matter much) - therefore your command line should be:
Code:
tar xvjpf /cdroot/nocompress/stage1blah.....

_________________
A mathematician is a machine for turning coffee into theorems. ~ Alfred Renyi (*1921 - †1970)
Back to top
View user's profile Send private message
ahenrick
n00b
n00b


Joined: 21 Sep 2002
Posts: 5

PostPosted: Sat Sep 21, 2002 5:02 pm    Post subject: that was a typo in my post Reply with quote

The f flag occuring twice was a typo in my original post. The substance of the error actually does occur as posted (the fs is mounted "vfs"). Obviously, since I got the tar command to work the second time around I am not a dolt. This post was only for the benifit of others.

Thanks for proofreading.

AKH
_________________
Ogiers are not like cakes
Back to top
View user's profile Send private message
rth
Apprentice
Apprentice


Joined: 23 Sep 2002
Posts: 157

PostPosted: Mon Sep 23, 2002 5:42 pm    Post subject: Reply with quote

I am getting an error and will try this tonight when I'm home... Although I followed the guide and used the XFS file system instead of ext3. Should I put xfs instead of ext3 at the end of the mount command?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Mon Sep 23, 2002 10:19 pm    Post subject: Re: tar: Error.... with /mnt/gentoo/boot and ext3 fs Reply with quote

rojaro wrote:
f must be always the last parameter before the file which it should use

What's your resource for this one? I can't confirm it.
Code:
$ tar --version
tar (GNU tar) 1.13.25
$ touch afo
$ tar fc afo.tar afo
$ tar ft afo.tar
afo


EDIT: Thanks to Naan Yaar for pointing out that tar behaves the way rojaro describes if the options are preceeded by a '-'.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum