|
这个是在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.
|
|