您的位置:首页 > 其它

ubuntu挂载移动硬盘

2012-03-05 13:47 549 查看
手动挂载移动硬盘和卸载硬盘;注意:是系统文件格式为“ntfs” 移动硬盘

准备:( 如果移动硬盘在windows操作系统下挂着的 请安全的移除移动硬盘。在到ubantu操作系统下 插入USB接口的移动硬盘。)打开 ”应用程序“ ->“附件“ ->“终端“ ok! 动手咯!

1.进入"/" ; : cd /

2.查看盘;:sudo fdisk -l

3.创建挂载点; sudo mkdir /media/disk

4.挂载了; sudo mount -t ntfs-3g /dev/sdb /media/disk -o force (本人菜鸟,找到的盘是“sdb“ 呵呵。。此时桌面出现一个有USB字样移动硬盘图标出现,并且还有硬盘的容量 我的是120GB。现在就可以用你的移动硬盘了)

5.卸载;sudo umount /dedia/disk(在桌面的硬盘图标消失了 当然是不需要用时才卸载。笨蛋才现在卸载。呵呵。。)

代码如下:

li@ubuntu:~$ cd /

li@ubuntu:/$ ls

bin cdrom etc initrd lib media opt root srv tmp var

boot dev home initrd.img lost+found mnt proc sbin sys usr vmlinuz

li@ubuntu:/$ fdisk -l

li@ubuntu:/$ sudo fdisk -l

Disk /dev/sda: 21.4 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x000c4ed0

Device Boot Start End Blocks Id System

/dev/sda1 * 1 2518 20225803+ 83 Linux

/dev/sda2 2519 2610 738990 5 Extended

/dev/sda5 2519 2610 738958+ 82 Linux swap / Solaris

Disk /dev/sdb: 120.0 GB, 120034123776 bytes

255 heads, 63 sectors/track, 14593 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x69205244

This doesn't look like a partition table

Probably you selected the wrong device.

Device Boot Start End Blocks Id System

/dev/sdb1 ? 13578 119522 850995205 7 HPFS/NTFS

Partition 1 does not end on cylinder boundary.

/dev/sdb2 ? 45382 79243 271987362 74 Unknown

Partition 2 does not end on cylinder boundary.

/dev/sdb3 ? 10499 10499 0 65 Novell Netware 386

Partition 3 does not end on cylinder boundary.

/dev/sdb4 167628 167631 25817+ 0 Empty

Partition 4 does not end on cylinder boundary.

Partition table entries are not in disk order

li@ubuntu:/$ ls

bin cdrom etc initrd lib media opt root srv tmp var

boot dev home initrd.img lost+found mnt proc sbin sys usr vmlinuz

li@ubuntu:/$ sudo mkdir /dedia/disk

mkdir: cannot create directory `/dedia/disk': No such file or directory

li@ubuntu:/$ sudo mkdir /media/disk

li@ubuntu:/$ ls media

cdrom cdrom0 disk floppy floppy0 sda8 sdb8 sub-hdd usb-disk

li@ubuntu:/$ sudo mount -t ntfs-3g /dev/sdb /media/disk -o force

li@ubuntu:/$ ls media/disk

Autorun.inf e_book Lingoes RECYCLER

bc7b0af0e6e7aeac626b098bbc Favorites movie soft

c_c++ initrd picture System Volume Information

drv java $RECYCLE.BIN

li@ubuntu:/$ sudo umount /media/disk

li@ubuntu:/$
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: