gparted questions

classic Classic list List threaded Threaded
11 messages Options
Bob
Reply | Threaded
Open this post in threaded view
|

gparted questions

Bob
I had installed Ubuntu on a laptop that had a 500gb disk drive.  Finding the
hard drive too small for what I wanted to do I bought a 2tb drive and had it
installed in the laptop.  Used dd to copy the 500gb (atached via a USB adapter)
disk to the new 2tb disk.  The 2tb disk boots and runs most programs correctly.

when i run gparted I get the following:

robert@MARS:~$ sudo gparted
[sudo] password for robert:
Created symlink /run/systemd/system/-.mount ?åÆ /dev/null.
Created symlink /run/systemd/system/boot-efi.mount ?åÆ /dev/null.
Created symlink /run/systemd/system/home.mount ?åÆ /dev/null.
Created symlink /run/systemd/system/media-robert-Ubuntu\x2017.10\x20amd64.mount
åÆ /dev/null.
Created symlink /run/systemd/system/run-user-121.mount ?åÆ /dev/null.
Created symlink /run/systemd/system/tmp.mount ?åÆ /dev/null.
No protocol specified

(gpartedbin:3740): Gtk-WARNING **: cannot open display: :0
Removed /run/systemd/system/-.mount.
Removed /run/systemd/system/boot-efi.mount.
Removed /run/systemd/system/home.mount.
Removed /run/systemd/system/media-robert-Ubuntu\x2017.10\x20amd64.mount.
Removed /run/systemd/system/run-user-1000.mount.
Removed /run/systemd/system/run-user-121.mount.
Removed /run/systemd/system/tmp.mount.
robert@MARS:~$

Now the only thing changed on the laptop was the hard drive so why can't
gparted work with the display?  It worked when the 500gb drive was in the
laptop.


Running qparted from a live 17.10 CD has no problems with the display.  The
500gb drive that was copied to the 2tb drive had free space in the middle of
the disk space and since the new drive is larger there is free space at the end
of the drive.  I want to now move partitions to the end of the 2tb disk.  As
far as I can see there is no way to tell gparted which free space to use when
moving a partition.  If the partition I try to move fits in the first free
space gparted will move ti there not to the free space at end of the drive.
How do I get gparted to use the free space at the end of the disk drive?


Now that I have moved one partition it has a key symbol displayed and I can no
longer select "Resize/Move" for that partition.  I assume that the key symbol
indicates the partition is locked, how do I remove the lock so I can move it
again?

--
Robert Blair


My choices in life were either to be a piano player in a whore house or a politician. And to tell the truth, there's hardly any difference!  -- Harry Truman

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Colin Law
On 25 June 2018 at 08:31, Bob <[hidden email]> wrote:

> I had installed Ubuntu on a laptop that had a 500gb disk drive.  Finding the
> hard drive too small for what I wanted to do I bought a 2tb drive and had it
> installed in the laptop.  Used dd to copy the 500gb (atached via a USB adapter)
> disk to the new 2tb disk.  The 2tb disk boots and runs most programs correctly.
>
> when i run gparted I get the following:
>
> robert@MARS:~$ sudo gparted
> [sudo] password for robert:
> Created symlink /run/systemd/system/-.mount ?åÆ /dev/null.
> Created symlink /run/systemd/system/boot-efi.mount ?åÆ /dev/null.
> Created symlink /run/systemd/system/home.mount ?åÆ /dev/null.
> Created symlink /run/systemd/system/media-robert-Ubuntu\x2017.10\x20amd64.mount
> åÆ /dev/null.
> Created symlink /run/systemd/system/run-user-121.mount ?åÆ /dev/null.
> Created symlink /run/systemd/system/tmp.mount ?åÆ /dev/null.
> No protocol specified
>
> (gpartedbin:3740): Gtk-WARNING **: cannot open display: :0

Don't run graphical apps from a terminal with sudo(it might work with
gksudo but that is also not recommended), run it from the GUI by, for
example, hitting the WIN key and typing gparted.

Having run a graphical app using sudo you may have messed up file
ownership in some files in your home directory. If you have problems
with apps complaining then google for how to change all ownership back
to yourself in your home directory.

Colin

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Liam Proven
In reply to this post by Bob
On Mon, 25 Jun 2018 at 09:33, Bob <[hidden email]> wrote:
>
> Used dd to copy the 500gb (atached via a USB adapter)
> disk to the new 2tb disk.

That was not a good way to do it. It will copy the partition
structures for a 500GB drive onto the bigger one, leading to an
incorrect partition map.

There are multiple tools for doing this, and they're quicker, too.
``dd'' copies empty blocks as well as used ones.

It's been some years since I did it myself (on a whole-disk basis),
but when I did last, I used CloneZilla:

https://clonezilla.org/

Ghost4Linux will do it too...

https://sourceforge.net/projects/g4l/

--
Liam Proven - Profile: https://about.me/liamproven
Email: [hidden email] - Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Bob
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Bob
In reply to this post by Colin Law
** Reply to message from Colin Law <[hidden email]> on Mon, 25 Jun 2018
08:40:23 +0100

> On 25 June 2018 at 08:31, Bob <[hidden email]> wrote:
> > I had installed Ubuntu on a laptop that had a 500gb disk drive.  Finding the
> > hard drive too small for what I wanted to do I bought a 2tb drive and had it
> > installed in the laptop.  Used dd to copy the 500gb (atached via a USB adapter)
> > disk to the new 2tb disk.  The 2tb disk boots and runs most programs correctly.
> >
> > when i run gparted I get the following:
> >
> > robert@MARS:~$ sudo gparted
> > [sudo] password for robert:
> > Created symlink /run/systemd/system/-.mount ?åÆ /dev/null.
> > Created symlink /run/systemd/system/boot-efi.mount ?åÆ /dev/null.
> > Created symlink /run/systemd/system/home.mount ?åÆ /dev/null.
> > Created symlink /run/systemd/system/media-robert-Ubuntu\x2017.10\x20amd64.mount
> > åÆ /dev/null.
> > Created symlink /run/systemd/system/run-user-121.mount ?åÆ /dev/null.
> > Created symlink /run/systemd/system/tmp.mount ?åÆ /dev/null.
> > No protocol specified
> >
> > (gpartedbin:3740): Gtk-WARNING **: cannot open display: :0
>
> Don't run graphical apps from a terminal with sudo(it might work with
> gksudo but that is also not recommended), run it from the GUI by, for
> example, hitting the WIN key and typing gparted.
>
> Having run a graphical app using sudo you may have messed up file
> ownership in some files in your home directory. If you have problems
> with apps complaining then google for how to change all ownership back
> to yourself in your home directory.

I normally do not run GUI programs from the command line, I did it this time to
see why gparted does not run.  When I press the win key and type gparted and
then click the icon gparted starts.  There is icon on the status bar at the top
of the screen and a pop-up requesting my password, when I enter the password
gparted ends.  I ran gparted from the command line to see why it does not run.

--
Robert Blair


A government big enough to give you everything you want, is strong enough to take everything you have.  -- Thomas Jefferson

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Bob
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Bob
In reply to this post by Liam Proven
** Reply to message from Liam Proven <[hidden email]> on Mon, 25 Jun 2018
12:08:11 +0200

> On Mon, 25 Jun 2018 at 09:33, Bob <[hidden email]> wrote:
> >
> > Used dd to copy the 500gb (atached via a USB adapter)
> > disk to the new 2tb disk.
>
> That was not a good way to do it. It will copy the partition
> structures for a 500GB drive onto the bigger one, leading to an
> incorrect partition map.

The partition map is the same on both drives except for the free space at the
end of the larger disk.

What makes the map on the larger drive invalid?


> There are multiple tools for doing this, and they're quicker, too.
> ``dd'' copies empty blocks as well as used ones.

There may be other tools that are better but dd works and it ran fast enough
for me.


> It's been some years since I did it myself (on a whole-disk basis),
> but when I did last, I used CloneZilla:
>
> https://clonezilla.org/
>
> Ghost4Linux will do it too...
>
> https://sourceforge.net/projects/g4l/

--
Robert Blair


The Constitution is not a document for the government to restrain the people: it is an instrument for the people to restrain the government.  -- Patrick Henry

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Oliver Grawert
hi,
Am Montag, den 25.06.2018, 11:04 -0700 schrieb Bob:

> > That was not a good way to do it. It will copy the partition
> > structures for a 500GB drive onto the bigger one, leading to an
> > incorrect partition map.
> The partition map is the same on both drives except for the free
> space at the
> end of the larger disk.
>
> What makes the map on the larger drive invalid?

nothing will be invalid, but if you create a fresh partition table the
tool creating it usually talks to the controller to align the sectors
properly to the physical sectors of the hardware to give you the best
performance. that alignment will be gone which can make you miss some
disk access performance. beyond this, a partition table is indeed just
a partition table (and gparted will likely also adjust it once you
resize the partition)

ciao
        oli


--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Colin Law
In reply to this post by Bob
On 25 June 2018 at 18:54, Bob <[hidden email]> wrote:

>> >
>> > (gpartedbin:3740): Gtk-WARNING **: cannot open display: :0


Are you running Wayland?  You can select which to use at the login
screen.  If so that may be the problem, try X instead.

