查看: 2687|回复: 3

linux扩容U-NAS home Edition方法

[复制链接]
发表于 2011-12-28 14:18:19 | 显示全部楼层 |阅读模式
    这个是在linux扩容U-NAS home Edition方法。进入linux后,dd if=U-NAS_Home_Edition.dd of=/dev/sdb bs=10M count=200
等dd完后进行一下操作
# fdisk /dev/sdb

  • Command (m for help): d
  • Partition number (1-4): 1
  • Command (m for help): n
  • Command action
  •    e   extended
  •    p   primary partition (1-4)
  • p
  • Partition number (1-4, default 1):
  • Using default value 1
  • First sector (29302560-125829119, default 29302560):   enter
  • Last sector, +sectors or +size{K,M,G} (29302784-125829119, default 125829119):enter
  • 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 or after you run partprobe(8) or kpartx(8)
  • Syncing disks.


而后执行下面的指令


  • # partprobe /dev/sdb
  • # e2fsck -f /dev/sda1
  • e2fsck 1.41.12 (17-May-2010)
  • Pass 1: Checking inodes, blocks, and sizes
  • Pass 2: Checking directory structure
  • Pass 3: Checking directory connectivity
  • Pass 4: Checking reference counts
  • Pass 5: Checking group summary information
  • data: 38934/305216 files (0.1% non-contiguous), 1140469/1219840 blocks
  • [root@wgzhao-nb wgzhao]# resize2fs /dev/sdb1
  • resize2fs 1.41.12 (17-May-2010)
  • Resizing the filesystem on /dev/sda2 to 5242880 (4k) blocks.
  • The filesystem on /dev/sda2 is now 5242880 blocks long.





回复

使用道具 举报

发表于 2012-3-31 16:04:43 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2012-8-21 12:35:24 | 显示全部楼层
打命令挺复杂的,还是图形界面上操作方便点。
回复 支持 反对

使用道具 举报

发表于 2012-9-2 11:34:50 | 显示全部楼层
先留个记号!!!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|Archiver|手机版|万由科技 ( 浙ICP备10004788号-13 )

GMT+8, 2024-5-16 05:57 , Processed in 0.060364 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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