由买买提看人间百态

topics

全部话题 - 话题: filesystem
1 2 3 4 5 6 7 8 下页 末页 (共8页)
E*******r
发帖数: 2710
1
最近接手了一个Amazon EC2 instance 外加一个8G的Volume
这个filesystem看起来很奇怪
$ df -ah
Filesystem Size Used Avail Use% Mounted on
rootfs 7.8G 1.4G 6.4G 17% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devtmpfs 3.7G 60K 3.7G 1% /dev
devpts 0 0 0 - /dev/pts
tmpfs 3.6G 0 3.6G 0% /dev/shm
/dev/xvda1 7.8G 1.4G 6.4G 17% /
none 0 0 0 - /proc/sys/fs/binfmt_misc
两个filesystem: r... 阅读全帖
S*******C
发帖数: 822
2
来自主题: JobHunting版 - amazon 面试题Create a class for filesystem
面筋中一道OO的题,Create a class for filesystem.当时就狂汗,基本没准备OO的题
,后来他提示,感觉是要说filesystem里面有文件和folder, folder还有subfolder
要有个结构指向sub folder一类的。
这个怎么做
t***5
发帖数: 832
3
【 以下文字转载自 Linux 讨论区 】
发信人: take5 (NotAvailable), 信区: Linux
标 题: 怎样mount另一个Linux server的filesystem
发信站: BBS 未名空间站 (Mon Jan 7 12:30:10 2013, 美东)
Two linux servers both running Red Hat 6.
One (linux1) has /dev/sdb1 mounted on /data1, another (linux2) has /dev/sdb2
mounted on /data2. How to make two filesystems available to both servers?
tried something like
http://etutorials.org/Linux+systems/red+hat+linux+bible+fedora+
Thought this should be a simple task. But using the command on linux1
mount l... 阅读全帖
S*A
发帖数: 7142
4
来自主题: Linux版 - NAS用什么filesystem比较好
zfs can't link with in GPL code.
Pretty much the only file system don't exist on Linux.
But their is a zfs like filesystem under development in
Linux kernel.
S*A
发帖数: 7142
5
来自主题: Linux版 - NAS用什么filesystem比较好
If they use kernel API then it will break the zfs license.
Kernel is GPL. The ZFS license is designed to screw Linux.
There is no way around it.
Here quote from wiki:
It does not yet implement ZPL layer, thus it's not possible to use it as a
filesystem. Though it does implement user space virtual block device (vdev)
creation through it's ZVOL interface.
t***5
发帖数: 832
6
Two linux servers both running Red Hat 6.
One (linux1) has /dev/sdb1 mounted on /data1, another (linux2) has /dev/sdb2
mounted on /data2. How to make two filesystems available to both servers?
tried something like
http://etutorials.org/Linux+systems/red+hat+linux+bible+fedora+
Thought this should be a simple task. But using the command on linux1
mount linux2:/data2 /data2
didn't work. Any idea?
Thanks!
c******a
发帖数: 10623
7
网络工作正常。
前天这台client正常。 昨天早上来
发现很多窗口没了,说swap有问题,于是Reboot, 在
Mounting NFS filesystems 打住了,
抱错说: NFS portmap: Port Mapper failure
- RPC: Timed out
并不断重试抱错。
以为是server的问题,于是就去Reboot, 抱同样
的错 (这个server好象本身也设置成了一个client,
所以也mount),用ctrl+c跳过后能正常使用,
用PC 或 unix client mechine (跳过mount) 也可以
romote login。 但是就是unix文件共享有问题,
请问是什么问题,该怎么办?? 谢谢
x**********u
发帖数: 22
8
来自主题: Unix版 - 问题:mount remote filesystem
Tried to cross mount filesystem from SGI O2 to SGI
Octane.
原因"没有许可
m****s
发帖数: 18160
9
【 以下文字转载自 CS 讨论区 】
发信人: ecfbs (wlec4bs), 信区: CS
标 题: Microsoft-funded PhD opportunity (software/ system verification)
发信站: BBS 未名空间站 (Fri Apr 12 13:40:39 2013, 美东)
Microsoft Research PhD studentship: Future Filesystems
======================================================
Project: Future filesystems: mechanized specification, validation,
implementation and verification of filesystems
Supervisors: Tom Ridge (with Andrew Kennedy at Microsoft Research)
Application deadline: 2013-06-02 (June 2nd)
... 阅读全帖
h*********d
发帖数: 336
10
来自主题: JobHunting版 - 大牛帮我看一段code
phone interview, 实现一个in-memory filesystem. 刚开始面试,还没有摸到门路,
请大牛指点
Write an in memory filesystem! This is a simplified file system that only
supports directories. Your code needs to read from a file and parse the
commands listed below.
cd - Changes the current working directory. The working
directory begins at '/'. The special characters '.' should not modify the
current working directory and '..' should move the current working directory
to the parent.
mkdir - Creates a new dire... 阅读全帖
t****t
发帖数: 6806
11
来自主题: Hardware版 - 鼓捣nfs失败
man 5 exports
nohide This option is based on the option of the same
name provided in IRIX NFS. Normally, if a
server exports two filesystems one of which is
mounted on the other, then the client will
have to mount both filesystems explicitly to
get access to them. If it just mounts the
parent, it will see an empty directory at the
place where the other filesystem is mounted... 阅读全帖
E*V
发帖数: 17544
12
☆─────────────────────────────────────☆
nickmit (上海老姜) 于 (Wed Oct 27 01:52:51 2010, 美东) 提到:
先建个临时目录
# mkdir -p /tmp/ubuntu/maverick
没有 debootstrap 的先安装一下
# apt-get install debootstrap
然后构建基本系统,这里就用 10.10 吧,你也可以换 lucid
# debootstrap maverick /tmp/ubuntu/rootfs
基本设置一下
# chroot /tmp/ubuntu/rootfs
# mount -t proc none /proc
# mount -t devtmpfs none /dev
# mount -t devpts none /dev/pts
# mount -t sysfs none /sys
俺喜欢给 root 加个密码,sudo... 阅读全帖
x****o
发帖数: 21566
13
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/
author Maisa Roponen <[email protected]
/* */> 2014-11-24 07:54:17 (
GMT)
committer Jonathan Corbet <[email protected]
/* */> 2014-11-24 14:40:35 (GMT)
commit 690b0543a813b0ecfc51b0374c0ce6c8275435f0 (patch)
tree afff985a0c48f307ae3752735eb6aa7d1da5c649
parent 1f999d14fc7f772fbdd19151ebe5ee081f53dd49 (diff)
Documentation: fix formatting to make 's' happy
"That letter [the last s] is sad because all t... 阅读全帖
i*******D
发帖数: 993
14
我这个机器的信息如下。是不是 clock: 200MHz这个就是前端总线?网上说那些名厂
的主板都可以通过刷bios来支持c2d。但是是不是这个compaq的机器即便fsb达到也未必
能支持呢?这个cpu风扇是动态调速的。是不是我可以通过软件超频?据说现在的这个
e2140 1.6g的超频潜力很大。推荐个32bit xp下的好的超频软件吧
vendor: Compaq-Presario
serial: CNX73820C1
width: 64 bits
capabilities: smbios-2.4 dmi-2.4 vsyscall64 vsyscall32
configuration: boot=normal chassis=desktop family=103C_53316J sku=
GV441AA#ABA uuid=60DB6B46-6867-DC11-A856-BA20FD11AB6D
*-core
description: Motherboard
product: Livermore8
ven... 阅读全帖
s*****n
发帖数: 513
15
来自主题: Hardware版 - POGOPLUG安装squeeze出错
U盘已经格式化成以下两个分区:
Disk /dev/sda: 4004 MB, 4004511744 bytes
246 heads, 16 sectors/track, 1987 cylinders
Units = cylinders of 3936 * 512 = 2015232 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 509 1001704 83 Linux
/dev/sda2 510 1987 2908704 82 Linux swap
然后按照http://projects.doozan.com/debian/的步骤安装debian,
报错说:
# Starting debootstrap installation
E: unrecognized or invalid option --no-check-gpg
debootstrap failed.
See ... 阅读全帖
k****n
发帖数: 119
16
来自主题: Linux版 - archlinux没法升级
有很长时间没升级了,今天装个东西说glibc太旧了,就pacman -Syu升吧,结果总说什么
error: failed to commit transaction (conflicting files)
systemfile:/bin exists in filesystem
systemfile:/sbin exists in filesystem
systemfile:/usr/bin exists in filesystem
之类的。
网上搜说是几年前一次升级改了系统结构https://www.archlinux.org/news/binaries
-move-to-usrbin-requiring-update-intervention/),需要
pacman -Syu --force filesystem,bash
可是仍然没用。是不是要重装了?
s*****n
发帖数: 513
17
来自主题: Linux版 - POGOPLUG安装squeeze出错 (转载)
【 以下文字转载自 Hardware 讨论区 】
发信人: slinson (slinson), 信区: Hardware
标 题: POGOPLUG安装squeeze出错
发信站: BBS 未名空间站 (Tue Jul 28 08:39:56 2015, 美东)
U盘已经格式化成以下两个分区:
Disk /dev/sda: 4004 MB, 4004511744 bytes
246 heads, 16 sectors/track, 1987 cylinders
Units = cylinders of 3936 * 512 = 2015232 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 509 1001704 83 Linux
/dev/sda2 510 1987 2908704 82 Linux swap
然后按照http://projects.doozan.com/... 阅读全帖
h*****4
发帖数: 4219
18
来自主题: Programming版 - Hadoop写入的主流框架有哪些?
现在公司里用来向Hadoop写入的框架是13年搭建的,有很多限制,比如要把JSON转成
POJO再用FileSystem写入,麻烦太多。
现在我重新搞了下,可以直接把JSON用FileSystem写入。不过如果AVRO里面定义了type
是union的话就会报错说数据定义不匹配。比如{"name":"age", "type":[null, "int"]
, "default":null} 这样的话{"age":12}, {"age":null} 都报错。
现在想问两个问题:
1. 有没有业界流行的框架能直接把JSON写入到Hadoop,就不用走FileSystem那一套?
2. 如果没有很好的框架,继续用FileSystem写,有没有办法处理union的问题?
谢谢大家!