Colin

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Bob
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Bob
** Reply to message from Colin Law <[hidden email]> on Mon, 25 Jun 2018
20:29:49 +0100

> On 25 June 2018 at 18:54, Bob <[hidden email]> wrote:
>
> >> >
> >> > (gpartedbin:3740): Gtk-WARNING **: cannot open display: :0
>
>
> Are you running Wayland?  You can select which to use at the login
> screen.  If so that may be the problem, try X instead.

I have seen these code names on this list but have no idea what they mean.  I
am running Ubuntu 17.10 with no extra features.  I was under the impression
that X was the standard GUI programming interface so I expect it to be on my
system.  As you can tell I am not a long time linux user.

--
Robert Blair


The inherent vice of capitalism is the unequal sharing of the blessings.  The inherent blessing of socialism is the equal sharing of misery.  -- Winston Churchill

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Colin Law
On 26 June 2018 at 05:36, Bob <[hidden email]> wrote:

> ** Reply to message from Colin Law <[hidden email]> on Mon, 25 Jun 2018
> 20:29:49 +0100
>
>> On 25 June 2018 at 18:54, Bob <[hidden email]> wrote:
>>
>> >> >
>> >> > (gpartedbin:3740): Gtk-WARNING **: cannot open display: :0
>>
>>
>> Are you running Wayland?  You can select which to use at the login
>> screen.  If so that may be the problem, try X instead.
>
> I have seen these code names on this list but have no idea what they mean.  I
> am running Ubuntu 17.10 with no extra features.  I was under the impression
> that X was the standard GUI programming interface so I expect it to be on my
> system.  As you can tell I am not a long time linux user.

On 17.10 I think Wayland may have been the default but this was
changed for 18.10.  As I said you can switch from the login screen.
Click the Icon near the login name. I haven't got a 17.10 system any
more so can't remember exactly what it looks like.  If it is not
obvious which to choose then ask again.

Colin

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Liam Proven
In reply to this post by Bob
On Tue, 26 Jun 2018 at 06:38, Bob <[hidden email]> wrote:
>
> I have seen these code names on this list but have no idea what they mean.  I
> am running Ubuntu 17.10 with no extra features.

Then it's time to upgrade.

Ubuntu 17.10 is a short-term release with only 9 months of updates.
Its end of life is next month.

https://endoflife.software/operating-systems/linux/ubuntu

To find what display server you are using, click the cogwheel on the
login screen. It will offer a choice: GNOME on X or GNOME on Wayland.

--
Liam Proven - Profile: https://about.me/liamproven
Email: [hidden email] - Google Mail/Hangouts/Plus: [hidden email]
Twitter/Facebook/Flickr: lproven - Skype/LinkedIn: liamproven
UK: +44 7939-087884 - ČR (+ WhatsApp/Telegram/Signal): +420 702 829 053

--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Reply | Threaded
Open this post in threaded view
|

Re: gparted questions

Oliver Grawert
In reply to this post by Colin Law
hi,
Am Dienstag, den 26.06.2018, 07:57 +0100 schrieb Colin Law:

> On 26 June 2018 at 05:36, Bob <[hidden email]> wrote:
> >
> > ** Reply to message from Colin Law <[hidden email]> on Mon, 25
> > Jun 2018
> > 20:29:49 +0100
> >
> > >
> > > On 25 June 2018 at 18:54, Bob <[hidden email]>
> > > wrote:
> > >
> > > >
> > > > >
> > > > > >
> > > > > >
> > > > > > (gpartedbin:3740): Gtk-WARNING **: cannot open display: :0
> > >
> > > Are you running Wayland?  You can select which to use at the
> > > login
> > > screen.  If so that may be the problem, try X instead.
> > I have seen these code names on this list but have no idea what
> > they mean.  I
> > am running Ubuntu 17.10 with no extra features.  I was under the
> > impression
> > that X was the standard GUI programming interface so I expect it to
> > be on my
> > system.  As you can tell I am not a long time linux user.
> On 17.10 I think Wayland may have been the default but this was
> changed for 18.10.  As I said you can switch from the login screen.
> Click the Icon near the login name. I haven't got a 17.10 system any
> more so can't remember exactly what it looks like.  If it is not
> obvious which to choose then ask again.
on a side note: it might also be that the livecd session actually
defaults to X11 instead of wayland ... for greater compatibility or
because the installer had no wayland support ... that would explain the
difference in behaviour between the installed 17.10 and the live system
... 

btw, the related bug was:

https://bugs.launchpad.net/ubuntu/+bug/1713313

ciao
        oli
--
ubuntu-users mailing list
[hidden email]
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

signature.asc (188 bytes) Download Attachment