开云体育

partition for lubuntu from previous ubuntu


Don - KM4UDX
 

So ubuntu was working okay with fldigi and wsjtx. I'd get the occasional lockups, but a reboot and I was good to go.? ? So, I figured I could try a "lite" OS, and lubuntu looked like a great option. And my problems started there. hahaha.??

At the moment, during the lubuntu install, I'm totally flummoxed on what to do during the lubuntu partitioning process. Given that there is already a partitioning from ubuntu, the lubuntu install recognizes the existing ubuntu partition and stops, and I don't know what to do.?

If I wiped the onboard memory, the lubuntu might consider is a total fresh install and recommend whatever it wanted for partition. Which I would accept and move on.?

Guidance, oh wise ones....

And thanks as always.

Don
km4udx


 

My first question is ‘WHY’ ?
K6acj


 

开云体育

Personally, I’d get another card and install new other OS fresh. That way you have the other card to fall back on.?

Dan

--
. Please pardon any mispelings or errors.


On Oct 13, 2019, at 7:24 PM, Don - KM4UDX <dontAy155@...> wrote:

?So ubuntu was working okay with fldigi and wsjtx. I'd get the occasional lockups, but a reboot and I was good to go.? ? So, I figured I could try a "lite" OS, and lubuntu looked like a great option. And my problems started there. hahaha.??

At the moment, during the lubuntu install, I'm totally flummoxed on what to do during the lubuntu partitioning process. Given that there is already a partitioning from ubuntu, the lubuntu install recognizes the existing ubuntu partition and stops, and I don't know what to do.?

If I wiped the onboard memory, the lubuntu might consider is a total fresh install and recommend whatever it wanted for partition. Which I would accept and move on.?

Guidance, oh wise ones....

And thanks as always.

Don
km4udx


Don - KM4UDX
 

Dan -- yes, I ended up doing as you suggested. I still had to go through the partition process. Which freeked me out a bit, but you set a fat32 primary with root/efi (or close to that) with a flag of "esp" set, and I made the rest of the space root mounted at the "/".? Then the install worked, and I am using firefox now as I type this. So yeaaaaa.

As for the motivation, under ubuntu, my mouse would freeze, the system would lock, all at random times. So I wanted to try and improve things....

Now I have to get WSJTX and FLDIGI installed on this new lubuntu OS.? If I can get these two apps working, then I will be a happy camper.

So far so good.

Thanks!!!

Don
km4udx


 

开云体育

Ok one thing is the Ubuntu for Raspberry Pi is different from the Ubuntu linux, at least that is my

understanding. If the Lubuntu isn't designed for the Pi I don't think it will work after it is installed.

Now to your question as asked, you can continue with the load of Lubuntu just like you would with

Ubuntu or Xubuntu, I have used all three. You can used the existing partitioning as configured for

Ubuntu. I personally like separate partitions, Root about 20GB, /home large, and swap. But on a

Pi I let the Raspbian set it up and after it is finished I expand to the whole sd card.

But I haven't tried the Ubuntu load for the Raspberry.


I don't know if this helps but just my observations.


Marty kd8bj


On 10/13/19 8:23 PM, Don - KM4UDX wrote:

So ubuntu was working okay with fldigi and wsjtx. I'd get the occasional lockups, but a reboot and I was good to go.? ? So, I figured I could try a "lite" OS, and lubuntu looked like a great option. And my problems started there. hahaha.??

At the moment, during the lubuntu install, I'm totally flummoxed on what to do during the lubuntu partitioning process. Given that there is already a partitioning from ubuntu, the lubuntu install recognizes the existing ubuntu partition and stops, and I don't know what to do.?

If I wiped the onboard memory, the lubuntu might consider is a total fresh install and recommend whatever it wanted for partition. Which I would accept and move on.?

Guidance, oh wise ones....

And thanks as always.

Don
km4udx


Don - KM4UDX
 

Marty, thanks for the note.? I did get lubuntu installed and working.? I just had to find my boy bits to make new partitions over the old ones.? I didn't see any way to re-use the existing Ubuntu partitions.? So I just made new one near.

? In my haste, however, I failed to create a swap. Gurrr.? So there is a lot of help in the web 'boit how to create a Swap at run time.? But they are all so complicated for a newbee, that I've just operated without one. Lubuntu is very efficient. So good so far!!

Thanks much!!!


 

开云体育

Hi Don

Since this is a Pi can you take the micro SD card and put it in a USB adapter and use another PC

