China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 16:30
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Why can't IO.SYS and MSDOS.SYS be copied with COPY anymore? View 3,038 Replies 21
Original Poster Posted 2003-06-28 00:00 ·  中国 北京 联通
初级用户
Credits 218
Posts 23
Joined 2003-06-22 00:00
23-year member
UID 5710
Gender Male
Status Offline
Today I used COPY to copy system files from a CD to the hard disk. I hadn't done this before, and unexpectedly found that IO.SYS and MSDOS.SYS on the source disk were not copied to the target disk. When I tried to COPY these two files separately, it still didn't work, and it said "Access denied opening file IO.SYS MSDOS.SYS". Can someone help me!
Floor 2 Posted 2003-06-28 00:00 ·  中国 台湾 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
Use the ATTRIB -h -r -s command to change the file attributes and that'll do it~~
For example: to change the attributes of the msdos.sys file, just use this command
ATTRIB -h -r -s c:\msdos.sys
Then you can copy it~
MSN:tiqit2@hotmail.com
Floor 3 Posted 2003-06-28 00:00 ·  中国 北京 联通
初级用户
Credits 218
Posts 23
Joined 2003-06-22 00:00
23-year member
UID 5710
Gender Male
Status Offline
Thanks for the reply, but the system tells me I can't use ATTRIB, it's an external DOS command. Do I need to download this ATTRIB file????
Floor 4 Posted 2003-06-28 00:00 ·  中国 台湾 台南市 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
Here, attrib is here, download it and use it~
Also, please don't post duplicate threads next time, it's annoying to look at~
Open attachment
MSN:tiqit2@hotmail.com
Floor 5 Posted 2003-06-28 00:00 ·  中国 北京 联通
初级用户
Credits 218
Posts 23
Joined 2003-06-22 00:00
23-year member
UID 5710
Gender Male
Status Offline
Thanks
Floor 6 Posted 2003-06-28 00:00 ·  中国 台湾 台南市 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
You're welcome...
MSN:tiqit2@hotmail.com
Floor 7 Posted 2003-06-28 00:00 ·  中国 黑龙江 哈尔滨 联通
高级用户
★★
Credits 830
Posts 233
Joined 2002-11-29 00:00
23-year member
UID 364
Gender Male
Status Offline
┃ \\\\//// ┃通缉:杨小邪 特点:贼丑
┃ (-●●-) ┃年龄:刚成年 性别:男
┃ \ / ┃罪名:长的丑/总想见网友
┃ \︶/ ┃犯罪事实:吓死一片~
Floor 8 Posted 2003-06-28 00:00 ·  中国 湖北 武汉 江夏区 电信
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Hehe.... what's the use of copy?
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 9 Posted 2003-06-28 00:00 ·  中国 台湾 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
He only said he wanted to copy files....
MSN:tiqit2@hotmail.com
Floor 10 Posted 2003-06-28 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
The following is quoted from tikan's post at 2003-6-28 16:09:22:
Today I used COPY to copy system files from a CD to the hard disk. I had never done that before, and unexpectedly found that IO.SYS  MSDOS.SYS on the source disc were not copied to the target disk. When I tried to COPY these two files separately, it still didn't work, and it prompted “Access denied opening file IO.SYS MSDOS.SYS ”. Can someone help me!


This shows that these two files are on the hard disk, and their attributes are read-only, hidden, and system. There is no need to copy them from the CD to the hard disk anymore! If you want to check whether these two files are on the hard disk, you can use
1。dir/a This command can display files with all kinds of attributes.
2。attrib Without any parameters, it can display the attributes of each file.

Also, if the hard disk does not have these two files, it cannot boot from the hard disk. And simply copying these two files from the CD to the hard disk is no use either! You must use the sys command to transfer these two files to the hard disk! Because these two files (mainly IO.sys, I think) must be placed in some special place on the hard disk; putting them elsewhere is useless. And the SYS command can accurately transfer these two files to a specific place on the hard disk.

Of course, if when copying other files you run into “Access denied opening file”, you can use the above method and use attrib to change the file attributes first, then copy them.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 11 Posted 2003-06-28 00:00 ·  中国 北京 联通
初级用户
Credits 218
Posts 23
Joined 2003-06-22 00:00
23-year member
UID 5710
Gender Male
Status Offline
ko20010214, I really have to thank you. Please explain how to use SYS—what is the exact format? Do I need to add the file name after SYS???
Floor 12 Posted 2003-06-28 00:00 ·  中国 北京 联通
初级用户
Credits 218
Posts 23
Joined 2003-06-22 00:00
23-year member
UID 5710
Gender Male
Status Offline
ko20010214, I understand now, and I've already succeeded!!
Actually I'm installing a NEC PC9821 computer. I'm copying the system disk from the CD onto the hard disk. The machine's DOS is MS-DOS5.0A-H, a very unusual DOS version, and it's been giving me a headache. I'm also not very familiar with DOS, but after fiddling with it for a few days, I find that I'm starting to like DOS. Maybe I'll be asking you for advice again in the future! Hope you won't mind giving me some guidance!
Floor 13 Posted 2003-06-28 00:00 ·  中国 台湾 台北市 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
The following is quoted from tikan's post at 2003-6-28 21:16:46:
ko20010214, I understand now, and I've already succeeded!!
Actually I'm installing a NEC PC9821 computer. I'm copying the system disk from the CD onto the hard disk. The machine's DOS is MS-DOS5.0A-H, a very unusual DOS version, and it's been giving me a headache. I'm also not very familiar with DOS, but after fiddling with it for a few days, I find that I'm starting to like DOS. Maybe I'll be asking you for advice again in the future! Hope you won't mind giving me some guidance!

NEC 9821?? That's really old?? Can you still buy one now??
MSN:tiqit2@hotmail.com
Floor 14 Posted 2003-06-28 00:00 ·  中国 台湾 台北市 远传电信
元老会员
★★★★★
Credits 8,312
Posts 3,551
Joined 2003-03-22 00:00
23-year member
UID 1225
Gender Male
Status Offline
I want one as a collectible....
MSN:tiqit2@hotmail.com
Floor 15 Posted 2003-06-29 00:00 ·  中国 北京 联通
初级用户
Credits 218
Posts 23
Joined 2003-06-22 00:00
23-year member
UID 5710
Gender Male
Status Offline
The 9821 really is old!
And now there's another problem. I also copied the PC9821-specific WIN98 system files onto the hard disk, and I handled IO.SYS and MSDOS.SYS the way everyone said. But after I rebooted, a new problem came up. After the memory check finished, DOS started booting. After the DOS version was shown, a line of Japanese appeared below. The rough meaning is that the DOS versions are different, so program writing was terminated. Then it hangs. Can anyone help me analyze what the reason is???
Forum Jump: