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