[问题]新手请教如何屏蔽掉一个硬盘

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
speedfly
帖子: 7
注册时间: 2008-03-14 23:11

[问题]新手请教如何屏蔽掉一个硬盘

#1

帖子 speedfly » 2008-03-17 2:05

我刚开始接触ubuntu,也是第一次使用linux系统,以后不免要麻烦大家了

我的机器有两块硬盘,一块SATA,一块IDE,SATA装的XP系统,IDE上是ubuntu,我想在ubuntu中屏蔽掉那快SATA硬盘,也就是不能操作SATA硬盘上的东西,防止误操作,最好是默认进ubuntu的时候就能屏蔽掉,然后可以随时再打开,不知道可不可行,呵呵,本来我想在CMOS中关掉,可是我的主板比较老,只能屏蔽掉IDE硬盘,不能在保留IDE通道的情况下屏蔽SATA,所以就问问能不能通过ubuntu系统中的功能实现,先谢谢大家了
头像
carbont
帖子: 3406
注册时间: 2007-11-22 10:20
来自: 北京

#2

帖子 carbont » 2008-03-17 2:34

那个……应该是去看看mount方面的命令吧?!!
lenovo Thinkpad R60i 0657 LHC
windowsXP……准备换回ubuntu了。

Twitter: @carbont
littleUbuntu
帖子: 1103
注册时间: 2006-10-19 9:02

#3

帖子 littleUbuntu » 2008-03-17 2:51

不挂载即可,sudo gedit /etc/fstab,将里面的不挂载的硬盘最前面加一个#,保存退出。
头像
qiang_liu8183
论坛版主
帖子: 10699
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

#4

帖子 qiang_liu8183 » 2008-03-17 2:53

不让SATA自动挂载即可,需要时手动挂载
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
speedfly
帖子: 7
注册时间: 2008-03-14 23:11

#5

帖子 speedfly » 2008-03-17 3:18

不挂载的话在文件浏览器里还是能看到那块硬盘的分区的,双击后就挂载了,还是可以操作的,不挂载SATA如何操作,如果不让SATA启动应该也是可以的。

这么晚了还有人回答,好高兴的说
头像
carbont
帖子: 3406
注册时间: 2007-11-22 10:20
来自: 北京

#6

帖子 carbont » 2008-03-17 3:47

我是小白,回答了也只是帮顶而已……
lenovo Thinkpad R60i 0657 LHC
windowsXP……准备换回ubuntu了。

Twitter: @carbont
头像
林葭一
帖子: 120
注册时间: 2007-04-16 15:34

#7

帖子 林葭一 » 2008-03-17 9:16

修改/etc/fstab,设置only read 挂载
speedfly
帖子: 7
注册时间: 2008-03-14 23:11

#8

帖子 speedfly » 2008-03-18 1:35

林葭一 写了:修改/etc/fstab,设置only read 挂载
意思是改成只读是么?
speedfly
帖子: 7
注册时间: 2008-03-14 23:11

#9

帖子 speedfly » 2008-03-18 1:42

我没有设置自动挂载,/etc/fstab是不是没有那块硬盘的信息的?这样的话怎么让那块硬盘在ubuntu里消失呢
tsenable
帖子: 19
注册时间: 2007-10-10 2:53

#10

帖子 tsenable » 2008-03-18 1:56

if you hard disk is sata,you mount is /dev/sda(x)
If you hard disk is IDE ,you mount is /dev/hda(x)

x = you hard disk number.

if you think un startup you sata hard disk,then you input in the "umount /dev/sda1" .

--------------------------------------------------------------------------------------------------------------------------
alt+F2-> gnome-terminal->"umount /dev/sda1"->OK

umount /dev/sda1

"sda1"is you sata HD is you HD for NO.1
"hda1"is you IDE HD is you HD for NO.1
"sda(x)"is you IDE HD is you HD for NO.x[/list]
speedfly
帖子: 7
注册时间: 2008-03-14 23:11

#11

帖子 speedfly » 2008-03-18 2:08

tsenable 写了:if you hard disk is sata,you mount is /dev/sda(x)
If you hard disk is IDE ,you mount is /dev/hda(x)

x = you hard disk number.

if you think un startup you sata hard disk,then you input in the "umount /dev/sda1" .

--------------------------------------------------------------------------------------------------------------------------
alt+F2-> gnome-terminal->"umount /dev/sda1"->OK

umount /dev/sda1

"sda1"is you sata HD is you HD for NO.1
"hda1"is you IDE HD is you HD for NO.1
"sda(x)"is you IDE HD is you HD for NO.x[/list]
Thanks,but sata HD still display /home,i want to sata HD no display
tsenable
帖子: 19
注册时间: 2007-10-10 2:53

#12

帖子 tsenable » 2008-03-18 3:52

speedfly 写了:
tsenable 写了:if you hard disk is sata,you mount is /dev/sda(x)
If you hard disk is IDE ,you mount is /dev/hda(x)

x = you hard disk number.

if you think un startup you sata hard disk,then you input in the "umount /dev/sda1" .

--------------------------------------------------------------------------------------------------------------------------
alt+F2-> gnome-terminal->"umount /dev/sda1"->OK

umount /dev/sda1

"sda1"is you sata HD is you HD for NO.1
"hda1"is you IDE HD is you HD for NO.1
"sda(x)"is you IDE HD is you HD for NO.x[/list]
Only one,isolation sata HD to Pc connection!!!


Thanks,but sata HD still display /home,i want to sata HD no display
tsenable
帖子: 19
注册时间: 2007-10-10 2:53

#13

帖子 tsenable » 2008-03-18 3:53

Only one,isolation sata HD to Pc connection!!!
tsenable
帖子: 19
注册时间: 2007-10-10 2:53

#14

帖子 tsenable » 2008-03-18 3:55

Oh,i can see Chinese,but my computer not Chinese plug.

Pleas you input Chinese.
speedfly
帖子: 7
注册时间: 2008-03-14 23:11

#15

帖子 speedfly » 2008-03-19 0:43

tsenable 写了:Oh,i can see Chinese,but my computer not Chinese plug.

Pleas you input Chinese.
我还以为你是懂中文的老外呢,呵呵
tsenable 写了:Only one,isolation sata HD to Pc connection!!!
其实设成只读倒也可以,不过我挂载后在/etc/fstab里面把SATA硬盘设成RO后还是可以写入,具体应该怎么设置呢。
回复