booted up on Gparted and see the SD card partitions, if so then you can shrink the partition nearest the end

where the swap will show up and create your swap to the size you want or is recommended. Then save

the new partition table and continue.

I hope this explanation is clear, I really like Gparted and use it all the time.


Marty kd8bj


On 10/15/2019 2:09 PM, Don - KM4UDX wrote:I

Marty, thanks for the note.? I did get lubuntu installed and working.? I just had to find my boy bits to make new partitions over the old ones.? I didn't see any way to re-use the existing Ubuntu partitions.? So I just made new one near.

? In my haste, however, I failed to create a swap. Gurrr.? So there is a lot of help in the web 'boit how to create a Swap at run time.? But they are all so complicated for a newbee, that I've just operated without one. Lubuntu is very efficient. So good so far!!

Thanks much!!!


 

You can just overwrite the existing partitions. No need to make a new one.

A new installation will reuse the SWAP partition if it finds one.


On 15 October 2019 at 15:09 Don - KM4UDX <dontAy155@...> wrote:

Marty, thanks for the note.? I did get lubuntu installed and working.? I just had to find my boy bits to make new partitions over the old ones.? I didn't see any way to re-use the existing Ubuntu partitions.? So I just made new one near.

? In my haste, however, I failed to create a swap. Gurrr.? So there is a lot of help in the web 'boit how to create a Swap at run time.? But they are all so complicated for a newbee, that I've just operated without one. Lubuntu is very efficient. So good so far!!

Thanks much!!!


Nigel A. Gunn, 1865 El Camino Drive, Xenia, OH 45385-1115, USA. tel +1 937 825 5032
Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www http://www.ngunn.net


Don - KM4UDX
 

Nigel (+) -- can you give me some pointers on how to do this?

I'm really new to all this lubuntu/ubuntu/linix business. So I am playing catchup as fast as I can...

here is what I have now...I found different cmds that show sort of the same info.
===============================================================================
don@ubitx-love:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL

NAME???????? FSTYPE? SIZE MOUNTPOINT LABEL
mmcblk0???????????? 14.6G???????????
├─mmcblk0p1? vfat??? 500M /boot/efi?
└─mmcblk0p2? ext4?? 14.1G /?????????
mmcblk0boot0?????????? 4M???????????
mmcblk0boot1?????????? 4M???????????
don@ubitx-love:~$
============================================================================
sudo parted -l
Model: MMC M52516 (sd/mmc)
Disk /dev/mmcblk0: 15.6GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number? Start?? End???? Size??? Type???? File system? Flags
?1????? 1049kB? 525MB?? 524MB?? primary? fat32
?2????? 525MB?? 15.6GB? 15.1GB? primary? ext4
===================================================================================================
sudo fdisk -l
Disk /dev/mmcblk0: 14.6 GiB, 15636365312 bytes, 30539776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x2a49bef6

Device???????? Boot?? Start????? End? Sectors? Size Id Type
/dev/mmcblk0p1???????? 2048? 1026047? 1024000? 500M? b W95 FAT32
/dev/mmcblk0p2????? 1026048 30539564 29513517 14.1G 83 Linux


