当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 请懂的帅哥帮我看看怎么在ubuntu 10.10下给SD卡分区
帖子发表于 : 2011-05-11 0:16 
头像

注册: 2011-04-18 12:44
帖子: 4
送出感谢: 0 次
接收感谢: 0 次
这几天突发奇想怎么提升我android智能机的性能,我用的是华为C8500,办网送的,在网上找到一个教程,说是能把手机软件装到SD卡了,
这样来节省RAM,需要给SD卡分区,一个FAT16,一个EXT3,原本在WIN下我怎么也分不出EXT3,幸好我电脑上装了ubuntu,我大体知道
EXT3是什么格式,于是就想在ubuntu下分区试试,同样在网上找了点信息,但分的时候总是出毛病,我把终端里的信息粘贴出来:

lirui@God:~$ sudo -i
root@God:~# umount /dev/sdb1
root@God:~# fdisk /dev/sdb1

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

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/sdb1: 1998 MB, 1998710784 bytes
255 heads, 63 sectors/track, 242 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

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-242, default 1): 1
Last cylinder, +cylinders or +size{K,M,G} (1-242, default 242): +1500M

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): L

0 Empty 24 NEC DOS 81 Minix / old Lin bf Solaris
1 FAT12 39 Plan 9 82 Linux swap / So c1 DRDOS/sec (FAT-
2 XENIX root 3c PartitionMagic 83 Linux c4 DRDOS/sec (FAT-
3 XENIX usr 40 Venix 80286 84 OS/2 hidden C: c6 DRDOS/sec (FAT-
4 FAT16 <32M 41 PPC PReP Boot 85 Linux extended c7 Syrinx
5 Extended 42 SFS 86 NTFS volume set da Non-FS data
6 FAT16 4d QNX4.x 87 NTFS volume set db CP/M / CTOS / .
7 HPFS/NTFS 4e QNX4.x 2nd part 88 Linux plaintext de Dell Utility
8 AIX 4f QNX4.x 3rd part 8e Linux LVM df BootIt
9 AIX bootable 50 OnTrack DM 93 Amoeba e1 DOS access
a OS/2 Boot Manag 51 OnTrack DM6 Aux 94 Amoeba BBT e3 DOS R/O
b W95 FAT32 52 CP/M 9f BSD/OS e4 SpeedStor
c W95 FAT32 (LBA) 53 OnTrack DM6 Aux a0 IBM Thinkpad hi eb BeOS fs
e W95 FAT16 (LBA) 54 OnTrackDM6 a5 FreeBSD ee GPT
f W95 Ext'd (LBA) 55 EZ-Drive a6 OpenBSD ef EFI (FAT-12/16/
10 OPUS 56 Golden Bow a7 NeXTSTEP f0 Linux/PA-RISC b
11 Hidden FAT12 5c Priam Edisk a8 Darwin UFS f1 SpeedStor
12 Compaq diagnost 61 SpeedStor a9 NetBSD f4 SpeedStor
14 Hidden FAT16 <3 63 GNU HURD or Sys ab Darwin boot f2 DOS secondary
16 Hidden FAT16 64 Novell Netware af HFS / HFS+ fb VMware VMFS
17 Hidden HPFS/NTF 65 Novell Netware b7 BSDI fs fc VMware VMKCORE
18 AST SmartSleep 70 DiskSecure Mult b8 BSDI swap fd Linux raid auto
1b Hidden W95 FAT3 75 PC/IX bb Boot Wizard hid fe LANstep
1c Hidden W95 FAT3 80 Old Minix be Solaris boot ff BBT
1e Hidden W95 FAT1
Hex code (type L to list codes): 6
Changed system type of partition 1 to 6 (FAT16)

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (193-242, default 193):
Using default value 193
Last cylinder, +cylinders or +size{K,M,G} (193-242, default 242):
Using default value 242

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 83

Command (m for help): p

Disk /dev/sdb1: 1998 MB, 1998710784 bytes
255 heads, 63 sectors/track, 242 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1p1 1 192 1542208+ 6 FAT16
/dev/sdb1p2 193 242 401625 83 Linux

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 22: 无效的参数.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)


WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
root@God:~# mkdosfs /dev/sdb1p1
mkdosfs 3.0.9 (31 Jan 2010)
/dev/sdb1p1: No such file or directory
root@God:~# mkfs.ext3 /dev/sdb1p2
mke2fs 1.41.12 (17-May-2010)
无法对 /dev/sdb1p2 进行 stat 调用 --- 没有那个文件或目录

The device apparently does not exist; did you specify it correctly?
root@God:~#


大体就是这样,很抱歉,我刚接触linux,没头绪,也许有人提过类似的问题了,但我怕麻烦没去仔细找了,懂的或知道哪有解决方案帅哥,把解决
方案粘贴给我也行,只要我理解了,什么都好。


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 请懂的帅哥帮我看看怎么在ubuntu 10.10下给SD卡分区
帖子发表于 : 2011-05-11 20:36 
头像

注册: 2008-11-01 20:43
帖子: 17330
系统: Arch+gnome
送出感谢: 44
接收感谢: 11
用Rommanager


_________________
谁是我?KL.Uiq8 YinMeng


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 请懂的帅哥帮我看看怎么在ubuntu 10.10下给SD卡分区
帖子发表于 : 2011-05-11 21:23 
头像

注册: 2008-09-10 11:54
帖子: 699
送出感谢: 0 次
接收感谢: 1
用Ubuntu自带的磁盘工具


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 请懂的帅哥帮我看看怎么在ubuntu 10.10下给SD卡分区
帖子发表于 : 2011-06-08 15:25 

注册: 2011-05-29 21:23
帖子: 2
送出感谢: 0 次
接收感谢: 0 次
创建分区的步骤

9、Create the FAT32 partition for booting and transferring files from Windows
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [1]
First cylinder (1-245, default 1): [(press Enter)]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-61, default 61): [+5]

Command (m for help): [t]
Selected partition 1
Hex code (type L to list codes): [c]
Changed system type of partition 1 to c (W95 FAT32 (LBA))

10、Mark it as bootable
Command (m for help): [a]
Partition number (1-4): [1]

11、Create the Linux partition for the root file system
Command (m for help): [n]
Command action
e extended
p primary partition (1-4)
[p]
Partition number (1-4): [2]
First cylinder (7-61, default 7): [(press Enter)]
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (7-61, default 61): [(press Enter)]
Using default value 245

12、Print to Check Your Work
Command (m for help): [p]

Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 6 409626 c W95 FAT32 (LBA)
/dev/sdc2 7 61 1558305 83 Linux

13、Save the new partition records on the SD Card
This is an important step. All the work up to now has been temporary.
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: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.

14、Format the partitions
The two partitions are given the volume names LABEL1 and LABEL2 by these commands. You can substitute
your own volume labels.
$ [sudo mkfs.msdos -F 32 /dev/sdc1 -n LABEL1]
mkfs.msdos 2.11 (12 Mar 2005)

$ [sudo mkfs.ext3 -L LABEL2 /dev/sdc2]
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
195072 inodes, 389576 blocks
19478 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=402653184
12 block groups
32768 blocks per group, 32768 fragments per group
16256 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information:


注意:在 ubuntu 下格式化好 FAT 和 EXT3 双分区后,FAT 分区需要在 window 下重新
格式化一次,否则可能会出现无法从 SD 卡启动的情况


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译