Re: I can't expand the Debian-partition

2018-04-09 Thread David Christensen

On 04/09/18 06:04, Gdsi wrote:

Hi all.
After copying a bulk files I felt the limitation of Debian-partition, and decided expand 
it, as a space on disk was. The partitions on disk placed so: sda2-Debian, sda3-swap.  I 
deleted the sda3-swap, and expand sda2-Debian, and create swap again.  I used 
"parted" with terminal. After all 'parted' and 'fdisk' are seeing increasing 
sda2-Debian and sda3-swap, but graphical file manager 'Thunar' don't seeing increasing 
sda2-Debian (i.e. its status-bar expose Free space: 733,9 MB) the size was before all 
changes .Besides this in the booting time are doing the check of disk, duration is 2 
min.If I execute:

---/home/user# fdisk /dev/sda--

there appear:

-Changes will remain in memory only, until you decide to write them.
Be careful before using the write command--

But after attempts executes  command  write:

---Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy.
The kernel still uses the old table. The new table will be used at the next 
reboot or after you run partprobe(8) or kpartx(8)-
I don't know what may do. Give me any advices, please.


Run the following commands as root.  Cut and paste both the commands and 
their output to a reply:


# fdisk -l /dev/sda

# parted /dev/sda u s p free


David



Re: I can't expand the Debian-partition

2018-04-09 Thread songbird
Gdsi wrote:
> Hi all.
> After copying a bulk files I felt the limitation of Debian-partition, and 
> decided expand it, as a space on disk was. The partitions on disk placed so: 
> sda2-Debian, sda3-swap.  I deleted the sda3-swap, and expand sda2-Debian, and 
> create swap again.  I used "parted" with terminal. After all 'parted' and 
> 'fdisk' are seeing increasing sda2-Debian and sda3-swap, but graphical file 
> manager 'Thunar' don't seeing increasing sda2-Debian (i.e. its status-bar 
> expose Free space: 733,9 MB) the size was before all changes .Besides this in 
> the booting time are doing the check of disk, duration is 2 min.If I execute:
>
> ---/home/user# fdisk /dev/sda-- 
>
> there appear: 
>
> -Changes will remain in memory only, until you decide to write them.
> Be careful before using the write command--
>
> But after attempts executes  command  write: 
>
> ---Command (m for help): w
> The partition table has been altered.
> Calling ioctl() to re-read partition table.
> Re-reading the partition table failed.: Device or resource busy.
> The kernel still uses the old table. The new table will be used at the next 
> reboot or after you run partprobe(8) or kpartx(8)-
> I don't know what may do. Give me any advices, please.

  reading along there, it says to reboot or use ...  the
simple answer to me is to reboot.

  you have backups and rescue media if needed right?


  songbird



Re: I can't expand the Debian-partition

2018-04-09 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Mon, Apr 09, 2018 at 09:04:56AM -0400, Gdsi wrote:
> Hi all.
> After copying a bulk files I felt the limitation of Debian-partition, and 
> decided expand it, as a space on disk was. The partitions on disk placed so: 
> sda2-Debian, sda3-swap.  I deleted the sda3-swap, and expand sda2-Debian, and 
> create swap again.  I used "parted" with terminal. After all 'parted' and 
> 'fdisk' are seeing increasing sda2-Debian and sda3-swap, but graphical file 
> manager 'Thunar' don't seeing increasing sda2-Debian (i.e. its status-bar 
> expose Free space: 733,9 MB) the size was before all changes .Besides this in 
> the booting time are doing the check of disk, duration is 2 min.If I execute:

I guess you have to tell your file system that
it can make use of that extra space. That's what
"resize2fs" is for (NOTE: I've assumed you have
an ext4 file system on sda2-Debian: otherwise
you'll need another command).

It will default to your (new) partition size, so
just giving it the device name should work.

Back up your valuable data first!

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlrLa0EACgkQBcgs9XrR2kY1rQCePW45Xw8Y1R6bLQt10EA/jfG0
WlwAn1O00jjna59G3V9vI92vG+SyPkcd
=+Uj4
-END PGP SIGNATURE-