[SOLVED] changing ownership : operation not permitted
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi all
i am here -lfs6.7 @ 5.33. Changing Ownership (pagno-73)
1)I wanna take back up $LFS/tools directory (for use in building future LFS systems), how can i take back up (tools dir)
i mounted pendrive to /tmp
i try to copy the tools dir to /tmp: msg permission denied
lfs:/mnt/lfs$ls
sources tools lfs-packages.tar
lfs:/mnt/lfs$cp -r tools /tmp(usb device mount point)
2)i am try to change the ownership of the $LFS/tools directory to user root by running the following command:
output is lenghty,but i am posting last lines only
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xbn': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xsw': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xw': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/i386linux.xu': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xn': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xr': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/elf_i386.xdw': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts/i386linux.xn': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib/ldscripts': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/lib': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/as': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/ar': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/strip': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/ranlib': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/objcopy': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/nm': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/ld': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin/objdump': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu/bin': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools/i686-pc-linux-gnu': Operation not permitted
chown: changing ownership of `/mnt/lfs/tools': Operation not permitted
(i am using lfs livecd)
yes that may be the mistake
(present) one terminal is lfs usr,
so i opened new terminal
here i run this
root[ ~ ]#chown -R root:root $LFS/tools
is this fine
i have to do chpter 6 @ root[ ~ ]# only right
-----------------------------------------------
i was expecting abt backup tool dir,can u tell
hi druuna
i exit from lfs user,now
root [ /mnt ]# tar jcf lfs.chapter5.tar.bz2 lfs
output is following
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: No space left on device
Input file = (stdin), output file = (stdout)
how come this,i made 12gb partition for lfs ,
shall i remove sources dir(all previous pkg untared sources)? in /sources
-------------------------------------------------------------------------
here i just click on logout(on menu),after few seconds
its appear as root[ ~ ]#
here i typed
root[ ~ ]#startx
reslult is
FAT:directory bread(block 5991904) failed
scsi ....rejecting i/o to dead device
.
.
.
.
FAT:directory bread(block 5991904) failed
scsi ....rejecting i/o to dead device
FAT:FAT read failedblocknr 3820)
fatal server error:
could not create lock file in /tmp/.tx0-lock
give up.
xinit:no such file or directory(errno 2):unable to connect to x server
xinit:no such process(errno 3):server error.
something went wrong a?
when i type startx @ root [ ~ ]#
it should appear gui na
whats wrong
Don't use fat. Format the drive in a Linux filesystem. The chown command will not work. The ownership and permissions of directories and files are determined enmass by the mount options.
However, you could backup up files to a fat drive using tar. The ownership and permissions information is written inside the backup.
root [ /mnt ]# tar jcf lfs.chapter5.tar.bz2 lfs
output is following
bzip2: I/O or other error, bailing out. Possible reason follows.
bzip2: No space left on device
Input file = (stdin), output file = (stdout)
If you are using the liveCD there is indeed no space left to do the tar command (when using /mnt/lfs.chapter5.tar.bz2 as target). You cannot write to a cd, it is a read-only medium.
If you have a memory-stick or thumb drive or whatever, mount it first (for example to /mnt/usbstick), then tar to that mounted directory (again as root):
Code:
cd /mnt
tar jcf /mnt/usbstick/lfs.chapter5.tar.bz2 lfs
PS: You should always remove the build directories after the build (which is mentioned in the book), but you do not need to remove the packages.
yester day i told ,i got fat error
so today i started fresh from starting
see 5.33(lfs-6.7)
note(pagen0-73)
The commands in the remainder of this book must be performed while logged in as user root and no
longer as user lfs. Also, double check that $LFS is set in root's environment.
lfs:/mnt/lfs/sources$exit(i exited from lfs)
root[ ~ ]#chown -R root:root $LFS/tools
root[ ~ ]#echo $LFS
its iving /mnt/lfs
it should show root na according to note
hi druuna
one more thing
till chapter 5 only i have to use lfslivecd(without distrubing,without power off)
while doing chapter 6 ,doesnt need to use lfs livecd ?right
is this right what i am saying,
if so how can i start ch6 without using lfscd
plz tell me as above(step wise plz)
thanku
lfs:/mnt/lfs/sources$exit(i exited from lfs)
root[ ~ ]#chown -R root:root $LFS/tools
root[ ~ ]#echo $LFS
its iving /mnt/lfs
it should show root na according to note
That depends on what you mean by "it". $LFS/tools should now be owned by root.
Quote:
Originally Posted by janakiramulu
one more thing
till chapter 5 only i have to use lfslivecd(without distrubing,without power off)
while doing chapter 6 ,doesnt need to use lfs livecd ?right
is this right what i am saying
root [ ~ ]# mount -v --bind /dev $LFS/dev
result is following
/dev on /dev type none (rw,bind)
is this right (i didnt get 'none' word),nothing wrong this one right?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.