发帖数: 1
19
6.6. The buffer cache
Reading from a disk is very slow compared to accessing (real) memory. In
addition, it is common to read the same part of a disk several times during
relatively short periods of time. For example, one might first read an e-
mail message, then read the letter into an editor when replying to it, then
make the mail program read it again when copying it to a folder. Or,
consider how often the command ls might be run on a system with many users.
By reading the information from di... 阅读全帖
S*A
发帖数: 7142
20
来自主题: Hardware版 - 求推荐路由器

一看你这种就是文件系统不懂得如何 mmap 是如何实现的。
你不知道 swapping 就是 mmap 到 swapfs 的 page cache
flushing 的过程啊?
和我争论 filesystem 你是撞枪口上了。
随便抛个 link 你自己读读吧。
http://www.tldp.org/LDP/lki/lki-4.html
You can probably guess what the address_space_operations methods do by
virtue of their names alone; nevertheless, they do require some explanation.
Their use in the course of filesystem data I/O, by far the most common path
through the pagecache, provides a good way of understanding them. Unlike
most other UNIX-like operating ... 阅读全帖
t****t
发帖数: 6806
21
来自主题: Hardware版 - 鼓捣nfs失败
also...
crossmnt
This option is similar to nohide but it makes
it possible for clients to move from the
filesystem marked with crossmnt to exported
filesystems mounted on it. Thus when a child
filesystem "B" is mounted on a parent "A",
setting crossmnt on "A" has the same effect as
setting "nohide" on B.
N**********d
发帖数: 9292
22
df -h显示了很多分区
Filesystem Size Used Avail Use% Mounted on
rootfs 837M 620M 217M 75% /
/dev/root 837M 620M 217M 75% /
devtmpfs 948M 540K 947M 1% /dev
/tmp 948M 124K 948M 1% /tmp
shmfs 948M 6.9M 941M 1% /dev/shm
/dev/sda1 5.7G 568M 4.9G 11% /mnt/stateful_partition
/dev/sda1 5.7G 568M 4.9G 11% /var
/dev/sda1 5.7G 568M 4.9G 11% /home
/dev/sda1 ... 阅读全帖
D***h
发帖数: 78
23
Arch Linux? pacman的极乐世界?
%pacman -S links
:: The following packages should be upgraded first :
pacman
:: Do you want to cancel the current operation
:: and upgrade these packages now? [Y/n] y
resolving dependencies...
looking for inter-conflicts...
Targets (14): linux-api-headers-3.3.2-1 glibc-2.15-10 libarchive-3.0.4-1
ca-certificates-20120212-1 libssh2-1.4.2-1 curl-7.26.0-1
pth-2.0.7-4 libksba-1.2.0-1 libassuan-2.0.3-1
pinentry-0.8.1-3.1 dir... 阅读全帖
n******7
发帖数: 12463
24
来自主题: Programming版 - linux 能查到 deleted file list 吗
google一下啦
我帮你google了一下
http://superuser.com/questions/530104/how-to-find-which-files-a

"Pretty much impossible" This is just plain wrong and because of this I have
to downvote this. Deletion times are stored in some filesystems, example of
such fs is ext3 filesystem. ext3grep might help when hunting down. I got
superuser.com/a/433785/132604 that has some information and links to
utilities that could be used to find (possibly recover too) deleted files
and information about them. When you del... 阅读全帖
os
发帖数: 81
25
来自主题: Security版 - GmailFS
GmailFS provides a mountable Linux filesystem which
uses your Gmail account as its storage medium. GmailFS
is a Python application and uses the FUSE userland
filesystem infrastructure to help provide the filesystem,
and libgmail to communicate with Gmail.

GmailFS supports
p****t
发帖数: 11416
26
【 以下文字转载自 Hardware 讨论区 】
【 原文由 piglet 所发表 】
妙用Cache优化Windows 2000}
{ Cache通称高速缓存,它可以提高速度较快的设备与速度较慢的设备之间的传输速率。
如果善于利用Cache,便可以极小的代价提升你计算机系统性能。方法如下:
请大家注意:这里设置的Cache大部分都是物理内存,只有电脑内存在128MB以上效果才
能比较明显,否则有可能弄巧成拙!
一、硬盘
单击“开始→运行”,命令中输入“REGEDIT”并回车,打开注册表编辑器。依次进入H
KEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Filesystem,鼠标右键点击“
Filesystem”,在弹出的快捷菜单中选“新建→二进制值”,然后双击右边窗口中新建
的“新值 #1”,在弹出的窗口中将数值名称改为“Pathcache”、数值数据设为“00 0
F 00 00”。
依照上述方法,再用鼠标右键点击“Filesystem”,新建一个名为“Namecache”的二进
制值,并赋值为“00 0F 00 00”。
最后
d****o
发帖数: 1055
27
有两个类
class File{
};

Class FileSystem{
Private:
vector files;

};
Class FileSystem{
Private:
vector files;

};
这里最好用指针还是对象本身?大牛来讲解一下。
h****e
发帖数: 928
28
可能pointer更好吧,这样FileSystem和File之间可以decouple。
在FileSystem.h里,只要声明class File;就可以了,不需要include
"File.h"。
h**********l
发帖数: 410
29
来自主题: JobHunting版 - apple or oracle?
what do you mean?
有点郁闷,oracle只给了108k,其他的可以忽略不计。我今天问recruiter可不可以加
到112k(因为他以前说过fresh master最高这个价)。我觉得可能oracle的这个组确实
比apple的组好,apple的毕竟偏硬件,是os以下的level(interact with os,
filesystem,和hardware groups),而且是mobile device,oracle的毕竟是os以上的
level(interact with os,filesystem,network,security groups),是network
based storage software,是不是oracle的更有前途和积累的技能更有用???
但是105k的RSU,每年25%, 等于前4年是120k+26k=146k啊,oracle只有108k(就算给我
加到112k,也没涨啥。。。),差别略大啊。。。哪个更值得呢?
h*********d
发帖数: 336
30
来自主题: JobHunting版 - 大牛帮我看一段code
另外, 我写了个main to do test, 写的比较糙,是不是这样parse command不好啊?
public static void main(String[] args){
FileSystem fs = FileSystem.getInstance();
File file = new File("C:/JobHunting/input.txt");
try {
BufferedReader br = new BufferedReader(new FileReader(file));
String line = new String();
while ((line = br.readLine()) != null) {
String[] command = line.split(" ");
if (command[0].equals("mkdir")) {
fs.createDirctory(command[1]);
} else if (command[0].equals("cd")) {
fs.changeWorkingDir(command[1]);
} else... 阅读全帖
f**********t
发帖数: 1001
31
来自主题: JobHunting版 - 一道dropbox面试题
自己先写点抛砖引玉好了,还没写完
#!/usr/bin/python
# -*- coding: utf-8 -*-
import os
import sys
from collections import defaultdict
from os.path import join, getsize
# Write a basic file system and implement the commands ls, pwd, mkdir ,
# create, rm, cd, cat, mv.
class TreeNode:
def __init__(self, name, isDir):
self.name = name
self.children = defaultdict()
self.isDir = isDir
class FileSystem(object):
def __init__(self):
self.root = TreeNode("", True)
self.cur = ... 阅读全帖

发帖数: 1
32
来自主题: JobHunting版 - Google Japan电面
国内大三下学生,投了Google Japan 求RP, 感觉是跪了。
此外,求大神们内推,邮箱christopherwuy at gmail.com
简介: C > C++ = PHP > Python = R
Contributor of WineHQ, had sent more than 50 patches about VC++ runtime(
msvcr/msvcp). Some of them are the implementation of tr2::Filesystem
Library, tests of tr2::Threads and implementation of complex istream and
ostream::operator.
See http://goo.gl/Rn8eaW
Accepted by Google Summer Of Code 2015, project is implementing Filesystem
functions from tr2 namespace on Wine.
我的简历在LinkedIn:h... 阅读全帖
a*u
发帖数: 301
33
Recently another method of storing ISO images have been created, letting you
store your ISO images onto a FAT filesystem.
This means you no longer need to partition your drive to have a WBFS
filesystem.
You just have to convert your ISO images into .wbfs files and store them in
a folder named wbfs on the root of your USB device.
You can use Wii Backup Manager to accomplish this.
Currently only Configurable USB loader & USB Loader GX support FAT
partitions.
转成WBFS格式了吗?还是USB Loader GX版本太低。
p*****i
发帖数: 1281
34
来自主题: Apple版 - 五国,包子求助
就那么几个包子,送完为止。。。
Tue Jan 11 16:22:12 2011
panic(cpu 0 caller 0x2aab55): Kernel trap at 0x0049a20e, type 14=page fault,
registers:
CR0: 0x8001003b, CR2: 0x5ef72bf0, CR3: 0x00100000, CR4: 0x00000660
EAX: 0x0f088b7c, EBX: 0x5ef72bbc, ECX: 0x021f0000, EDX: 0x0ee7fe80
CR2: 0x5ef72bf0, EBP: 0x83b2be78, ESI: 0x00000000, EDI: 0x12605b58
EFL: 0x00010202, EIP: 0x0049a20e, CS: 0x00000008, DS: 0x0d0f0010
Error code: 0x00000000
Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
0x83b2bc48... 阅读全帖
N******7
发帖数: 1297
35
最近需要用Photoshop,所以先从adobe下载一个最新的装上试一试。没想到装不上。选完各项后一开始安装就说error (10)错。log里说文件系统不对"Unsupported filesystem"。网上查了查,说是不支持case sensitive的filesystem,或不是local的或不能写。我仔细看了我的硬盘,系统盘不是case sensitive的,可写,而且是local的呀。还有什么别的可能?有人碰到这种情况吗?
n****i
发帖数: 1772
36
os版本是什么?

选完各项后一开始安装就说error
(10)错。log里说文件系统不对"Unsupported filesystem"。网上查了查,说是不支持
case sensitive的filesystem,或不
是local的或不能写。我仔细看了我的硬盘,系统盘不是case sensitive的,可写,而
且是local的呀。还有什么别的可能?
有人碰到这种情况吗?
f********h
发帖数: 798
37
是正版OS么?偶的雪豹可以安装的

选完各项后一开始安装就说error (10)错。log里说文件系统不对"Unsupported
filesystem"。网上查了查,说是不支持case sensitive的filesystem,或不是local的
或不能写。我仔细看了我的硬盘,系统盘不是case sensitive的,可写,而且是local
的呀。还有什么别的可能?有人碰到这种情况吗?
t****t
发帖数: 6806
38
filesystem (ext*/ntfs) is only meaningful in local. on network it is
presented by whatever network protocol, such as samba or nfs. local
filesystem doesn't matter.

样?
x*z
发帖数: 1010
39
来自主题: Hardware版 - Pogoplug Pro当NAS速度是可以上20M的
ft,偶老不常看review,不过偶老原来工作就是负责benchmarking,performance
optimization,跟vendor compete world records之类的。现在工作角色变了,但是
还是有10~30%的分量。这个盘子现在已经快满了,不是做benchmarking的料了,随便
测了测(无优化),另外这个记错了一点,不是WD,是Maxtor Onetouch
root@moo:# df -i /dev/sde
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sde 110655152 521408 110133744 1% /media/bar
root@moo:# df -h /dev/sde
Filesystem Size Used Avail Use% Mounted on
/dev/sde 466G 440G 27G 95% /media/bar
root@moo:# d... 阅读全帖
S*A
发帖数: 7142
40
来自主题: Hardware版 - 求助,carbon x1 第一代换大ssd
你个大SB, 我不就是指出了你以前说了几个和实际情况不符合的
东西,至于这么耿耿于怀吗?
你都没有明白 LZ 的难处在哪里就乱喷。 我的理解是(LZ 可以指正
我说的对不对),LZ 只有一个电脑(x1)有那个 AFF 接口,所以新的
硬盘如果直接插到x1 就没法从 AFF 硬盘启动,因为必须通过X1的 AFF
往硬盘里面写东西。所以难处不是你的 DOS 做的创建 GPT partition,
是没有 USB 启动的 OS 的话没法往 AFF 硬盘写东西的问题。
所以如果 Windows 在 USB 上面启动有困难,那么用 USB LiveCD
是很合理而且可以走下来的一个选择。当然不会是唯一的选择。
至于你的 DOS 做 GPT,根本不解决 LZ 的问题。
你看我已经尽量忍住不喷你的不精确的地方了,既然你点名了我
就再顺带说一下把。
:啥时候USB能boot了?就是USB live CD也是先写到RAM的
USB 一直都是可以 boot 的。USB Live CD 不需要写到 RAM 再
boot。 写到 RAM 的是启动以后在 readonly filesystem上面
overla... 阅读全帖
u**n
发帖数: 44
41
来自主题: Hardware版 - 求推荐路由器
Yes, user mode filesystem is a good suggestion. But I guess it's not tightly
coupled with kernel mm right? and it's not convenient to add printk in mm
module for debugging purpose. Do you have any suggestion of debugging/
tracing mm module? I have been working on network and drivers, but not mm
and filesystems.
Thanks.
m**********g
发帖数: 434
42
来自主题: Linux版 - how to make iso file in Linux?
tried, got this:
Warning: creating filesystem that does not conform to ISO-9660.
Warning: creating filesystem with Joliet extensions but without Rock Ridge
extensions. It is highly recommended to add Rock Ridge.
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage 1.1.9 (Linux)
genisoimage: Missing pathspec.
Usage: genisoimage [options] -o file directory ...
Use genisoimage -help
to get a list of valid options.
Report problems to d***********[email protected]
y*****a
发帖数: 171
43
cat /proc/filesystems|grep fuse
cat /proc/filesystems|grep ntfs
any results?
g***l
发帖数: 2753
44
这个是我现在的磁盘空间,那个第一个/dev/mapper/VolGroup00-LogVol00 是个什么东
西啊?怎么把他给清理干净啊?
我有一个mysql的数据库在这个机器上跑,感觉很快就被塞满了。谢谢了。
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
8063408 7645844 7964 100% /
/dev/mapper/VolGroup00-LogVol02
1773912 172840 1510960 11% /home
/dev/sda6 194442 18927 165476 11% /boot
tmpfs 1037096 96 1037000 1% /dev/shm
Filesystem
wy
发帖数: 14511
45
"Modern Linux filesystem(s) keep fragmentation at a minimum by
keeping all blocks in a file close together, even if they can't be
stored in consecutive sectors. Some filesystems, like ext3, effectively
allocate the free block that is nearest to other blocks in a file.
Therefore it is not necessary to worry about fragmentation in a
Linux system."
x
m*********n
发帖数: 28
46
ok i found a way to work around this problem now.
after resume, do the following steps:
1. unbind the raid controller device:
echo -n "1:0:0:0" | tee /sys/bus/scsi/drivers/sd/unbind
you can get the device's pci number 1:0:0:0 from /sys/device/... there are
other ways to do it. forgot how i got it already... :-|
and sd in scsi/drivers/sd stands for sd*, the harddrive device
this step is to make the clear out the busy flag(?not sure if this is true)
on device /dev/sda1
2. bid the raid controll... 阅读全帖
D**a
发帖数: 757
47
来自主题: Linux版 - 求助, XFS盘出问题了。
我的NAS突然之间就当机了, 好像是ROM或者FIRMWARE出了问题,HDD读不出了。 NAS是
个LINUX BASED的盒子,我把硬盘去了出来, 接到了我的VM上,现在是如下情况, 请
问该如何处理? HDD上是所有的照片和文档, 不能格式化。是下面那个1T的盘。
To run a command as administrator (user "root"), use "sudo ".
See "man sudo_root" for details.
lbblmm@lbblmm-VirtualBox:~$ xfs_repair
Usage: xfs_repair [options] device
Options:
-f The device is a file
-L Force log zeroing. Do this as a last resort.
-l logdev Specifies the device where the external log resides.
-m maxmem ... 阅读全帖
y**b
发帖数: 10166
48
来自主题: Linux版 - 紧急求助lvm分区毁坏的问题
首次parted /dev/dm-2
print显示的是:
Model: linux device-mapper (linear) (dm)
disk /dev/dm-2: 12.2TB
sector size: 512B/512B
partition table: loop
number start end size filesystem flags
1 0.00B 12.2TB 12.2TB ext4
mklabel gpt之后print显示的是:
Model: linux device-mapper (linear) (dm)
disk /dev/dm-2: 12.2TB
sector size: 512B/512B
partition table: gpt
number start end size filesystem flags
y****i
发帖数: 156
49
来自主题: Programming版 - Find and delete folder in C++
You can use boost filesystem
check
http://www.boost.org/doc/libs/1_39_0/libs/filesystem/doc/index.htm
1 2 3 4 5 6 7 8 下页 末页 (共8页)