请教个分区的问题

其他Linux/Unix/BSD/OSX等发行版讨论
回复
sluding
帖子: 70
注册时间: 2010-02-12 19:47

请教个分区的问题

#1

帖子 sluding » 2015-11-24 16:37

boot/ : Must be copied to a FAT32 partition
rootfs/ : Must be copied to an ext4 or btrfs partition

Be sure the SD card has got 3 partitions (boot, swap, root). The recommended partition sizes are 40Mb for /boot, 420Mb for swap and using all available free space for root. Then you simply have to run the install.sh script from the SliTaz Raspberry Pi release directory:

# ./install.sh

这是slitaz在树莓派上的安装教程,全文就这么一段,想了几天,有几个问题想不明白,求指教。

1、 教程要求把 boot/ 拷到 FAT32分区上,FAT32不是windows的分区格式么?我在ubuntu下安装怎么会有FAT32格式分区?

下面说要把 rootfs/ 拷到 ext4 分区,ext4 不是文件系统的格式么?对应的分区格式不是linux么?

太复杂一两句说不清楚的话受累给贴个合适的教程链接,谢谢。

2、我用 fdisk 把SD卡分成3个区了,怎么分别指定这3个分区为boot swap root?是在fdisk里选 t 修改分区的ID么?那 l 选项给出的ID列表里为什么只有 82,SWAP的ID,没有boot 和 root的ID。

3、用 mkfs 格式化分区,linux 分区是格成ext4,那FAT32分区格成什么? vfat么?
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 请教个分区的问题

#2

帖子 vickycq » 2015-11-24 16:56

1. 引导分区用 fat32 是 bootloader 的需求。
2. 不需要指定。boot root 指的是分区的用途。 boot 分区用于放置引导用文件,root 分区用于放置 rootfs,即Linux根文件系统
3. 指定 fat32 格式。需安装 dosfstools
上次由 vickycq 在 2015-11-24 17:00,总共编辑 1 次。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
sluding
帖子: 70
注册时间: 2010-02-12 19:47

Re: 请教个分区的问题

#3

帖子 sluding » 2015-11-24 16:59

用 mkfs(tab tab),给出的列表没有 fat32

y@y:~$ sudo mkfs
mkfs mkfs.ext2 mkfs.ext4dev mkfs.msdos
mkfs.bfs mkfs.ext3 mkfs.fat mkfs.ntfs
mkfs.cramfs mkfs.ext4 mkfs.minix mkfs.vfat
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 请教个分区的问题

#4

帖子 vickycq » 2015-11-24 17:04

sluding 写了:用 mkfs(tab tab),给出的列表没有 fat32
y@y:~$ sudo mkfs
mkfs mkfs.ext2 mkfs.ext4dev mkfs.msdos
mkfs.bfs mkfs.ext3 mkfs.fat mkfs.ntfs
mkfs.cramfs mkfs.ext4 mkfs.minix mkfs.vfat
sorry,那个指的是 gparted。
用 mkdosfs -F 32 或 mkfs.fat -F 32
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 请教个分区的问题

#5

帖子 poloshiao » 2015-11-24 17:28

用 mkfs(tab tab),给出的列表没有 fat32
y@y:~$ sudo mkfs
mkfs mkfs.ext2 mkfs.ext4dev mkfs.msdos
mkfs.bfs mkfs.ext3 mkfs.fat mkfs.ntfs
mkfs.cramfs mkfs.ext4 mkfs.minix mkfs.vfat
試試
mkfs.vfat
參閱
http://manpages.ubuntu.com/manpages/wil ... fat.8.html
使用 FAT32 搜尋
头像
深秋里的姐妹
帖子: 96
注册时间: 2014-12-25 13:04
系统: ubuntu

Re: 请教个分区的问题

#6

帖子 深秋里的姐妹 » 2015-11-24 18:26

poloshiao 写了: 試試
mkfs.vfat
參閱
http://manpages.ubuntu.com/manpages/wil ... fat.8.html
使用 FAT32 搜尋
mkfs.vfat is symlinked to mkfs.fat
$ ll /sbin/mkfs.vfat
lrwxrwxrwx 1 root root 8 Aug 22 08:03 /sbin/mkfs.vfat -> mkfs.fat
“这是我送给你的。希望你再来啊。”
苗子摇摇头。千重子抓住红格子门,目送苗子远去。苗子始终没有回头。
在千重子的前发上飘落了少许细雪,很快就消融了。整个市街也还在沉睡着。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 请教个分区的问题

#7

帖子 poloshiao » 2015-11-24 20:16

mkfs.vfat is symlinked to mkfs.fat
1. http://manpages.ubuntu.com/manpages/viv ... dos.8.html
mkfs.fat - create an MS-DOS filesystem under Linux
使用 FAT32 搜尋

2. http://manpages.ubuntu.com/manpages/wil ... kfs.8.html
mkfs - build a Linux filesystem
In actuality, mkfs is simply a front-end for the various filesystem builders (mkfs.fstype) available under Linux. The filesystem-specific builder is searched for in a number of directories, like perhaps /sbin, /sbin/fs, /sbin/fs.d, /etc/fs, /etc (the precise list is defined at compile time but at least contains /sbin and /sbin/fs), and finally in the directories listed in the PATH environment variable. Please see the filesystem-specific builder manual pages for further details.
This mkfs frontend is deprecated in favour of filesystem specific mkfs.<type> utils.
意思是 如果只用 mkfs 將會自動搜尋合適的 mkfs.fstype 指令 包含 mkfs.fat mkfs.vfat
只是 這個只用 mkfs 的方法已漸漸被捨棄
回复