linux下怎么检测u盘读写速度

linux下怎么检测u盘读写速度,第1张

可以用的有:

hdparm --offset N -t /path/to/device (这只能测读)

$ time { dd if=/dev/zero of=/file/on/device bs=1M count=100sync}

$ time { cp /tmp/100m.urandom /file/on/devicesync}

上面的可以测写,bs和count可以改。

还可以用

bonnie

图形化的有

palimpsest (gnome的)

hd0,0和sda1是一回事,前一种说法用于系统引导,后一种说法用于系统运行。windows系统会很流氓的强行占据第一个分区,所以你的win7应该是装在hd0,0 suse我没用过,不过linux大同小异,你先开控制台,然后用su命令提升权限,然后 gedit /boot/grub/grub.cfg 加几行就可以

title win7

rootnoverify (hd0,0)

chainloader +1

如果你想默认进入win7系统,只需要在最前面再加几行

timeout = 5

default = 1

这样就完美了

万一你的win7不是安装在hd0,0

把palimpsest命令的运行结果给我

看看以下命令,fdisk,够清楚了吧。

[root@vpn ~]# fdisk /dev/cciss/c0d0p3

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the previous

content won't be recoverable.

The number of cylinders for this disk is set to 68207.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): m

Command action

a toggle a bootable flag

b edit bsd disklabel

c toggle the dos compatibility flag

d delete a partition

l list known partition types

m print this menu

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change a partition's system id

u change display/entry units

v verify the partition table

w write table to disk and exit

x extra functionality (experts only)

Command (m for help): p

Disk /dev/cciss/c0d0p3: 284.9 GB, 284964825600 bytes

255 heads, 32 sectors/track, 68207 cylinders

Units = cylinders of 8160 * 512 = 4177920 bytes

Device Boot Start End Blocks Id System

Command (m for help): q

[root@vpn ~]#


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/7124051.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-01
下一篇 2023-04-01

发表评论

登录后才能评论

评论列表(0条)

保存