惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threatpost
V
Vulnerabilities – Threatpost
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
P
Proofpoint News Feed
G
GRAHAM CLULEY
S
Securelist
P
Palo Alto Networks Blog
MongoDB | Blog
MongoDB | Blog
A
Arctic Wolf
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
WordPress大学
WordPress大学
Project Zero
Project Zero
T
Threat Research - Cisco Blogs
L
Lohrmann on Cybersecurity
C
Cyber Attacks, Cyber Crime and Cyber Security
F
Fortinet All Blogs
博客园 - 叶小钗
B
Blog RSS Feed
C
Cisco Blogs
Google DeepMind News
Google DeepMind News
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
K
Kaspersky official blog
D
Docker
Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
T
Tor Project blog
Cyberwarzone
Cyberwarzone
Security Latest
Security Latest
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
C
Check Point Blog
J
Java Code Geeks
Simon Willison's Weblog
Simon Willison's Weblog
T
Tenable Blog
Recent Announcements
Recent Announcements
T
Tailwind CSS Blog
H
Help Net Security
L
LINUX DO - 热门话题
T
The Exploit Database - CXSecurity.com
Jina AI
Jina AI
S
SegmentFault 最新的问题
MyScale Blog
MyScale Blog
NISL@THU
NISL@THU
美团技术团队
腾讯CDC

博客园 - pipisong

Caused by: org.apache.catalina.LifecycleException错误的处理 (转帖)HTTP协议 (转帖)网站微信登录-python 实现 (转帖)工程師的缺德行為:叫朋友去學C/C++ (转帖)修改 Linux 主机名 (转帖)oracle 10g中的几个概念(sid/db_name/server_name) (转帖)rman中改变控制文件的备份路径 (转帖)修改ORACLE自动归档目录 (转帖) oracle是否归档模式及修改模式 (转帖) Oracle实例恢复(Oracle instance recovery) 硬盘分区表知识——详解硬盘MBR(转) 关于RAID与SCSI的一些基本概念(转) USB安裝XP的方法<转> SATA光驱GHOST系统的解决办法《转帖》 snmputil是个很有意思的东东 更新一下 Windows XP自动登录设置 06年国庆长假最后一天有感 06年6月17日子夜有感
<转贴>使用NTFS的连接点移动Document and Setting
pipisong · 2006-03-28 · via 博客园 - pipisong

由于Windows使用documents and settings存储了大量内容,单纯使用profile的方法不能够移走documents and settings 目录,因为很多动态库在注册表中记录了documents and settings 目录的绝对位置。

  当2000,xp,2k3中的ntfs5多了一个新特性,就是连接点,可以象linux下面那样直接mount一个分区到一个ntfs5的目录上,也可以在ntfs5上生成一个目录或者文件的符号连接这里有两个命令可以使用,一个是 mountvol (这个命令是windows 自带的),就是mount一个分区到一个

ntfs的目录上,而且只能mount分区,另一个命令是linkd.exe,是windows的资源工具箱中的,可以在微软下载:http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&DisplayLang=en。这个命令可以把 ntfs分区上的 document and setting 目录 映射到另一个分区的某个目录。

  使用 mountvol 的方法:
  首先运行mountvol,获得需要mount的卷名称,如

   \\?\Volume{ef2c5830-890a-11d8-9112-806e6f6e6963}\
C:\
\\?\Volume{ef2c5831-890a-11d8-9112-806e6f6e6963}\
D:\
\\?\Volume{ef2c5832-890a-11d8-9112-806e6f6e6963}\
E:\


  假设系统在c盘,要把documents and settings目录移动到D盘然后 写下如下的脚本

xcopy "c:\documents and settings"  D:\   /S /E /H
ren "c:\documents and settings"  "c:\documents and settings.bak"
md  "c:\documents and settings"
mountvol  "c:\documents and settings"   \\?\Volume{ef2c5831-890a-11d8-9112-806e6f6e6963}\

  把如下的脚本放到开机脚本去运行,输入“gpedit.msc”后回车,打开组策略编辑器。依次展开“计算机管理→Windows设置→脚本(启动/关闭)”,双击启动项,然后添加,然后重新启动,这样 你的"c:\documents and settings" 就被定向到 D盘了。ps: 上面的开机脚本 只要执行一次,冲启动后,记住 删除该脚本。

  使用 linkd.exe的方法:优于mountvol的方面是: linkd 可以把"c:\documents and settings" 目录 映射到d盘的某个目录,而不是d盘。

  linkd 的命令很简单 :用下面的命令替换前面脚本中 mountvol的部分就可以了,xcopy需要相应的修改,其他不变

linkd "c:\documents and settings"  d:\xxxxxxxxx