2024年3月12日发(作者:夏颉)
solaris系统挂载移动硬盘(详细版)
solaris系统挂载移动硬盘
一 格式化硬盘
solaris只支持fat和fat32,不支持ntfs,看一下你移动硬盘的磁盘格式。
先将硬盘格式化成fat32格式的。
方法之一:
把移动硬盘格式化成FAT32分区,解决在WINDOWS下不支持32G以上FAT32分区的问题,
解决在VISTA下无法格式化FAT32的问题。
1、 下载附件里的文件
2、 将解压到一个文件夹中,例如D: 中
3、 把移动硬盘与电脑连接,到磁盘管理中删除多动硬盘的分区。如G盘
4、 鼠标右击E盘,选新的分区,点击下一步,选择主区,空间,和磁盘G
5、 注意不要选NTFS分区,选择先不分区
6、 运行CMD命令,打开DOS command 到D: 中,输入 fat32format g ,g代表G盘
7、 屏幕出现提示Warning ALL data on drive 'g' will be lost irretrievably,are
you sure (y/n) :y 输入Y并回车
8、 开始分区,很快就会完成,提示格式化成功!
方法之二:
利用Partition Manager工具,可以直接解决。
方法之三:
在WINDOWS XP系统下,运行CMD命令,进入DOS模式,在C:下输入format 移动硬盘盘
符:/fs:fat32 回车即可。 如不太清楚可以输入 format /? 查看帮助。
我是采用的方法1,方法3太慢了,格式化前会检查,浪费时间。
具体过程:
将下载到的解压到d盘
然后进入cmd
D:>fat32format g
Warning ALL data on drive 'g' will be lost irretrievably, are you sure
(y/n) :y
Size : 500GB 976751937 sectors
512 Bytes Per Sector, Cluster size 32768 bytes
Volume ID is 1109:343b
32 Reserved Sectors, 119204 Sectors per FAT, 2 fats
15258023 Total clusters
15258022 Free Clusters
Formatting drive g:...
Clearing out 238504 sectors for Reserved sectors, fats and
Wrote 122114048 bytes in 6.02 seconds, 19.33 Megabytes/sec
Initialising reserved sectors
Done
500G的移动硬盘,不到5秒就格式化完毕了!
二、挂在移动硬盘
插入前
[email=root@dbcon]root@dbcon[/email] # ls /dev/usb
hid0 hid1 hub0
插入后
[email=root@dbcon]root@dbcon[/email] # ls /dev/usb
hid0 hid1 hub0 mass-storage0
[email=root@dbcon]root@dbcon[/email] # ls -l /dev/usb
total 8
lrwxrwxrwx 1 root root 50 Oct 8 16:42 hid0 ->
[email=../../devices/pci@1f,0/usb@c,3/keyboard@2:keyboard]../../devices/pci@1f,
0/usb@c,3/keyboard@2:keyboard[/email]
lrwxrwxrwx 1 root root 44 Nov 19 21:08 hid1 ->
[email=../../devices/pci@1f,0/usb@c,3/mouse@4:mouse]../../devices/pci@1f,0/usb@
c,3/mouse@4:mouse[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:42 hub0 ->
[email=../../devices/pci@1f,0/usb@c,3:devctl]../../devices/pci@1f,0/usb@c,3:dev
ctl[/email]
lrwxrwxrwx 1 root root 47 Dec 3 12:40
-> [b:b4329dbb45]mass-storage0[/b:b4329dbb45]
[b:b4329dbb45]../../devices/pci@1f,0/usb@c,3/storage@1[/b:b4329dbb45]:devctl
[email=root@dbcon]root@dbcon[/email] # ls -l /dev/dsk
total 48
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s0 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:a]../../devices/pci@1f,0/ide@d/dad@
0,0:a[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s1 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:b]../../devices/pci@1f,0/ide@d/dad@
0,0:b[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s2 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:c]../../devices/pci@1f,0/ide@d/dad@
0,0:c[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s3 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:d]../../devices/pci@1f,0/ide@d/dad@
0,0:d[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s4 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:e]../../devices/pci@1f,0/ide@d/dad@
0,0:e[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s5 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:f]../../devices/pci@1f,0/ide@d/dad@
0,0:f[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s6 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:g]../../devices/pci@1f,0/ide@d/dad@
0,0:g[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s7 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:h]../../devices/pci@1f,0/ide@d/dad@
0,0:h[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s0 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:a]../../devices/pci@1f,0/ide@d/sd@1,
0:a[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s1 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:b]../../devices/pci@1f,0/ide@d/sd@1,
0:b[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s2 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:c]../../devices/pci@1f,0/ide@d/sd@1,
0:c[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s3 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:d]../../devices/pci@1f,0/ide@d/sd@1,
0:d[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s4 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:e]../../devices/pci@1f,0/ide@d/sd@1,
0:e[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s5 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:f]../../devices/pci@1f,0/ide@d/sd@1,
0:f[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s6 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:g]../../devices/pci@1f,0/ide@d/sd@1,
0:g[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s7 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:h]../../devices/pci@1f,0/ide@d/sd@1,
0:h[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 [b:b4329dbb45]c1t0d0s0[/b:b4329dbb45] ->
[b:b4329dbb45]../../devices/pci@1f,0/usb@c,3/storage@1[/b:b4329dbb45]/disk@0,0:
a
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s1 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:b]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:b[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s2 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:c]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:c[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s3 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:d]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:d[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s4 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:e]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:e[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s5 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:f]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:f[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s6 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:g]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:g[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s7 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:h]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:h[/email]
由以上可见,Solaris系统已识别硬盘了。但mount的多次都不行,都提示
mount: /dev/dsk/c1t0d0s0 is not a DOS filesystem.只好老实查man了。
最后:
[email=root@dbcon]root@dbcon[/email] # mount -F pcfs /dev/dsk/c1t0d0s0:c /mnt
[email=root@dbcon]root@dbcon[/email] #
[email=root@dbcon]root@dbcon[/email] # df -h
total 100
/dev/dsk/c1t0d0s0:c 466G 96K 466G 1% /mnt
/dev/md/dsk/d30 39G 2.1G 37G 6% /opt
/dev/dsk/c2t2d0s7 67G 55G 11G 83% /home1
/dev/dsk/c3t0d0s2 269G 169G 100G 64% /eyou
挂载成功
结束!
[email=root@dbcon]root@dbcon[/email] # umount /mnt
关键点是
:c 表示pcfs(dos文件系统)的第一个分区,
如果盘上只有一个分区的话也就是他了,
如果移动硬盘有多个分区的话,依次就是 :c, :d, :e .......
总结:
1、将移动硬盘格式化成fat32格式
2、插上移动硬盘,然后ls -l /dev/usb,看是否发现usb设备。
3、在/etc/dsk里查询到usb对应的设备名称(ls -l /dev/dsk)
4、monunt -F pcfs /dev/dsk/c1t0d0s0:c /mnt
2024年3月12日发(作者:夏颉)
solaris系统挂载移动硬盘(详细版)
solaris系统挂载移动硬盘
一 格式化硬盘
solaris只支持fat和fat32,不支持ntfs,看一下你移动硬盘的磁盘格式。
先将硬盘格式化成fat32格式的。
方法之一:
把移动硬盘格式化成FAT32分区,解决在WINDOWS下不支持32G以上FAT32分区的问题,
解决在VISTA下无法格式化FAT32的问题。
1、 下载附件里的文件
2、 将解压到一个文件夹中,例如D: 中
3、 把移动硬盘与电脑连接,到磁盘管理中删除多动硬盘的分区。如G盘
4、 鼠标右击E盘,选新的分区,点击下一步,选择主区,空间,和磁盘G
5、 注意不要选NTFS分区,选择先不分区
6、 运行CMD命令,打开DOS command 到D: 中,输入 fat32format g ,g代表G盘
7、 屏幕出现提示Warning ALL data on drive 'g' will be lost irretrievably,are
you sure (y/n) :y 输入Y并回车
8、 开始分区,很快就会完成,提示格式化成功!
方法之二:
利用Partition Manager工具,可以直接解决。
方法之三:
在WINDOWS XP系统下,运行CMD命令,进入DOS模式,在C:下输入format 移动硬盘盘
符:/fs:fat32 回车即可。 如不太清楚可以输入 format /? 查看帮助。
我是采用的方法1,方法3太慢了,格式化前会检查,浪费时间。
具体过程:
将下载到的解压到d盘
然后进入cmd
D:>fat32format g
Warning ALL data on drive 'g' will be lost irretrievably, are you sure
(y/n) :y
Size : 500GB 976751937 sectors
512 Bytes Per Sector, Cluster size 32768 bytes
Volume ID is 1109:343b
32 Reserved Sectors, 119204 Sectors per FAT, 2 fats
15258023 Total clusters
15258022 Free Clusters
Formatting drive g:...
Clearing out 238504 sectors for Reserved sectors, fats and
Wrote 122114048 bytes in 6.02 seconds, 19.33 Megabytes/sec
Initialising reserved sectors
Done
500G的移动硬盘,不到5秒就格式化完毕了!
二、挂在移动硬盘
插入前
[email=root@dbcon]root@dbcon[/email] # ls /dev/usb
hid0 hid1 hub0
插入后
[email=root@dbcon]root@dbcon[/email] # ls /dev/usb
hid0 hid1 hub0 mass-storage0
[email=root@dbcon]root@dbcon[/email] # ls -l /dev/usb
total 8
lrwxrwxrwx 1 root root 50 Oct 8 16:42 hid0 ->
[email=../../devices/pci@1f,0/usb@c,3/keyboard@2:keyboard]../../devices/pci@1f,
0/usb@c,3/keyboard@2:keyboard[/email]
lrwxrwxrwx 1 root root 44 Nov 19 21:08 hid1 ->
[email=../../devices/pci@1f,0/usb@c,3/mouse@4:mouse]../../devices/pci@1f,0/usb@
c,3/mouse@4:mouse[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:42 hub0 ->
[email=../../devices/pci@1f,0/usb@c,3:devctl]../../devices/pci@1f,0/usb@c,3:dev
ctl[/email]
lrwxrwxrwx 1 root root 47 Dec 3 12:40
-> [b:b4329dbb45]mass-storage0[/b:b4329dbb45]
[b:b4329dbb45]../../devices/pci@1f,0/usb@c,3/storage@1[/b:b4329dbb45]:devctl
[email=root@dbcon]root@dbcon[/email] # ls -l /dev/dsk
total 48
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s0 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:a]../../devices/pci@1f,0/ide@d/dad@
0,0:a[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s1 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:b]../../devices/pci@1f,0/ide@d/dad@
0,0:b[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s2 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:c]../../devices/pci@1f,0/ide@d/dad@
0,0:c[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s3 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:d]../../devices/pci@1f,0/ide@d/dad@
0,0:d[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s4 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:e]../../devices/pci@1f,0/ide@d/dad@
0,0:e[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s5 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:f]../../devices/pci@1f,0/ide@d/dad@
0,0:f[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s6 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:g]../../devices/pci@1f,0/ide@d/dad@
0,0:g[/email]
lrwxrwxrwx 1 root root 38 Oct 8 16:41 c0t0d0s7 ->
[email=../../devices/pci@1f,0/ide@d/dad@0,0:h]../../devices/pci@1f,0/ide@d/dad@
0,0:h[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s0 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:a]../../devices/pci@1f,0/ide@d/sd@1,
0:a[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s1 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:b]../../devices/pci@1f,0/ide@d/sd@1,
0:b[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s2 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:c]../../devices/pci@1f,0/ide@d/sd@1,
0:c[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s3 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:d]../../devices/pci@1f,0/ide@d/sd@1,
0:d[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s4 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:e]../../devices/pci@1f,0/ide@d/sd@1,
0:e[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s5 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:f]../../devices/pci@1f,0/ide@d/sd@1,
0:f[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s6 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:g]../../devices/pci@1f,0/ide@d/sd@1,
0:g[/email]
lrwxrwxrwx 1 root root 37 Oct 8 16:41 c0t1d0s7 ->
[email=../../devices/pci@1f,0/ide@d/sd@1,0:h]../../devices/pci@1f,0/ide@d/sd@1,
0:h[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 [b:b4329dbb45]c1t0d0s0[/b:b4329dbb45] ->
[b:b4329dbb45]../../devices/pci@1f,0/usb@c,3/storage@1[/b:b4329dbb45]/disk@0,0:
a
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s1 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:b]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:b[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s2 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:c]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:c[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s3 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:d]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:d[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s4 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:e]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:e[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s5 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:f]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:f[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s6 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:g]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:g[/email]
lrwxrwxrwx 1 root root 51 Dec 3 12:14 c1t0d0s7 ->
[email=../../devices/pci@1f,0/usb@c,3/storage@1/disk@0,0:h]../../devices/pci@1f
,0/usb@c,3/storage@1/disk@0,0:h[/email]
由以上可见,Solaris系统已识别硬盘了。但mount的多次都不行,都提示
mount: /dev/dsk/c1t0d0s0 is not a DOS filesystem.只好老实查man了。
最后:
[email=root@dbcon]root@dbcon[/email] # mount -F pcfs /dev/dsk/c1t0d0s0:c /mnt
[email=root@dbcon]root@dbcon[/email] #
[email=root@dbcon]root@dbcon[/email] # df -h
total 100
/dev/dsk/c1t0d0s0:c 466G 96K 466G 1% /mnt
/dev/md/dsk/d30 39G 2.1G 37G 6% /opt
/dev/dsk/c2t2d0s7 67G 55G 11G 83% /home1
/dev/dsk/c3t0d0s2 269G 169G 100G 64% /eyou
挂载成功
结束!
[email=root@dbcon]root@dbcon[/email] # umount /mnt
关键点是
:c 表示pcfs(dos文件系统)的第一个分区,
如果盘上只有一个分区的话也就是他了,
如果移动硬盘有多个分区的话,依次就是 :c, :d, :e .......
总结:
1、将移动硬盘格式化成fat32格式
2、插上移动硬盘,然后ls -l /dev/usb,看是否发现usb设备。
3、在/etc/dsk里查询到usb对应的设备名称(ls -l /dev/dsk)
4、monunt -F pcfs /dev/dsk/c1t0d0s0:c /mnt