Sponsored Content
Full Discussion: Damaged root directory ..
Top Forums UNIX for Advanced & Expert Users Damaged root directory .. Post 302421628 by SISQUEZ on Saturday 15th of May 2010 10:14:36 AM
Old 05-15-2010
Damaged root directory ..

With the cpio command of a Unix File System for error I have replaced the directory “.. “
(when you give the command “ls -la” under root you see at the beginning the hidden directory “. “ followed by a hidden file who is called “..” )
I have the copy on a cartridge of the whole file system, but now when I try to launch the command line “cpio”, the message is “cannot determine working directory”. What can I do?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File system damaged

Dear All One partition with HTFS File system on SCO UNix 5.0.5 has got damaged and its not getting mounted. While running FSCK, getting "phase 0 error on reply.log" . Is there any other way to repair a damaged file system and to mount the same. Please help... (1 Reply)
Discussion started by: rajesh_v_u
1 Replies

2. UNIX for Dummies Questions & Answers

HDD damaged, help me to recover data

I can't mount root partition. I can boot GRUB but when root partition mounting step the screen show me message: init not found. I don't want to recover linux OS, I only want to recover /root/*.* files In windows OS I use Easy Recovery but I don't know software which recover data in linux OS.... (1 Reply)
Discussion started by: littleghost
1 Replies

3. Solaris

System damaged need help please

Hi there, i have sun solaris 10 running on X86 system P4 box with ATA harddisk, anyway suddenly its started to try to login to the maintenance mode asking for the root password when i give it its mount the partitions as read only but when i try to run fsck on them i got this error: can't stat... (3 Replies)
Discussion started by: XP_2600
3 Replies

4. UNIX for Dummies Questions & Answers

root directory

root directory is going out of space. how can i free up memory by deleting unwanted file. which files are safe to remove.i checked tmp dir. also. but no files. thanks (1 Reply)
Discussion started by: ajantha
1 Replies

5. UNIX for Dummies Questions & Answers

How to display only Owner and directory/sub directory names under particular root

hai, I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc". (here "oasitqtc" is the owner of the directory or sub directory.) i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
Discussion started by: gagan4599
6 Replies

6. Ubuntu

Root directory not available!

I am using Ubuntu 10.10. I want to access root home directory (~) through GUI and want access to its content. I login from administrator who is the only login user and have all rights for it. I can access the content through terminal but can't do it through GUI. Remedy my problem (5 Replies)
Discussion started by: nixhead
5 Replies

7. Web Development

What is a root directory

Hey guys. I am learning PHP and I just started a few minutes ago and it said after you maked your first hello world php file to upload it to your root directory in your webserver. What is your root directory? Is it where like all the appearance of the website is held (like what we see when we enter... (6 Replies)
Discussion started by: orszhak
6 Replies

8. Linux

Linux Library symbolic link damaged

Hi, firstly I am not so familiar with linux and i think i have done some damage to the red hat server. It seems that now in command line I am unable to use any basic command whatsoever (ls, move, cp, bash, etc). I was trying to deploy an application and have changed the symbolic link (soft... (1 Reply)
Discussion started by: zaxx
1 Replies

9. UNIX for Dummies Questions & Answers

Removing directory with leading hyphen from root directory

I know that this basic question has been asked many times and solutions all over the internet, but none of the are working for me. I have a directory in the root directory, named "-p". # ls -l / total 198 <snip> drwxr-xr-x 4 root root 4096 Dec 3 14:18 opt drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: edstevens
2 Replies

10. Solaris

SunOS confusing root directory and user home directory

Hello, I've just started using a Solaris machine with SunOS 5.10. After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init). ... (2 Replies)
Discussion started by: egyassun
2 Replies
chroot(2)							System Calls Manual							 chroot(2)

NAME
chroot() - change root directory SYNOPSIS
DESCRIPTION
causes the named directory to become the root directory, the starting point for path searches for path names beginning with path points to a path name naming a directory. The user's working directory is unaffected by the system call. The entry in the root directory is interpreted to mean the root directory itself. Thus, cannot be used to access files outside the subtree rooted at the root directory. Security Restrictions The effective user ID of the process must be a user with the privilege to change the root directory. See privileges(5) for more information about privileged access on systems that support fine-grained privileges. RETURN VALUE
returns the following values: Successful completion. Failure. is set to indicate the error. ERRORS
fails and the root directory remains unchanged if one or more of the following is true: Any component of the path name is not a directory. The named directory does not exist or a component of the path does not exist. The effective user ID is not a user who has the privilege. path points outside the allocated address space of the process. The reliable detection of this error is implementation dependent. The length of the specified path name exceeds bytes, or the length of a component of the path name exceeds bytes while is in effect. Too many symbolic links were encountered in translating the path name. WARNINGS
Obsolescent Interfaces is to be obsoleted at a future date. SEE ALSO
chroot(1M), chdir(2), privileges(5). STANDARDS CONFORMANCE
TO BE OBSOLETED chroot(2)
All times are GMT -4. The time now is 02:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy