usb 4b to 2b

Moderator: Mattk

Post Reply
rovinj
Junior Boarder
Junior Boarder
Posts: 26
Joined: Mon Feb 16, 2009 9:55 pm

usb 4b to 2b

Post by rovinj » Sun Feb 22, 2009 2:24 pm

Hello,
it is possible to migrate from a 4b usb stick to 2 gb usb stick?

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5246
Joined: Mon Oct 01, 2007 10:51 pm

Re:usb 4b to 2b

Post by admin » Sun Feb 22, 2009 7:51 pm

That would be a lot of manual work. Not a problem for someone with solid Linux knowledge..
Basic steps are:
1) shrinking ext3 on 3rd partition to something below 2GB (including space for 1st and 2nd partition)
2) shrinking 3rd partition itself with fdisk.
3) copying first 2GB of 4GB stick onto 2 GB stick with dd.

rovinj
Junior Boarder
Junior Boarder
Posts: 26
Joined: Mon Feb 16, 2009 9:55 pm

Re:usb 4b to 2b

Post by rovinj » Sun Feb 22, 2009 10:22 pm

Thank you. I have another question regarding this topic. Can I zip files from 4gb stick (folders: /data, /srv/www, /home/meteohub) and extract them on a newly installed meteohub on 2gb stick?

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 5246
Joined: Mon Oct 01, 2007 10:51 pm

Re:usb 4b to 2b

Post by admin » Sun Feb 22, 2009 10:33 pm

yes, this should work in general. But I would suggest to make tar archives via linux, to get the attributes of the files right. Doing that with windows tools will not work (from my insight).

rovinj
Junior Boarder
Junior Boarder
Posts: 26
Joined: Mon Feb 16, 2009 9:55 pm

Re:usb 4b to 2b

Post by rovinj » Sun Feb 22, 2009 11:32 pm

Great. Thank you.

008hnoor
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Wed Apr 22, 2015 1:27 pm

Re: usb 4b to 2b

Post by 008hnoor » Wed Apr 22, 2015 1:50 pm

shrinking ext3 on 3rd partition to something below 2GB (including space for 1st and 2nd partition)

Post Reply