數位天堂

Nokia:科技始終來自於人性; 拜耳:如果文明不能使我們更相愛,那科技便失去意義!
歡迎您的加入,讓我們一起討論科技與環保的整合應用...

您尚未登入。

#1 2009-07-02 02:32:25

thx
精靈
註冊日期: 2008-01-29
文章數: 99
目前積分 :   
網站

3G 版的disk 指令整理

因為3G ap firmware 把磁碟指令功能拿掉了 .這邊簡單整理一下

引用自
http://wiki.osslab.org.tw/index.php?tit … 2%26Format

oleg firmware 只能讀寫ext2 or fat32  格式的硬碟. ntfs可掛載 不過不能寫
簡單說一下ext2指令


DF查詢目前掛載磁區
umount卸載磁區
fdisk分割磁區
mke2fs格式化硬碟

[admin@asus root]$ df '查尋目前掛載的磁區,所以目前掛載上/tem/mnt/disc0_1 Filesystem 1k-blocks Used Available Use% Mounted on /dev/root 3008 3008 0 100% / /dev/discs/disc0/part1 3903760 2852908 1050852 73% /tmp/mnt/disc0_1 [admin@asus root]$ umount /tmp/mnt/disc0_1 [admin@asus root]$ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root 3008 3008 0 100% / [admin@asus root]$ fdisk -l Disk /dev/ide/host0/bus0/target0/lun0/disc: 8019 MB, 8019099648 bytes 255 heads, 63 sectors/track, 974 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/ide/host0/bus0/target0/lun0/part1 1 974 7823623+ 83 FAT16 [admin@asus root]$ fdisk /dev/ide/host0/bus0/target0/lun0/disc Command (m for help): d Selected partition 1 Command (m for help): p Disk /dev/ide/host0/bus0/target0/lun0/disc: 8019 MB, 8019099648 bytes 255 heads, 63 sectors/track, 974 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-974, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-974, default 974): Using default value 974 Command (m for help): p Disk /dev/ide/host0/bus0/target0/lun0/disc: 8019 MB, 8019099648 bytes 255 heads, 63 sectors/track, 974 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/ide/host0/bus0/target0/lun0/part1 1 974 7823623+ 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [admin@asus root]$ fdisk -l Disk /dev/ide/host0/bus0/target0/lun0/disc: 8019 MB, 8019099648 bytes 255 heads, 63 sectors/track, 974 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/ide/host0/bus0/target0/lun0/part1 1 974 7823623+ 83 Linux [admin@asus root]$ mke2fs -j /dev/ide/host0/bus0/target0/lun0/part1 mke2fs 1.38 (30-Jun-2005) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 979200 inodes, 1955905 blocks 97795 blocks (5.00%) reserved for the super user First data block=0 60 block groups 32768 blocks per group, 32768 fragments per group 16320 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Writing inode tables: done Creating journal (32768 blocks):done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 33 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [admin@asus root]$reboot asus login: admin Password: [admin@asus root]$ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/root 3008 3008 0 100% / /dev/discs/disc0/part1 7700668 131228 7178260 2% /tmp/mnt/disc0_1






Opensources,虛擬化,Voip,FC ,Storage  ,Embedded system 無聊人士實驗室
http://www.osslab.com.tw

離線

 

友情連結

論壇頁尾

Powered by PunBB
© Copyright 2018 Rickard Andersson
RSS Feed