LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 924|回复: 8

求助:安装LFS时,关于磁盘的类型错误问题

[复制链接]
发表于 2004-9-10 10:08:43 | 显示全部楼层 |阅读模式
我的磁盘是这样的CDEF,后来F盘被分成了2个10G,一个安装了OPENDESKTOP,另一个格式化成了NTFS格式,我决定用NTFS的盘用来安装LFS。
结果在LINUX下,我用mke2fs /dev/hda8来格式化了NTFS格式的盘,然后开始安装LFS。一切都很顺利,最后到了重新启动了,结果发现:
在GRUB命令下:
grub> root (hd0,
Possible partitions are:
   Partition num: 0,  Filesystem type is fat, partition type 0xc
   Partition num: 4,  Filesystem type is fat, partition type 0xc
   Partition num: 5,  Filesystem type is fat, partition type 0xc
   Partition num: 6,  Filesystem type unknown, partition type 0x82
   Partition num: 7,  Filesystem type unknown, partition type 0x7
   Partition num: 8,  Filesystem type is ext2fs, partition type 0x83

grub> root (hd0,7)
Filesystem type unknown, partition type 0x7

/dev/hda8竟然还是表现为NTFS格式,这样无法重新启动。
而且在WIN2000下,用PQMAGIC来看的时候,此盘的属性还是EXT2FS格式。

下面是在LINUX下用FDISK察看的结果:

[root@alex mnt]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1275  10241406    c  Win95 FAT32 (LBA)
/dev/hda2          1276      9728  67898722+   f  Win95 Ext'd (LBA)
/dev/hda5          1276      3825  20482843+   c  Win95 FAT32 (LBA)
/dev/hda6          3826      7012  25599546    c  Win95 FAT32 (LBA)
/dev/hda7          8287      8319    265041   82  Linux swap
/dev/hda8          7013      8286  10233373+   7  HPFS/NTFS
/dev/hda9          8320      9728  11317761   83  Linux

Partition table entries are not in disk order


各位大侠,我该怎么作才能把/dev/hda8变成Linux格式的?
发表于 2004-9-10 11:11:42 | 显示全部楼层
fdisk /dev/hda

然后用t命令,改第8分区为83。
 楼主| 发表于 2004-9-10 11:29:58 | 显示全部楼层
这个我做过,可是总是出现设备忙的情况。实际上我早就把它umount了,而且在fstab中也删除了,重新启动N次了。

[root@alex bin]# fdisk /dev/hda8
                                                                                          
The number of cylinders for this disk is set to 1273.
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)
                                                                                          
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83
                                                                                          
Command (m for help): w
The partition table has been altered!
                                                                                          
Calling ioctl() to re-read partition table.
                                                                                          
WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@alex bin]#
 楼主| 发表于 2004-9-10 11:30:47 | 显示全部楼层
我的FSTAB:

LABEL=/                 /                       ext3    defaults        1 1
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda7               swap                    swap    defaults        0 0
none                    /mnt/cdrom supermount        dev=/dev/cdrom,fs=iso9660,ro,--,iocharset=cp936,umask=0 0 0
none                    /mnt/floppy supermount        dev=/dev/fd0,fs=vfat:ext2,--,iocharset=cp936,sync,umask=0 0 0
#/dev/hda8              /mnt/lfs                ext3    defaults        0 0
发表于 2004-9-10 11:41:42 | 显示全部楼层
修改后,重启系统就可以了。
 楼主| 发表于 2004-9-10 11:53:53 | 显示全部楼层
这两天已经启动好多次了,还是没用。
发表于 2004-9-10 11:59:30 | 显示全部楼层
你是要改分区8,,不是改分区1,,看清楚。:):)。。

[root@alex bin]# fdisk /dev/hda8

The number of cylinders for this disk is set to 1273.
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)

Command (m for help): t
Selected partition 1 (这个地方!)
Hex code (type L to list codes): 83

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@alex bin]#
 楼主| 发表于 2004-9-10 15:55:15 | 显示全部楼层
在LINUX下面始终说此盘繁忙,一咬牙在WIN2000里面用PM删除后重新格式化成EXT2FS,重新回到LINUX,重新复制备份。
重新启动后终于成功。

感谢版主大人!!!

不过又有了新问题,以后在慢慢请教吧。

呵呵,ETH0在启动是不认识,在关机时也不认识。
发表于 2004-9-10 20:36:16 | 显示全部楼层
呵呵,,,:):)。。。
把你的网卡驱动加入kernel
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表