changing ownership : operation not permitted
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: lfs:/mnt/lfs/sources$ chown -R root:root $LFS/tools 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 why??(what i missed ) |
Hi,
Quote:
|
[
hi druuna
thanku so much for fast reply (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 thanku |
Hi,
Quote:
Quote:
Quote:
Quote:
If you want to make a backup I would suggest the following (as root user): Code:
cd /mnt Code:
cd /mnt |
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 ------------------------------------------------------------------------- |
You should remove the build dir as you go along
|
hi druuna
(i am using lfs livecd) 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 |
You need to build blfs yet, The lfs is just the base system
|
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. |
Hi,
Quote:
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 Hope this helps. |
hi druuna
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 |
Hi,
Quote:
Quote:
|
hi
druuna thanks for reply i used lfslivecd(continue) ...(lfs-6.7) @6.2.2. Mounting and Populating /dev 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? shall i go forward, |
Hi,
If there is no error shown you can continue. The above shown output is not an error, it is the output generated by the -v (verbose) flag. |
k thanku druuna
|
k thanks druuna
|
can u clarify with one example
lfs-6.7, see pageno-75,3rd paragraph Chapter 6. Installing Basic System Software 6.1. Introduction -We do not recommend using optimizations. -If a package refuses to compile when using optimization, try to compile it without optimization and see if that fixes the problem. Even if the package does compile when using optimization, there is the risk it may have been compiled incorrectly because of the complex interactions between the code and build tools. what is the diff 'compile the package with optimization/without optimization' |
While compiling a software, a compiler can try to optimize for either performance or size. If you use optimization, the compiler has some techniques to alter the code that it more fits the need (performance/size). This can lead to situations where the code doesn't work in the way the developer intended it to do. Either the software doesn't work at all in your system or, and this is the real danger, it works, but in some situations becomes unstable or delivers wrong results.
Therefore the book recommends to not use optimizations. |
k thanks tobisgd
now its clear but i was expecting any exmples,to what the diff(u can give any webpage/website to exmples) |
hi druuna
1) i mounted it usb to /mnt/usbstick), cd /mnt tar jcf /mnt/usbstick/lfs.chapter5.tar.bz2 lfs janu@usbstick# lfs-chapter5.tar.bz2 janu@usbstick#tar -jxf lfs-chapter.tar.bz2 ( i try to extract) here the result tar: lfs/tools/include/inttypes.h: Cannot open: No such file or directory tar: lfs/tools/include/termio.h: Cannot open: No such file or directory tar: lfs/tools/include/iconv.h: Cannot open: No such file or directory tar: lfs/tools/include/pthread.h: Cannot open: No such file or directory tar: lfs/tools/include/poll.h: Cannot open: No such file or directory tar: lfs/tools/include/tic.h: Cannot open: No such file or directory tar: lfs/tools/include/expect_tcl.h: Cannot open: No such file or directory tar: lfs/tools/include/netrose: Cannot mkdir: No such file or directory tar: lfs/tools/include/netrose/rose.h: Cannot open: No such file or directory tar: lfs/tools/include/shadow.h: Cannot open: No such file or directory tar: lfs/tools/include/memory.h: Cannot open: No such file or directory tar: lfs/tools/include/fstab.h: Cannot open: No such file or directory tar: lfs/tools/include/fcntl.h: Cannot open: No such file or directory tar: lfs/tools/include/endian.h: Cannot open: No such file or directory tar: lfs/tools/include/error.h: Cannot open: No such file or directory tar: lfs/tools/include/aliases.h: Cannot open: No such file or directory tar: lfs/tools/include/ifaddrs.h: Cannot open: No such file or directory tar: lfs/tools/include/features.h: Cannot open: No such file or directory tar: lfs/tools/include/libintl.h: Cannot open: No such file or directory tar: lfs/tools/include/netrom: Cannot mkdir: No such file or directory tar: lfs/tools/include/netrom/netrom.h: Cannot open: No such file or directory tar: lfs/sources/gettext-0.18.1.1/gettext-tools/gnulib-lib/.libs: Directory renamed before its status could be extracted tar: lfs/sources/gettext-0.18.1.1/gettext-tools/gnulib-lib: Directory renamed before its status could be extracted tar: lfs/sources/gettext-0.18.1.1/gettext-tools/src/.libs: Directory renamed before its status could be extracted tar: lfs/sources/gettext-0.18.1.1/gettext-tools/src: Directory renamed before its status could be extracted tar: lfs/sources/gettext-0.18.1.1/gettext-tools: Directory renamed before its status could be extracted tar: lfs/sources/gettext-0.18.1.1: Directory renamed before its status could be extracted tar: lfs/sources: time stamp 2011-04-11 19:54:46 is 13244.265589325 s in the future tar: lfs: time stamp 2011-04-11 16:15:42 is 100.265498107 s in the future tar: Exiting with failure status due to previous errors some thing wrong,what to do ------------------------------------------------ 2)this q is not required now (but i told u power will go off in the night),so instead of redoing all the again till ch5) how can use this(lfs-chapter5.tar.bz2) in further,(if i start build tmw),from there i will move ch6 k --------------------------------------------------------------- 3)do i need to use lfs livecd till(which chapter) end of lfs(successful completion) ------------------------------------------------------------------------ 4)k i removed sources dir,build dir (i do not remove the packages) then i move to further 6.9.1. Installation of Glibc -pageno-86 root:/sources/glibc-build#grep Error glibc-check-log make[2]:[/sources/glibc-build/posix/annexc.out]error 1 {ignored] how to fix this error shall i install as fresh only glibc-2.12.1 again? thanks |
Hi,
First of all: - Please spell out your words. Not doing so makes understanding you even harder then it already is.... q -> question pgno -> page number k -> Ok na -> ???? ch -> chapter etc, etc, etc. Using [code] [/code] or [quote] [/quote] would also help in making your posts more readable. About your questions: Quote:
Also: If you want to restore the backup you should remove the original content first. If you do not do so, unwanted files and directories might still be present after the restore. If (!!!) you want to restore the backup, do the following as root user: Code:
cd /mnt Quote:
Have a look at the Note at the bottom of 6.4. Entering the Chroot Environment, which explains what it is you want. Quote:
Quote:
|
hi druuna
thanks a lot for reply sorry for spelling,now i will mention very clear according to ur 2 ans ,i can not use backup after reboot/restart right i can use backup only if i want to do redo all of chapter 6 -------------------------------------------------------- error about glibc yes you are right ,i didnt read the chapter 6, here 6.9.1. Installation of Glibc -they mentioned this error ,Though it is a harmless message i can ignore i will move to further thanku so much |
how to install the locale for 'your own ()country, language and character set.'
i want install locales of country-india,language-(english/can we select different languages as options) after this i will do next step 'make localedata/install-locales' pageno-87 |
I am wondering why people, especially druuna, can be so calm with posts like yours.
At first, it was said to you more than one time that you have to read the book and do exactly what is written there. You don't. Then you were asked to spell out your words to make your posts more readable for the people helping you. You don't. Sorry I have to say that, but when I see your threads regarding LFS I doubt that in the end you will have learned anything from LFS. Some people think if they follow the book and copy/paste the commands they will be more knowledgeable at the end. In some cases this is so, because people are willing to learn, even if they not have fulfilled the prerequisites in the beginning (like you did). But in your case you seem not even to be willing to follow the book. Furthermore you are wasting the time of the people on this forums with your threads about errors that wouldn't occur or could easily be solved if you actually would read the book. What do you think you will achieve with this? |
Quote:
Quote:
|
And You Do
|
Quote:
In chapter 7 you'll be able to set your wanted locale. |
hi druuna
thanks for reply see pageno-189 when i enter this command root:/sources/vim73#vim -c ':options' result is in diff colors text and options as red colour like 1,2,3..25 i quit(<enter> for quit) from this i moved to further is it k |
hidruuna
according to lfs book pageno-191.6.62. Stripping Again i logout from chroot ie root:/logout output is there are stopped jobs next i re enter to chroot ie root:/#chroot $LFS /tools/bin/env -i \ HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin \ /tools/bin/bash --login output is chroot:cannot change root directory t /tools/bin/env:not a directory(there is no directory with name) what to do |
Quote:
You are probably talking about chapter 6.60 and this is what the book says: Quote:
|
Quote:
Quote:
Is LFS set (echo $LFS), if not: it should be. |
hi druuna
1) i redo chapter 6.60. Vim-7.3 while running root:/sources# make test (6.60.1. Installation of Vim) is giving error in red colour (highlighted bold letters) moving fast(scrolling) but at the end of make test result no error messages are appearing ------------------------------------------------------------------------------------------------------------ 2)post no 29 yes this -6.60.2. Configuring Vim(pageno-189) ,here i will give very clear when i issue this----root:/sources/vim73#vim -c 'ptions' result is in diff colors text and options as red colour like 1,2,3........25 option window [while bar on that black letters with this name ) - - - - [no name] then i press from keyboard(cntl+c) following message showing type:i quit(<enter> for quit) then i press from keyboard(cntl+z) output mesage is [1]:stopped here i have to do nothing right(do i simply quit from this)when i issue this command 'vim -c 'ptions' is it k. ------------------------------------------------------------------------ 3)post 32 i am talking about 6.62. Stripping Again root:/sources/vim73#logout output is there are stopped jobs(not bold letter) --------------------------------------------------------- 4)here i checked LFS set with following root:/sources/:echo $LFS result nothing i need to set $LFS with export right -------------------------------------------- 5) where i have to perform this 6.60.2. Configuring Vim(,in vim source directory) |
6)i check
ls -l /tools/bin/env doent exist env dir in /tools/bin |
Hi,
If you have been building (parts of) chapter 6 without LFS being set, you need to start again from the beginning of chapter 6. You've been told the importance of the LFS variable again and again in the book........ You still do not follow the book and still don't have a clue what it is you are doing. I don't think it is wise for you to continue until you have a better understanding of linux in general and know how to follow the instructions in the book. This also means that I will not be answering your questions any more until I see a significant improvement. |
which i am asking above questions are conflict,i would have mention(above questions) as in the book
(but i followed the book as they mention) |
hi druuna
1)i have small doubt (echo $LFS)because of this i am not moving further first i exit from lfs usr then root[ ~ ]#chown -R root:root $LFS/tools root[ ~ ]#echo $ LFS result is /mn/lfs (this result till chapter 6.23) 2)but 6.4. Entering the Chroot Environment (page no-79) --------------------------------- see third paragaph From this point on, there is no need to use the LFS variable anymore, because all work will be restricted to the LFS file system. This is because the Bash shell is told that $LFS is now the root (/) directory. ------------------------------------------------------------------------------------------------ root[ ~ [#chroot "$LFS" /tools/bin/env -i \ HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ /tools/bin/bash --login +h result is I have no name!:/# this is right according to book I have no name!:/#echo $LFS no (any) output this is continuing till end of chapter 6,you are saying that it should set (echo $LFS)) how can i set the variable this is the problem(exact) ,what to do i am going to be mad(with this) plz help me |
5.33. Changing Ownership(page no-73)
Note 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. ------------------------------------ i set with the $LFS to root with export command ie export LFS=/ ---------------- then i moved to further i checked echo $LFS giving / this is right according to book(check that $LFS is set in root's environment) is this right |
Read post #35.
|
hi druuna
just give me clue before moving to chapter6 and till end of lfs build if i check(any time) echo $LFS,what would be the result |
hi druuna
this time i skip this (commands)step 5.32 5.33. Changing Ownership 1)i have gotten echo $LFS result is '/mnt/lfs' after issuing this command root:/#chown -R root:root $LFS/tools ---------------------------------------------------------------------------------- 2)but after this 6.4. Entering the Chroot Environment root [ ~ ]#chroot "$LFS" /tools/bin/env -i \ HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ PATH=/bin:/usr/bin:/sbin:/usr/ sbin:/tools/bin \ /tools/bin/bash --login +h result is i have no name!:/# (as per book is right) i have no name!:/#echo $LFS nothing result ----------------------------------- 3)i moved further till 6.16. GCC-4.5.1(pageno-103) )ie ulimit -s 16384 (Test the results, but do not stop at errors:) but root:/sources/gcc-build#make -k check giving errors make[2]:***[check] error 127 make[1]:***[check-fxincludes] error2 i moved further(but do not stop at errors:) ----------------------------------------------------------------- 4)and 6.49. Make-3.82 (pageno-167) root[:/sources/make-3.82#make result is full of errors i tred hole chapter 6(till 6.49),echo $LFS ITS NOT GIVING ANY result what i am doing mistake plz tell me |
7.8. The Bash Shell Startup Files
hi druuna
i learned little,i back with success of chapter 6 now @ 7.8. The Bash Shell Startup Files cat > /etc/profile << "EOF" # Begin /etc/profile export LANG=<ll>_<CC>.<charmap><@modifiers> # End /etc/profile EOF ------------------------------------- what i have to use(mine is country' india',language 'english',what about charmap and modifier in my case) <ll> below with the two-letter code for the desired language (e.g., “en”) and <CC> with the two-letter code for the appropriate country (e.g., “GB”). <charmap> should be replaced with the canonical charmap for your chosen locale. Optional modifiers such as “@euro” may also be present. is it necessary to use exact our country code and other things if i use defaultanything ,can we cnange later does it effect on anything further (if you need i will ouput of locale -a ) |
1 Attachment(s)
i am attaching below locale -a result
and my system is all hp-Hewlett-Packard INDIAN COMPANY (desktop,keyboard,everything) |
Hi,
I do believe India has more then one possible locale setting. These came up (there might be more): Quote:
Examples: Code:
export LANG=hi_IN.utf8 Do read the part in the book about using UTF-8! Hope this helps. |
hi druuna
thanks for reply i done following root:/sources# LC_ALL=en_IN.utf8 locale charmap UTF-8 root:/sources# LC_ALL=en_IN.utf8 locale language English root:/sources# LC_ALL=en_IN.utf8 locale charmap UTF-8 root:/sources# LC_ALL=en_IN.utf8 locale int_curr_symbol INR root:/sources# LC_ALL=en_IN.utf8 locale int_prefix 91 --------------------- root:/sources# cat > /etc/profile << "EOF" > # Begin /etc/profile > > export LANG=en_IN.utf8 INR > # End /etc/profile > EOF (there LC_ALL output is in all capital letters,but in above cat command i used small is it fine) i am giving above what i got on terminal ,while doing above steps |
Hi,
The int_curr_symbol is already set when choosing a locale (as the output above shows), I don't know why you added it to the export LANG=en_IN.utf8 line. Remove the INR part. |
cat > /etc/profile << "EOF"
# Begin /etc/profile export LANG=<ll>_<CC>.<charmap><@modifiers> # End /etc/profile EOF AS PER BOOK in examples,Optional modifiers currency name right [like “@euro”] thats why i used,any way right now i am @ 7.11. Configuring the localnet Script so ,shall go back/or what to do can we change from here,using any command if i do change here ,does it effect any thing |
HI DRUUNA
network card version no network card version which one should i use,becauze i am using lfs-livecd, in that internet is working i open filesystem there /etc/hosts when i open hosts folowing result # Begin /etc/hosts 127.0.0.1 lfslivecd localhost # End /etc/hosts which one cat command shall i use among above 2 cat commands( network card version no network card version )i typed on another system result janu@janu:~$ ifconfig eth0 Link encap:Ethernet HWaddr 00:0f:fe:3e:e9:ee inet addr:10.100.37.29 Bcast:10.100.39.255 Mask:255.255.252.0 inet6 addr: fe80::20f:feff:fe3e:e9ee/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:3500739 errors:0 dropped:0 overruns:0 frame:0 TX packets:4609276 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1966551602 (1.9 GB) TX bytes:723099395 (723.0 MB) Interrupt:17 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:815 errors:0 dropped:0 overruns:0 frame:0 TX packets:815 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:55482 (55.4 KB) TX bytes:55482 (55.4 KB) what to do |
Quote:
Quote:
Quote:
A while back I stopped answering your posts due to lack of knowledge on your side and you not following the book. Seeing that you made it all the way up to chapter 7.8 without any help from the LQ community I though you would have a better understanding of what is going on. But if I look at your last replies (#47 and #48) I do wonder if that is true...... |
Quote:
|
All times are GMT -5. The time now is 03:01 PM. |