19661Re: NSLU2 Upgrade Mode
- Aug 31, 2007
> I want to upgrade from a smaller USB flash drive 2G to a USB flash driveYou don't need to re-install from scratch just to replace the disk:
> that is 4G.
1. Boot with the old disk.
2. Insert the new disk.
3. Partition the new disk (e.g. parted or fdisk).
4. Create a filesystem on the new disk (e.g. mke3fs, ?parted?).
5. Copy the contents of the old disk to the new disk (e.g. cp or
tar|tar or rsync).
- take care to preserve ownership and permissions, and not to cross
filesystems into e.g. /tmp or /proc, and to do the right thing with
device files (/dev) and symlinks.
4. Copy the raw old filesystem to the raw new filesystem (e.g. dd).
5. Mount the new disk.
6. Resize the filesystem on the new disk to occupy the extra space
7. Power off.
8. Remove the old disk.
9. Cross fingers. Power on. Will boot from new disk.
Alternatively, plug both disks into a Linux PC and do steps 3 to 6 there.
Do ask if you need more details.
- << Previous post in topic Next post in topic >>