[so this is technically not a Pi, but a Pi clone, but I don't think lubuntu cares...at least that is my operating assumption...!]

Thanks!!!

Don
km4udx


Don - KM4UDX
 

Nigel (+)...I installed gparted and have this.? So goal is to create a swap.? What is the best way to do this for a chicken newbie? Is there anything else that I did that needs fixing?


 

Your swap partition is usually twice the size of your RAM so I assume you'll want a 4GB swap partition.

You could really do with a bigger memory card.

As swap needs to be fast, and SD cards die if used too much you would be better in the long term doing most things on a small USB hard drive or SSD and move the operating system to that and just boot from the SD card.



To create a swap partition:

Highlight the? ext4 partition

Go to Partition/Resize and make the partition 4GB smaller than it is now (reduce it's size to 10GB).

Click Apply

Resize will take some time.

Highlight the unused space entry that appears, go to Partition/Format and select SWAP as the format.

Click Apply.

Reboot


On 16 October 2019 at 11:25 Don - KM4UDX <dontAy155@...> wrote:

Nigel (+)...I installed gparted and have this.? So goal is to create a swap.? What is the best way to do this for a chicken newbie? Is there anything else that I did that needs fixing?


Nigel A. Gunn, 1865 El Camino Drive, Xenia, OH 45385-1115, USA. tel +1 937 825 5032
Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www http://www.ngunn.net


David Ranch
 

开云体育


Swap *partitions* are NOT required on Raspbian as it uses a in-file system swap *file* for this use:

??

Btw, as mentioned elsewhere in this thread, swapping I/O to an SD card can physically damage the card and kill it pretty quickly.? It's generally NOT recommend to significantly use swap if you don't have to.? If you need more RAM than what's on your Raspberry Pi (older versions had 256MB or 512MB) and most newer Pis have 1GB), you should setup the swap on an external USB device be it a USB pendrive (only a little better reliability wise) or an SSD/HDD.? Better yet, go buy a new 2GB or 4GB Rpi4 and you hopefully won't need swap at all.? :-)
pi4 and you hopefully won't need swap at all.? :-)

--David
KI6ZHD


On 10/16/2019 08:51 AM, Nigel Gunn, G8IFF/W8IFF wrote:

Your swap partition is usually twice the size of your RAM so I assume you'll want a 4GB swap partition.

You could really do with a bigger memory card.

As swap needs to be fast, and SD cards die if used too much you would be better in the long term doing most things on a small USB hard drive or SSD and move the operating system to that and just boot from the SD card.



To create a swap partition:

Highlight the? ext4 partition

Go to Partition/Resize and make the partition 4GB smaller than it is now (reduce it's size to 10GB).

Click Apply

Resize will take some time.

Highlight the unused space entry that appears, go to Partition/Format and select SWAP as the format.

Click Apply.

Reboot



Don - KM4UDX
 

Nigel -- I'm sure I'm doing something really stupid...but when I change the value in the new size window, it changes back to original, and I never get to the resize option...


 

I'm guessing that the partition needs to be unmounted first so you'll need to put the memory card in another computer to do it or boot from a thumb drive.


On 16 October 2019 at 13:15 Don - KM4UDX <dontAy155@...> wrote:

Nigel -- I'm sure I'm doing something really stupid...but when I change the value in the new size window, it changes back to original, and I never get to the resize option...


Nigel A. Gunn, 1865 El Camino Drive, Xenia, OH 45385-1115, USA. tel +1 937 825 5032
Amateur Radio G8IFF W8IFF and GMRS WRBV701, e-mail nigel@... www http://www.ngunn.net


Don - KM4UDX
 

Yes, you are right.? I got the USB bootable with gparted live,? and it would boot to the gparted selection screen, but then no matter what option i picked, including gparted safeboot, the sequence would never actually start gparted.?

So I've given up for now.? I'm going to try to make my USB3 port and usb3 stick a swap file with the following process.
?
≠====================

1) Make sure your USB stick is connected. In a terminal type:
?
sudo blkid
?
It will list all your connected drives. Search for your USB stick you want to use as swap and copy the UUID (everything inside these quotes UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX").
?
This represents the individual name of your device.
?
Also note the /dev/XXX point of your device.
?
2) Now unmount your device by typing:
?
sudo umount /dev/XXX (where XXX represents your device name)
?
3) Format your USB stick as swap, e.g. by terminal
?
sudo mkswap /dev/XXX (<-- be sure to use the correct device name here or you'll probably end up formatting the wrong drive!)
?
or simply use GParted.
?
4) Now you have to edit your /etc/fstab file, so type
?
gksudo gedit /etc/fstab
?
and enter the following
?
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none swap sw,pri=5 0 0
?
(for all the Xs, use the UUID number you got by typing sudo blkid)
?
5) Now type
?
sudo swapon -a
?
That's it, this should already work


 

开云体育

HI

If this is a Rpi 4 I think I saw a response that swap is not needed, or is a real small amount. So

you may be good to go.

You probably should review the instructions for the pi 4 though, as I have not ordered one yet.

It is in my future though.

Marty kd8bj


On 10/17/19 7:09 AM, Don - KM4UDX wrote:

Yes, you are right.? I got the USB bootable with gparted live,? and it would boot to the gparted selection screen, but then no matter what option i picked, including gparted safeboot, the sequence would never actually start gparted.?

So I've given up for now.? I'm going to try to make my USB3 port and usb3 stick a swap file with the following process.
?
≠====================

