Re: pi vs swap on flash

2017-07-14 Thread Alan Corey
I finally looked at piclone source, it uses parted to do the partition stuff, cp to do the actual copying, the GUI is GTK. And it's written in C with popens. https://github.com/raspberrypi-ui/piclone or more directly https://github.com/raspberrypi-ui/piclone/blob/master/src/piclone.c On 7/14/17,

Re: pi vs swap on flash

2017-07-13 Thread Gene Heskett
On Thursday 13 July 2017 20:43:38 Alan Corey wrote: > I've got a 2' x 4' sheet of that stuff in the garage, brought it home > from the dump a few years ago, can't bring myself to cut into it. But > good for cases and heat sinks. > > I guess the one feature request I'd have for Piclone is that it

Re: pi vs swap on flash

2017-07-13 Thread Alan Corey
I've got a 2' x 4' sheet of that stuff in the garage, brought it home from the dump a few years ago, can't bring myself to cut into it. But good for cases and heat sinks. I guess the one feature request I'd have for Piclone is that it ignore swap partitions, or have an option for more manual cont

Re: pi vs swap on flash

2017-07-13 Thread Gene Heskett
On Thursday 13 July 2017 16:59:45 Alan Corey wrote: > Well, no, until you boot from the hard drive you're just using the SD > card to work on the hard drive. I'm not sure what automounting is > happening on your machine, I usually turn it off. Booted from the SD, > do cd /mnt. If that's an erro

Re: pi vs swap on flash

2017-07-13 Thread Alan Corey
Well, no, until you boot from the hard drive you're just using the SD card to work on the hard drive. I'm not sure what automounting is happening on your machine, I usually turn it off. Booted from the SD, do cd /mnt. If that's an error you probably don't have one, so do cd / then mkdir /mnt. N

Re: pi vs swap on flash

2017-07-13 Thread Gene Heskett
On Thursday 13 July 2017 12:52:51 Alan Corey wrote: > Try touch /var/swap so one exists? Actually I think you're supposed > to dd a few gigs from /dev/zero in there. I just left the swap file > alone, the reason being that my swap partition is on the end of the > drive which is going to cause he

Re: pi vs swap on flash

2017-07-13 Thread Gene Heskett
On Thursday 13 July 2017 12:34:15 Mark Morgan Lloyd wrote: > On 13/07/17 16:15, Alan Corey wrote: > > Mine looks like: > > etc. Yes, agreed. You might also need to tell it to stop using a file > on the normal filesystem as swap- to be honest I can't remember how to > do that. > > It's worth rememb

Re: pi vs swap on flash

2017-07-13 Thread Gene Heskett
On Thursday 13 July 2017 12:15:41 Alan Corey wrote: > But I did use piclone to copy my SD to the hard drive. After you copy > you have to mount the hard drive partitions and manually change your > /etc/fstab. Also in /boot/cmdline.txt tell it that root is on > /dev/sda2 or whatever. Worked rea

Re: pi vs swap on flash

2017-07-13 Thread Diego Roversi
On Thu, 13 Jul 2017 12:38:57 -0400 Gene Heskett wrote: > I turned it off, then removed /var/swap. Won't reboot. WTH? THere isn't > anything in fstab but what I added, and nothing in /boot/config.txt or > cmdline.txt about swap. I can recover, but the most recent edits in the > linuxcnc tree ha

Re: pi vs swap on flash

2017-07-13 Thread Alan Corey
Try touch /var/swap so one exists? Actually I think you're supposed to dd a few gigs from /dev/zero in there. I just left the swap file alone, the reason being that my swap partition is on the end of the drive which is going to cause head thrashing if it gets used a lot. So some swap space near w

Re: pi vs swap on flash

2017-07-13 Thread Gene Heskett
On Thursday 13 July 2017 12:00:43 Alan Corey wrote: > Mine looks like: > > proc/proc procdefaults 0 0 > /dev/sda1 /boot vfatdefaults 0 2 > /dev/sda2 / ext4defaults,noatime 0 1 > /dev/sda3 none swap sw

Re: pi vs swap on flash

2017-07-13 Thread Mark Morgan Lloyd
On 13/07/17 16:15, Alan Corey wrote: Mine looks like: etc. Yes, agreed. You might also need to tell it to stop using a file on the normal filesystem as swap- to be honest I can't remember how to do that. It's worth remembering that swapon -s will tell you what partitions and files are bei

Re: pi vs swap on flash

2017-07-13 Thread Alan Corey
But I did use piclone to copy my SD to the hard drive. After you copy you have to mount the hard drive partitions and manually change your /etc/fstab. Also in /boot/cmdline.txt tell it that root is on /dev/sda2 or whatever. Worked really slick, the partition size got expanded automatically and

Re: pi vs swap on flash

2017-07-13 Thread Alan Corey
Mine looks like: proc/proc procdefaults 0 0 /dev/sda1 /boot vfatdefaults 0 2 /dev/sda2 / ext4defaults,noatime 0 1 /dev/sda3 none swap sw 0 0 And when you reboot you should see it in top as an increase