merging two ext4 partitions
by Amadeus WM
I have a disk that looks like this:
[root@alpha ~]# /sbin/fdisk -l /dev/sda
Disk /dev/sda: 930.39 GiB, 998999326720 bytes, 1951170560 sectors
Disk model: VIRTUAL DISK
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: 0x0385371c
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 102402047 102400000 48.8G 83 Linux
/dev/sda2 102402048 1951170559 1848768512 881.6G 83 Linux
I want to expand sda2 to the beginning of the disk, without losing the
data on sda1 (and obviously on sda2 as well). Can that be done safely?
For instance, I'm thinking I can delete both partitions in fdisk and
create a single one for the entire disk. Then, don't format the new
partition. Would that pick up the existing filesystem?
Or, maybe gparted? I can delete sda1, then expand sda2 to the beginning
of the disk. Would that work?
Luckily, sda1 is fairly small so I can back it up somewhere, then gparted
should work, but does anyone have first hand experience with this?
3 years, 4 months
Re: mysterious/suspicious internet activity. [solved]
by Iosif Fettich
Hi there,
although this is as off-topic already as it could be, without being marked as
such in the subject. Go for
https://en.wikipedia.org/wiki/Man_of_La_Mancha_(film)
See the film, if you can find it. You won't regret.
Best regards,
Iosif Fettich
On Mon, 7 Dec 2020, Patrick O'Callaghan wrote:
> On Sun, 2020-12-06 at 22:06 -0700, home user wrote:
>> Is Don Quixote available as an English-language movie?
>
> Not really. There are several Spanish versions (see IMDB) but the book
> is so expansive that it's hard to imagine a successful movie
> adaptation. It would probably have to be a mini-series at least. It's
> an incredibly modern creation given that it was written 4 centuries ago
> (e.g. in the second volume the two heroes come across people who claim
> to know all about Don Quixote because they've read the first volume,
> but they're wrong). There's a recent film by Terry Gilliam, "The Man
> Who Killed Don Quixote", which is a kind of meta-story about trying to
> film it. I didn't much are for it to be honest.
>
> I highly recommend the Audible version if you're into that. A good
> translation and well-told.
>
> Anyway, this is getting really off-topic :-)
>
> poc
> _______________________________________________
> users mailing list -- users(a)lists.fedoraproject.org
> To unsubscribe send an email to users-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct:
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives:
> https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
>
>
3 years, 4 months
Cups outputting deleted printers
by ToddAndMargo
Hi All,
Fedora 33
# rpm -qa cups\*
cups-pk-helper-0.2.6-10.fc33.x86_64
cups-pdf-3.0.1-10.fc33.x86_64
cups-libs-2.3.3-18.fc33.x86_64
cups-client-2.3.3-18.fc33.x86_64
cups-ipptool-2.3.3-18.fc33.x86_64
cups-filesystem-2.3.3-18.fc33.noarch
cups-2.3.3-18.fc33.x86_64
cups-libs-2.3.3-18.fc33.i686
cups-filters-libs-1.28.5-3.fc33.x86_64
cups-filters-1.28.5-3.fc33.x86_64
I clean up a bunch of my unused printers.
Problem: printers with the same long name, except for
the end still show is certain programs.
$ lpstat -a
B4350 accepting requests since Thu 29 Oct 2020 01:36:30 PM PDT
Cups-PDF accepting requests since Tue 30 Apr 2019 04:05:39 PM PDT
Virtual_PDF_Printer accepting requests since Tue 29 Sep 2020
03:13:17 AM PDT
Which is the way it is suppose to be.
But programs using reading printers using cupsGetDests2,
still get the old deleted printers:
The text: https://bugs.documentfoundation.org/attachment.cgi?id=167701
The Binary: https://bugs.documentfoundation.org/attachment.cgi?id=167702
#include <iostream>
#include <cups/cups.h>
int main() {
cups_dest_t* dests;
int nCount = cupsGetDests2(CUPS_HTTP_DEFAULT, &dests);
for (int i = 0; i < nCount; i++) {
cups_dest_t dest = dests[i];
std::cout << dest.name << std::endl;
}
}
$ list-printers
B4350
Cups-PDF
Cups_PDF_rn6 <-- deleted
Oki_B4350_on_dev_lp0_rn6 <-- deleted
Virtual_PDF_Printer
Virtual_PDF_Printer_rn6 <-- deleted
Programs without the problem (a sampling):
Brave Browser, Firefox, Vivaldi, Water Fox,
Leafpad, Simple scan, Gimp, Inkscape, Thunderbird,
Geany, Shotwell, PDF Studio 2019
Programs with the problem (also a sampling):
Wine, Libre Office, Free Office, Master PDF Editor
Any ideas? Is cupsGetDests2 not the proper way of dong this?
-T
3 years, 4 months
Logical Volume Resize
by Kostas Sfakiotakis
Greetings ,
My Fedora Core 33 installation resides on a hard disk with the use of
Logical Volumes like below ( lsblk ) :
sda 8:0 0 3.6T 0 disk
├─sda1 8:1 0 2M 0 part
├─sda2 8:2 0 50G 0 part /boot
├─sda3 8:3 0 1.3T 0 part
│ ├─F31-F31Root 253:0 0 200G 0 lvm /
│ ├─F31-F31Swap 253:1 0 12G 0 lvm [SWAP]
│ ├─F31-F31USE 253:2 0 50G 0 lvm /usr
│ ├─F31-F31Home 253:9 0 200G 0 lvm /home
│ ├─F31-F31Var 253:11 0 50G 0 lvm /var
│ ├─F31-F31Tmp 253:12 0 50G 0 lvm /tmp
│ ├─F31-F31Data1 253:13 0 500G 0 lvm /Data1
│ └─F31-F31Data2 253:14 0 238G 0 lvm /Data2
└─sda4 8:4 0 2.3T 0 part
├─Data-DataDisk01 253:6 0 600G 0 lvm /DataDisk1
├─Data-DataDisk02 253:7 0 600G 0 lvm /DataDisk2
├─Data-DataDisk03 253:8 0 600G 0 lvm /DataDisk3
└─Data-DataDisk04 253:10 0 576G 0 lvm /DataDisk4
Now i have another hard disk :
sdb 8:16 0 1.8T 0 disk
├─OldData-OldTorrents 253:3 0 600G 0 lvm
├─OldData-lvol1 253:4 0 600G 0 lvm
└─OldData-lvol2 253:5 0 663G 0 lvm
I was planning to put some old data from a dying hard disk on but
haven't done it yet , so it is basically an empty hard disk .
In other words if need be i can reformat or do whatever it is required
with it , without fearing that am going to loss any data .
The drive is basically empty .
Now what's the safest way to enlarge / resize the /var partition with
the use of /dev/sdb space ???
Since it something that i haven't done before i would rather ask for
some advice / example before i try anything .
3 years, 4 months
F33 no longer notices SD card on iogear hub
by Michael Hennebry
After going from Centos 7 to F33,
I can no longer use the SD card port on my iogear multi-thing hub.
GUH287.
What gives?
How do I fix it?
--
Michael hennebry(a)web.cs.ndsu.NoDak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph, and the blood of a virgin."
-- someeecards
3 years, 4 months
KDE Startx -
by Bob Goodwin
I usually run XFCE wit startx" at boot. I dnf group installed KDE but I
find that it does not start with the same start command. Will this work?
If so, what is the proper command in Fedora-33 after using "switchdesk"
and rebooting?
--
Bob Goodwin - Zuni, Virginia, USA
FEDORA-32/64bit LINUX XFCE Fastmail POP3
3 years, 4 months
CUPS-PDF issue.
by Erik P. Olsen
I am trying to print to pdf using CUPS-PDF. The output is supposed to go to
member files in /var/spool/<username> but the created members are all empty.
I am apparently missing some configuration settings but can't find what it may be.
Appreciate any pointers to how I can fix it.
--
Erik P. Olsen - Copenhagen, Denmark
Fedora 33/64 bit xfce Claws-Mail POP3 Gramps 5.1.2 Bacula 9.6.5
3 years, 4 months
Re: CUPS-PDF issue.
by Ed Greshko
On 06/12/2020 20:09, Erik P. Olsen wrote:
> On 2020-12-06 at 19:07:54 Ed Greshko wrote:
>
>> On 06/12/2020 18:58, Erik P. Olsen wrote:
>>> I am trying to print to pdf using CUPS-PDF. The output is supposed to go to
>>> member files in/var/spool/<username> but the created members are all empty.
>>>
>>> I am apparently missing some configuration settings but can't find what it may be.
>>> Appreciate any pointers to how I can fix it.
>> I would check /var/log/cups/cups-pdf-Cups-PDF_log and /etc/cups/cups-pdf.conf.
>>
>> I've never touched /etc/cups/cups-pdf.conf and it contains
>>
>> #Out /var/spool/cups-pdf/${USER}
>> Out ${DESKTOP}
>>
>> So, the output ends up in ~/Desktop on my system.
> OK, I see. In my case it contains
>
> Out /var/spool/cups-pdf/${USER}
> #Out ${DESKTOP}
>
> And privileges for cups-pdf is root:root so no surprise nothing was written. Will change
> Out to point to a directory in my home folder.
>
> Thanks for your answer. (I must have asked good question :-)
Good it worked out. Yes, the question was outstanding. :-) :-)
---
The key to getting good answers is to ask good questions.
3 years, 4 months
rpm --rebuilddb error
by ToddAndMargo
Hi All,
How do I fix this?
# rpm --rebuilddb
error: can't create transaction lock on /var/lib/rpm/.rpm.lock
(Permission denied)
Many thanks,
-T
3 years, 4 months