Moving /boot to smaller SD card - Raspberry Pi Forums
hello debian gurus...
installed raspbian on 32gb sd card, moved whole os usb stick. pi uses /boot sd card boot up. there way move /boot smaller (250mb) sd card, mean how can make bootable sd /boot?
lot,
riki
installed raspbian on 32gb sd card, moved whole os usb stick. pi uses /boot sd card boot up. there way move /boot smaller (250mb) sd card, mean how can make bootable sd /boot?
lot,
riki
you should able use dd copy /boot partition on /dev/mmcblk0p1 sdcard (or *.img file). or can mount new sdcard , use rsync. or can mount new sdcard , use cp -r. [pick poison.]
if you're not using direct dd copy of first 122880 sectors you'll need create new partition on new sdcard in usb sdcard reader with
fdisk /dev/sda
command (m help): n
partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container logical partitions)
select (default p): p
partition number (1,3,4, default 1): 1
first sector (2048-15407103, default 2048): 8192
last sector, +sectors or +size{k,m,g,t,p} (8192-122879, default nnnnnnnn): 122879
created new partition 1 of type 'linux' , of size 56 mib.
command (m help): w
mkfs.fat /dev/sda1
once filesystem made you're ready copy.
dd if=/dev/mmcblk0p1 of=/dev/sda1
mount /dev/sda1 /mnt
rsync -a /boot/ /mnt
umount /mnt
mount /dev/sda1 /mnt
cp -r /boot/* /mnt
umount /mnt
copy on windows if can mount 2 sdcards simultaneously.
not work noobs without lots of messing about, if you've moved rootfs you're not using noobs anyway.
if you're not using direct dd copy of first 122880 sectors you'll need create new partition on new sdcard in usb sdcard reader with
fdisk /dev/sda
command (m help): n
partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container logical partitions)
select (default p): p
partition number (1,3,4, default 1): 1
first sector (2048-15407103, default 2048): 8192
last sector, +sectors or +size{k,m,g,t,p} (8192-122879, default nnnnnnnn): 122879
created new partition 1 of type 'linux' , of size 56 mib.
command (m help): w
mkfs.fat /dev/sda1
once filesystem made you're ready copy.
dd if=/dev/mmcblk0p1 of=/dev/sda1
mount /dev/sda1 /mnt
rsync -a /boot/ /mnt
umount /mnt
mount /dev/sda1 /mnt
cp -r /boot/* /mnt
umount /mnt
copy on windows if can mount 2 sdcards simultaneously.
not work noobs without lots of messing about, if you've moved rootfs you're not using noobs anyway.
raspberrypi
Comments
Post a Comment