Những câu hỏi thường gặp về Linux
Some old Linux những bản phân phối have an entry for the root partition in [/etc/mtab] made in
[/etc/rc*] bởi using rdev. That is incorrectthe newer versions of mount do this automatically.
Some old những bản phân phối also have a line in [/etc/fstab] that looks like:
/dev/sdb1 /root ext2 defaults
The entry for
/root
should read simply
/
.
H: fdisk
kêu rằng, “
Partition X has different physical/logical...
”
Đ:
A If the partition number (X, above) is 1, this is the same problem as in
fdisk: Partition 1
does not start on cylinder boundary
.
If the partition begins or ends on a cylinder numbered greater than 1024, this is because the standard
DOS disk geometry information format in the partition table can’t cope with cylinder numbers with
more than 10 bits. You should see (“Làm thế nào để Linux làm việc với ổ đĩa của tôi?”)
H:
fdisk: Partition 1 does not start on cylinder boundary(Partition 1 không
bắt đầu tại biên cylinder)
Đ:
The version of fdisk that comes with many Linux systems creates partitions that fail its own validity
checking. Unfortunately, if you’ve already installed your system, there’s not much you can do about this,
apart from copying the data off the partition, deleting và remaking it, và copying the data back.
You can avoid the problem bởi getting the latest version of fdisk, from Rik Faith’s util-linux package
(available on all the usual FTP sites). Alternatively, if you are creating a new partition 1 that starts in the
first cylinder, you can do the following to get a partition that fdisk likes.
•
Create partition 1 in the normal way. A ‘
p
’ listing will produce the mismatch complaint.
•
Type u to set sector mode và do p again. Copy down the number from the
End
column.
•
Delete partition 1.
•
While still in sector mode, re-create partition 1. Set the first sector to match the number of sectors per
track. This is the sector number in the first line of the p output. Set the last sector to the value you
wrote down in the step above.
•
Type u to reset cylinder mode và continue with other partitions.
Ignore the message about unallocated sectors. They refer to the sectors on the first track apart from
the Master Boot Record, và they are not used if you start the first partition in track 2.
H: fdisk
nói Partition n có số sector lẻ
Đ:
The PC disk partitioning scheme works in 512-byte sectors, but Linux uses 1K blocks. If you have a
partition with an odd number of sectors, the last sector is wasted. Ignore the message.
67