LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-18-2011, 04:50 AM   #1
xombboxer
Member
 
Registered: Apr 2011
Posts: 56

Rep: Reputation: 0
sudo to solve this error "tar: Error exit delayed from previous errors" ?


Hi,

I have been running tar command to extract file using root user, but now i have to do this from non root user.
i just came to know about sudo, but i dont know how to use that.
i read this post about sudo and tar error.

what i know about sudo:

to run sudo command i have to make non root user sudo compatible.

use sudo prefix before the commnad like
Code:
sudo <commnad>
now i am a sud'ed user i am running the command with sudo prefix. but still i am getting this error

tar: Error exit delayed from previous errors

can anybody tell where am i going wrong?
 
Old 07-18-2011, 08:33 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,644

Rep: Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523Reputation: 523
What are the previous errors?
 
Old 07-19-2011, 05:19 AM   #3
xombboxer
Member
 
Registered: Apr 2011
Posts: 56

Original Poster
Rep: Reputation: 0
this is the actula error:

Code:
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hda3: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtd5: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hda: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtd9: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/loop15: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/sdb: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/sr1: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hdc4: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtdr6: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtd1: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hda5: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/ram1: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/loop8: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/sda2: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/loop9: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/console: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/sdb1: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/mtdblock10: Cannot mknod: Operation not permitted
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hdc1: Cannot mknod: Operation not permitted
i am trying to use tar with sudo command.
 
Old 07-19-2011, 07:19 AM   #4
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 553

Rep: Reputation: 46
Any system admin related command will require super user's (su) or in other words root's permissions.

For example:

sudo /sbin/ifup eth0


would bring up the network interface.


But you will be prompted for a valid password. Prefixing "sudo " will not work unless you add an entry to visudoers file by issuing the command:

Code:
visudo

Example:
Code:
[test@server ~]$ sudo /sbin/ifconfig

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these two things:

        #1) Respect the privacy of others.
        #2) Think before you type.

Password:
test is not in the sudoers file.  This incident will be reported.
[test@server ~]$

Learn about sudoers file and visudo command. How to use "sudo" is already explained.
 
Old 07-19-2011, 07:39 AM   #5
xombboxer
Member
 
Registered: Apr 2011
Posts: 56

Original Poster
Rep: Reputation: 0
what is the meaning of colorsi n ls -l command

if you do ls -l u will find files with different color. what each color denotes, for example symlink shows in some color
 
Old 07-19-2011, 07:46 AM   #6
xombboxer
Member
 
Registered: Apr 2011
Posts: 56

Original Poster
Rep: Reputation: 0
Hi devUnix You are right,

every thing is fine..

i am in visudoers list and i am using sudo prefix before the command but still im not able to extract all the files
this is what i am doing
Code:
sudo tar -xzvf rootfs_m*.tgz
i have problem extracting to ../..?/?/dev/ folder

(? is folder name)
 
Old 07-21-2011, 04:51 AM   #7
xombboxer
Member
 
Registered: Apr 2011
Posts: 56

Original Poster
Rep: Reputation: 0
More information:

I am doing this from view context. Inside the vob..

in my lunux home directory i can un tar with sudo, but inside view i cannot untar

if i do it from inside clearcase view this is what i am getting

Code:
tar: rootfs_maker_ramdisk/ramdisk_rootfs/dev/hdc1: Cannot mknod: No such device or address
and slso

problematic file name starts with c and b what is this c and b BTW?

Last edited by xombboxer; 07-21-2011 at 04:57 AM.
 
Old 03-13-2012, 02:26 AM   #8
alexdw1
LQ Newbie
 
Registered: Mar 2012
Posts: 1

Rep: Reputation: Disabled
Clearcase and mknod

Hi,

Did you ever solve untar a device node in a clearcase view? If so, please tell..
please email alexdw1 gmail.com

Thanks
Alex
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tar "Error exit delayed from previous errors" using "-C /" ToK Linux - Software 2 03-19-2008 06:49 AM
Red Hat 5 " tar: error exit delayed from previous errors" brettreyu Linux - Newbie 4 09-13-2007 01:42 PM
tar: Error exit delayed from previous errors flyscan Linux - Software 3 05-17-2007 11:22 PM
tar error "Error exit delayed from previous errors" skdevnath Linux - General 1 03-05-2004 01:06 PM
tar: Error exit delayed from previous errors x2000koh Programming 3 05-09-2003 04:38 AM


All times are GMT -5. The time now is 10:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration