A. 望大侠们告诉我下linux中id号为83 82 2各代表什么文件系统谢谢!!!
使用“fdisk 磁盘名”命令可以进入fdisk交互模式,交互模式下输入 “i”,就能查看各个id
数字表示何种含义:
83 Linux 表示linux下挂载的磁盘
82 Linux swap / So 表示swap交换分区
2 XENIX root XENIX系统
B. linux fdisk 分区last cylinder是什么意思
Linux系统由于数据累计增长、前期存储规划不合理等诸多因素,出现存储不够用的情况时,此时就需要扩展逻辑分区或添加新的逻辑分区。下面介绍一下通过使用fdsik添加新的逻辑分区。
首先使用df命令检查文件系统的磁盘空间占用情况
[root@DB-ONE-SERVER~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-sda3
30G 2.4G 26G 9% /
/dev/sda1 99M 23M 71M 25% /boot
tmpfs 4.0G 0 4.0G 0% /dev/shm
You have new mail in /var/spool/mail/root
然后使用fdisk -l查看分区表信息
[root@DB-ONE-SERVER~]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 5221 41833260 8e Linux LVM
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/dm-0: 32.3 GB, 32346472448 bytes
255 heads, 63 sectors/track, 3932 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-0 doesn't contain a valid partition table
Disk /dev/dm-1: 10.4 GB, 10468982784 bytes
255 heads, 63 sectors/track, 1272 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/dm-1 doesn't contain a valid partition table
fdisk命令参数介绍
p、打印分区表。
n、新建一个新分区。
d、删除一个分区。
m、输出菜单
q、退出不保存。
w、把分区写进分区表,保存并退出。
[root@DB-ONE-SERVER~]# fdisk /dev/sdb
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 2610.
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/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-2610, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-2610, default 2610):
Using default value 2610
Command (m for help): p
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 2610 20964793+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@DB-ONE-SERVER~]# fdisk -l /dev/sdb
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 2610 20964793+ 83 Linux
使用 mkfs.ext4 命令格式化磁盘成格式化成ext4各式的文件系统。
[root@DB-ONE-SERVER~]# mkfs.ext4 /dev/sdb1
mke4fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
1310720 inodes, 5241198 blocks
262059 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
160 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune4fs -c or -i to override.
系统启动时自动挂载/dev/sdb1,编辑/etc/fstab文件,指定挂载目录为/u02
[root@DB-ONE-SERVER~]# vi /etc/fstab
/dev/VolGroup00/sda3 / ext3 defaults 1 1
/dev/sdb1 /u02 ext4 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/VolGroup00/sda4 swap swap defaults 0 0
~
[root@DB-ONE-SERVER~]# cd /
[root@DB-ONE-SERVER/]# mkdir u02
[root@DB-ONE-SERVER/]# mount -a
[root@DB-ONE-SERVER/]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-sda3
30G 2.4G 26G 9% /
/dev/sda1 99M 23M 71M 25% /boot
tmpfs 4.0G 0 4.0G 0% /dev/shm
/dev/sdb1 20G 172M 19G 1% /u02
[root@DB-ONE-SERVER/]#
下面来看看虚拟上Linux的添加新的逻辑分区的步骤,其实操作是一样的,只是顺带介绍一下虚拟机如何添加硬盘
[root@oracle_server ~]# fdisk -l
Disk /dev/sda: 584.6 GB, 584646328320 bytes
255 heads, 63 sectors/track, 71079 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 19441 156151808 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 19441 44937 204796672 83 Linux
Partition 2 does not end on cylinder boundary.
/dev/sda3 44937 57685 102398336 83 Linux
Partition 3 does not end on cylinder boundary.
/dev/sda4 57685 71080 107595584 5 Extended
Partition 4 does not end on cylinder boundary.
/dev/sda5 57685 70433 102398336 83 Linux
/dev/sda6 70433 70949 4144768 82 Linux swap
/dev/sda7 70949 71080 1052288 83 Linux
Disk /dev/sdb: 146.1 GB, 146156158976 bytes
2 heads, 24 sectors/track, 5947109 cylinders
Units = cylinders of 48 * 512 = 24576 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 3 5947064 142729472 83 Linux
[root@oracle_server ~]#
C. 如何查看linux服务器上有几块磁盘
使用df命令即可查看。
df 是来自于coreutils 软件包,系统安装时,就自带的;我们通过这个命令可以查看磁盘的使用情况以及文件系统被挂载的位置;
示例:
[root@localhost ~]# df -l
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 4956316 3565088 1135396 76% /
tmpfs 241320 12 241308 1% /dev/shm
/dev/sda6 4806904 2523708 2039012 56% /media/disk
/dev/sda1 4956284 3529796 1170656 76% /media/_
/dev/sda5 4845056 2581484 2019388 57% /media/disk-1
说明:Linux系统的分区格式使用的是xyzN的格式,xy表示的是硬盘类型,如上面的执行结果,sd表示是SCSI硬盘,z表示的是硬盘序号,第一块硬盘是a,第二块硬盘是b,所以要查询Linux系统上有几块硬盘,只要注意这一点即可。N表示的是分区号。
显然,示例中的Linux系统只有一块硬盘。
D. linux 65安装jdk怎么配置环境变量
这种问题还悬赏,说明你还是个菜鸟,网络大神免费用,解决方法多的是。
E. docker centos65 7使用哪个比较好
$ yum install docker
安装过程中报错:
Transaction check error:
file /usr/lib/systemd/system/blk-availability.service from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/sbin/blkdeactivate from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
file /usr/share/man/man8/blkdeactivate.8.gz from install of device-mapper-7:1.02.107-5.el7_2.2.x86_64 conflicts with file from package lvm2-7:2.02.105-14.el7.x86_64
解决办法:
$yum install libdevmapper* -y
再次运行:
$yum install docker
3.检查安装是否成功
$docker version
若输出了 Docker 的版本号,说明安装成功了,可通过以下命令启动 Docker 服务:
4. $service docker start
一旦 Docker 服务启动完毕,就可以开始使用 Docker 了。
F. AMD处理器上装什么版本的linux系统最快
给你看下排行榜,然后给你推荐一个版本的
排名 发行版 关注度
1 Ubuntu 2536
2 PCLinuxOS 2514
3 openSUSE 1425
4 Fedora 1284
5 Sabayon 1196
6 Mint 1013
7 Debian 1005
8 MEPIS 868
9 Mandriva 750
10 Damn Small 667
11 Slackware 585
12 CentOS 549
13 Gentoo 510
14 KNOPPIX 471
15 Zenwalk 463
16 Kubuntu 451
17 Puppy 425
18 Arch 390
19 Dreamlinux 372
20 Vector 369
21 Freespire 355
22 FreeBSD 354
23 six 297
24 Elive 274
25 Xubuntu 271
26 Ubuntu Studio 269
27 SLAX 267
28 Red Hat 261
29 Ubuntu CE 243
30 PC-BSD 226
31 DesktopBSD 220
32 SAM 209
33 Xandros 195
34 Nexenta 184
35 Foresight 184
36 64 Studio 174
37 Yoper 166
38 Frugalware 165
39 Absolute 165
40 Pioneer 164
41 BackTrack 155
42 Fluxbuntu 145
43 GeeXboX 144
44 Yellow Dog 142
45 Solaris 138
46 Scientific 132
47 Pars 131
48 linuX-gamers 131
49 OpenBSD 129
50 Wolvix 120
51 DragonFly 112
52 Linspire 105
53 KateOS 105
54 KANOTIX 105
55 GParted 105
56 Ark 105
57 Novell SLE 101
58 Musix 99
59 SystemRescue 96
60 SmoothWall 88
61 MCNLive 88
62 GoblinX 87
63 SaxenOS 86
64 Linux XP 86
65 VideoLinux 85
66 Parsix 85
67 IPCop 85
68 Berry 83
69 FreeNAS 80
70 DeLi 80
71 ClarkConnect 80
72 NetBSD 77
73 LFS 75
74 Feather 75
75 Lunar 74
76 BLAG 74
77 SME Server 73
78 m0n0wall 73
79 ArtistX 70
80 Devil 68
81 CRUX 68
82 BeleniX 68
83 Helix 66
84 Granular 66
85 Turbolinux 65
86 Symphony OS 65
87 Ebuntu 65
88 AUSTRUMI 65
89 FoX Desktop 64
90 EnGarde 64
91 Skolelinux 63
92 Gentoox 63
93 Bluewhite64 63
94 dyne:bolic 62
95 LiveCD Router 61
96 aLinux 61
97 Vine 60
98 Pentoo 59
99 gNewSense 59
100 Ulteo 57
看完了排行榜我想你应该也知道我给你推荐的肯定是第一名ubuntu了,没错了,这个系统非常的不错的
G. linux中 文件属性以 l、b、c、d。开头的都是什么文件
“l”是链接文件,相当于windows的快捷方式;
“b”是块设备,硬盘就是一个例子;
“c”是字符设备文件,鼠标,键盘算是;
“d”是目录文件,相当于windows的文件夹。
H. linux centos 65系统安装怎么安装原来windows的c盘上
1、CentOS 65系统镜像有两个,安装系统只用到第一个镜,即CentOS-65-i386-bin-DVD1iso(32位)或者CentOS-65-x86_64-bin-DVD1iso(64位),第二个镜像是系统自带软件安装包; 2、安装CentOS 65系统的计算机内存必须等于或者大于628M(最小linux centos 65系统安装怎么安装原来windows的c盘上
I. 想安装 Linux,有什么版本可以推荐
上一篇文章我们介绍了rpm包管理之rpm命令管理,我们发现在使用rpm命令手动安装rpm包的时候,会发现安装遇到到的依赖让你痛不欲生,安装一个rpm时会要先先安装某个依赖的rpm,而安装这个依赖的rpm包是可能又必须先安装它所依赖的。在实际操作中,我们肯定是不会使用rpm命令手动安装软件包的,更简单的方法就是这篇文章我们将介绍RPM包管理——yum在线管理。
这是在远程的桌面显示的是中文信息,如果直接进入服务器查询,显示的便是英文,我们需要什么直接安装即可。
J. oracle linux65 glibc-devel包安装失败
用yum install