1) Make sure your USB stick is connected. In a terminal type:
?
sudo blkid
?
It will list all your connected drives. Search for your USB stick you want to use as swap and copy the UUID (everything inside these quotes UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX").
?
This represents the individual name of your device.
?
Also note the /dev/XXX point of your device.
?
2) Now unmount your device by typing:
?
sudo umount /dev/XXX (where XXX represents your device name)
?
3) Format your USB stick as swap, e.g. by terminal
?
sudo mkswap /dev/XXX (<-- be sure to use the correct device name here or you'll probably end up formatting the wrong drive!)
?
or simply use GParted.
?
4) Now you have to edit your /etc/fstab file, so type
?
gksudo gedit /etc/fstab
?
and enter the following
?
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none swap sw,pri=5 0 0
?
(for all the Xs, use the UUID number you got by typing sudo blkid)
?
5) Now type
?
sudo swapon -a
?
That's it, this should already work


Mark Griffith
 

Raspbian, the default OS for the Raspberry Pi, does not use a swap partition, it uses a swap file on the regular file system.? If your memory usage is not too much, it will never swap.? I always create my systems with no swap at all, and in the years I have been using them, I have never encountered a problem.? Of course, these devices are just used to process email and things like that.? No memory intensive video or other type of memory hungry apps.? My applications use less then 20% of the available memory so it never swaps.

However, if you will be using memory intensive applications, you might want to create a swap file.

Mark
KD0QYN


On Thursday, October 17, 2019, 11:11:44 AM CDT, Marty Hartwell <mhartwe@...> wrote:


HI

If this is a Rpi 4 I think I saw a response that swap is not needed, or is a real small amount. So

you may be good to go.

You probably should review the instructions for the pi 4 though, as I have not ordered one yet.

It is in my future though.

Marty kd8bj


On 10/17/19 7:09 AM, Don - KM4UDX wrote:
Yes, you are right.? I got the USB bootable with gparted live,? and it would boot to the gparted selection screen, but then no matter what option i picked, including gparted safeboot, the sequence would never actually start gparted.?

So I've given up for now.? I'm going to try to make my USB3 port and usb3 stick a swap file with the following process.
?
≠====================

1) Make sure your USB stick is connected. In a terminal type:
?
sudo blkid
?
It will list all your connected drives. Search for your USB stick you want to use as swap and copy the UUID (everything inside these quotes UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX").
?
This represents the individual name of your device.
?
Also note the /dev/XXX point of your device.
?
2) Now unmount your device by typing:
?
sudo umount /dev/XXX (where XXX represents your device name)
?
3) Format your USB stick as swap, e.g. by terminal
?
sudo mkswap /dev/XXX (<-- be sure to use the correct device name here or you'll probably end up formatting the wrong drive!)
?
or simply use GParted.
?
4) Now you have to edit your /etc/fstab file, so type
?
gksudo gedit /etc/fstab
?
and enter the following
?
UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX none swap sw,pri=5 0 0
?
(for all the Xs, use the UUID number you got by typing sudo blkid)
?
5) Now type
?
sudo swapon -a
?
That's it, this should already work


Don - KM4UDX
 

Mark -- I have a Pi clone (Atomic Pi), but the concepts are similar.? I finally got a USB stick swap file, and when I open a bunch of web pages (etc.), I run out of mem, and I can see the swap file start to be used.? While not the fastest operation, it sure beats a lockup.?

Now I'm stuck in editing the etc/f.... File that would mount the swap at boot. Even that simple operation. Is a pain in the next.? First, I don't have permission to write the file, then I have to figure out the syntax in some weird editor that I have never used.?

Really, not to wine, but it is a major pain in the neck if you are new to all this...


Mark Griffith
 

It should not be that hard.? This is from the Ubuntu 17.04 site:
sudo swapoff /swapfile
sudo rm /swapfile

Create a 2Gb swapfile, set permissions, format it as swap and enable it:

sudo fallocate -l 2g /swapfile  Or /USB1/swapfile or something like that
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
You can put the swapfile wherever you want it.? If you want it on a different filesystem, like a USB drive, just mount it like you would normally do, and put the swapfile there.

Mark
KD0QYN

On Friday, October 18, 2019, 9:46:17 AM CDT, Don - KM4UDX <dontAy155@...> wrote:


Mark -- I have a Pi clone (Atomic Pi), but the concepts are similar.? I finally got a USB stick swap file, and when I open a bunch of web pages (etc.), I run out of mem, and I can see the swap file start to be used.? While not the fastest operation, it sure beats a lockup.?

Now I'm stuck in editing the etc/f.... File that would mount the swap at boot. Even that simple operation. Is a pain in the next.? First, I don't have permission to write the file, then I have to figure out the syntax in some weird editor that I have never used.?

Really, not to wine, but it is a major pain in the neck if you are new to all this...