lipton... cos zle zrobiłam?
root@Gargoyle:~$ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 2.4M 2.4M 0 100% /rom
tmpfs 14.5M 92.0K 14.4M 1% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock3 320.0K 256.0K 64.0K 80% /overlay
mini_fo:/overlay 2.4M 2.4M 0 100% /
/dev/sda1 3.2G 6.0M 3.2G 0% /mnt/sda99
root@Gargoyle:~$
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock3 on /overlay type jffs2 (rw,relatime)
mini_fo:/overlay on / type mini_fo (rw,relatime)
/dev/sda1 on /mnt/sda99 type ext2 (rw,noatime,errors=continue)
none on /proc/bus/usb type usbfs (rw,relatime)
root@Gargoyle:~$
to samo bez partycji
root@Gargoyle:~$ /tmp/usr/sbin/mke2fs -m 0 /dev/sda
mke2fs 1.41.11 (14-Mar-2010)
/dev/sda is entire device, not just one partition!
Proceed anyway? (y,n) y
/dev/sda is apparently in use by the system; will not make a filesystem here!
root@Gargoyle:~$ umount /dev/sda1
root@Gargoyle:~$ /tmp/usr/sbin/mke2fs -m 0 /dev/sda
mke2fs 1.41.11 (14-Mar-2010)
/dev/sda is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
240960 inodes, 962304 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=985661440
30 block groups
32768 blocks per group, 32768 fragments per group
8032 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736
Writing inode tables: 1/30
done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
root@Gargoyle:~$
root@Gargoyle:~$ blkid
/dev/sda: UUID="a240eba8-2f9a-42af-b16c-93bfe4c9ca0a"
root@Gargoyle:~$ /dev/sda: UUID="a240eba8-2f9a-42af-b16c-93bfe4c9ca0a
> uci set fstab.@mount[0].enabled=1
> uci set fstab.@mount[0].uuid=a240eba8-2f9a-42af-b16c-93bfe4c9ca0a
> uci set fstab.@mount[0].is_rootfs=1
> uci set fstab.@mount[0].fstype=ext2
> uci set fstab.@mount[0].options=rw,noatime
> uci commit
> mount -t ext2 /dev/sda /mnt
> cp -R /overlay/* /mnt
> umount /dev/sda
> sync
> reboot
>
root@Gargoyle:~$ df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 2.4M 2.4M 0 100% /rom
tmpfs 14.5M 2.3M 12.2M 16% /tmp
tmpfs 512.0K 0 512.0K 0% /dev
/dev/mtdblock3 320.0K 268.0K 52.0K 84% /overlay
mini_fo:/overlay 2.4M 2.4M 0 100% /
root@Gargoyle:~$