Editing
FreeBSD Reference
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Remove a dir which can’t be deleted normally (problems in lost+found) = When trying to delete a dir: <pre>jail14 /usr/home/user# rm /mnt/data2/69.55.228.247-col01550-DIR/lost+found/* override rw------- 4294967295/255 uappnd,uchg,opaque,uunlnk for /mnt/data2/69.55.228.247-col01550-D IR/lost+found/#336682? y rm: /mnt/data2/69.55.228.247-col01550-DIR/lost+found/#336682: Operation not permitted</pre> Which leads to: <pre>Fatal trap 12: page fault while in kernel mode cpuid = 2; apic id = 06 fault virtual address = 0x1c fault code = supervisor write, page not present instruction pointer = 0x20:0x4059b6db stack pointer = 0x28:0x70df8a40 frame pointer = 0x28:0x70df8a68 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 81839 (rm) trap number = 12 panic: page fault cpuid = 2 Uptime: 2d10h32m15s Cannot dump. No dump device defined. Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... cpu_reset: Stopping other CPUs</pre> do an <tt>ls -li /</tt>: <pre>jail14 /mnt/data2/69.55.228.247-col01550-DIR# ls -li . total 52 197064 -rw-r--r-- 2 root wheel 801 Apr 25 19:12 .cshrc 200046 -rw-r--r-- 2 root wheel 251 Apr 25 19:12 .profile 3 drwxrwxr-x 2 root operator 512 Jun 15 2006 .snap 2481 -r--r--r-- 1 root wheel 6196 Apr 25 19:12 COPYRIGHT 211968 drwxr-xr-x 2 root wheel 1024 Apr 25 18:56 bin 70656 drwxr-xr-x 5 root wheel 512 Apr 25 19:12 boot 94208 dr-xr-xr-x 2 root wheel 512 Jun 16 2006 dev 235520 drwxr-xr-x 18 root wheel 2048 Jul 3 14:43 etc 2483 lrwxrwxrwx 1 root wheel 8 Jun 16 2006 home -> usr/home 2479 -rwxr--r-- 1 root wheel 124 Jul 3 22:04 jc_traffic_dump 2482 lrwxr-xr-x 1 root wheel 8 Jun 16 2006 kernel -> dev/null 117760 drwxr-xr-x 3 root wheel 1024 Apr 25 18:55 lib 23552 drwxr-xr-x 2 root wheel 512 Apr 25 18:55 libexec 12177 drwx------ 2 88 wheel 2048 Apr 25 20:54 lost+found 248232 drwxr-xr-x 2 root wheel 512 Apr 25 18:54 media 47104 drwxr-xr-x 2 root wheel 512 Jun 16 2006 mnt 141312 dr-xr-xr-x 2 root wheel 512 Jun 16 2006 proc 164864 drwxr-xr-x 2 root wheel 2560 Apr 25 18:55 rescue 188416 drwxr-xr-x 2 root wheel 512 Apr 25 19:12 root 141313 drwxr-xr-x 2 root wheel 2560 Apr 25 18:56 sbin 2320 lrwxr-xr-x 1 root wheel 11 Apr 25 18:54 sys -> usr/src/sys 164865 drwxrwxrwt 8 root wheel 1024 Jul 3 20:24 tmp 188417 drwxr-xr-x 17 root wheel 512 Jul 3 14:16 usr 2308 drwxr-xr-x 22 root wheel 512 Jul 2 04:37 var</pre> Do: clri /dev/concat/v67v68a 12177 now, <tt>fsck</tt> (no -y) <pre>UNALLOCATED I=12177 Owner=root MODE=0 SIZE=0 Mtime=dec 31 16:00 1969 NAME=/lost+found REMOVE? [yn] y LINK COUNT DIR I=2 OWNER=root MODE=40755 SIZE=512 MTIME=Apr 25 19:12 2007 COUNT 19 SHOULD BE 18 ADJUST? [yn] y UNREF FILE I=304812 OWNER=1701015141 MODE=62523 SIZE=0 Mtime=dec 31 16:00 1969 RECONNECT? [yn] n</pre> (no to the reconnects, and yes to the other stuff) <pre>FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? [yn] y</pre> (salvage freed space) OR, forget the above and just: tar -c --exclude lost+found -pPz -f /mnt/data1/temp/760.tgz * cd [new dir] tar -xpPBzf /mnt/data1/temp/760.tgz
Summary:
Please note that all contributions to JCWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
JCWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information