Groups | Search | Server Info | Login | Register


Groups > alt.os.linux.mageia > #28089

Re: Partitioning the disk

From "David W. Hodgins" <dwhodgins@nomail.afraid.org>
Newsgroups alt.os.linux.mageia
Subject Re: Partitioning the disk
Date 2026-04-05 11:03 -0400
Organization A noiseless patient Spider
Message-ID <op.3nbasuyga3w0dxdave@hodgins.homeip.net> (permalink)
References <10qt6t1$19riq$1@dont-email.me>

Show all headers | View raw


On Sun, 05 Apr 2026 04:24:43 -0400, kyuzo <kyuzo@tenno.com> wrote:

> I have to partition again my disk, too little space for root partition,
> so i must save my /home partition in a temporary external disk (all the
> files, of course the hidden too), shrink the /home partition and enlarge
> the root one.
> a cp command is enough for the migration of the /home files?
> and which parameters add to the command?
> And could I verify the correct migration then, mounting the /home on the
> external disc?
> Tanks in advance.

I"ve used the following.

Make sure the external disk is is a linux file system that will support ownership,
permissions, hardlinks and soft links, and that it has enough space.

Reboot, switch to a console login, and login as root. This makes sure all files normally
in use when logged in as the regular user are closed.

Mount the external disk

# mkdir -p /BKUP

Replace sda11 in the following command with the correct partition

# mount /dev/sda11 /BKUP

Replace /home/dave in the following command with the correct username.
Don't forget the trailing / on the paths
Double check the paths to make sure there are no typos

# rsync -auvxSP --specials --delete  --exclude="lost+found" /home/dave/ /BKUP/home/dave/

To recover the files if needed, repeat the process, reversing the order of the directories.

Regards, Dave Hodgins

Back to alt.os.linux.mageia | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Partitioning the disk kyuzo <kyuzo@tenno.com> - 2026-04-05 10:24 +0200
  Re: Partitioning the disk "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2026-04-05 11:03 -0400
  Re: Partitioning the disk William Unruh <unruh@invalid.ca> - 2026-04-06 01:54 +0000
    Re: Partitioning the disk kyuzo <kyuzo@tenno.com> - 2026-04-06 10:57 +0200
      Re: Partitioning the disk William Unruh <unruh@invalid.ca> - 2026-04-08 05:06 +0000

csiph-web