Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: partition sizing in linux  (Read 9301 times)

0 Members and 1 Guest are viewing this topic.

smeezekitty

  • Guest
partition sizing in linux
« on: September 03, 2009, 12:51:58 AM »
ok heres the situation
i have two partitions
/dev/hda1 is the boot 600mb
/dev/hda2 is just for general stuff and is 500mb
the disk is 1500mb
how do i enlarge hda2 to get the extra 400mb without losing data and no backups?

Geek-9pm


    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: partition sizing in linux
« Reply #1 on: September 03, 2009, 02:07:12 AM »
Gnome Partition Editor.
http://gparted.sourceforge.net/

smeezekitty

  • Guest
Re: partition sizing in linux
« Reply #2 on: September 03, 2009, 12:37:07 PM »
forgot to mention
but i would prefer doing it without starting the windowing system

Salmon Trout

  • Guest
Re: partition sizing in linux
« Reply #3 on: September 03, 2009, 12:42:47 PM »
forgot to mention
but i would prefer doing it without starting the windowing system


GNU Partition Editor (parted) is a package consisting of a library (libparted) and a textmode frontend (parted). GParted, on the other hand, is a Gnome partition editor that uses libparted.

http://www.gnu.org/software/parted/index.shtml

smeezekitty

  • Guest
Re: partition sizing in linux
« Reply #4 on: September 03, 2009, 01:07:29 PM »
i downloaded parted
did
./configure
make
make install
then i typed parted and an error came up:
parted: error while loading shared libraries: libparted-1.6.so.13: cannot open s
hared (o)object file: no such file or directory

any ideas on this error

Salmon Trout

  • Guest
Re: partition sizing in linux
« Reply #5 on: September 03, 2009, 01:22:05 PM »
i downloaded parted
did
./configure
make
make install
then i typed parted and an error came up:
parted: error while loading shared libraries: libparted-1.6.so.13: cannot open s
hared (o)object file: no such file or directory

any ideas on this error


You can try a reboot and see if the library links are updated, and if not maybe copy the library from /usr/local/lib to /usr/lib (or vice versa) (which is a kludge but never mind)

I looked for where you told us what distro you were running, but I guess I must have missed it. Maybe you wrote it really really small

smeezekitty

  • Guest
Re: partition sizing in linux
« Reply #6 on: September 03, 2009, 01:38:22 PM »
You can try a reboot and see if the library links are updated, and if not maybe copy the library from /usr/local/lib to /usr/lib (or vice versa) (which is a kludge but never mind)

I looked for where you told us what distro you were running, but I guess I must have missed it. Maybe you wrote it really really small
i rebooted and it still didnt work
let me log into CH with linux i will be back in a second

smeezekitty

  • Guest
Re: partition sizing in linux
« Reply #7 on: September 03, 2009, 01:44:43 PM »
i have attached a directory listing of the /usr/ directory


[attachment deleted by admin]

Salmon Trout

  • Guest
Re: partition sizing in linux
« Reply #8 on: September 03, 2009, 01:48:24 PM »
He attached a text file with 12,844 lines...  :)

Why have I got to do your looking for you?

He still has not said what distro

he did not read my post properly

Either search in that text file or look in /usr/lib and /usr/local/lib for files called libparted-1.6.so.13(something)

if they are in one, copy them to the other.

If they are in both, start Googling...



smeezekitty

  • Guest
Re: partition sizing in linux
« Reply #9 on: September 03, 2009, 01:52:15 PM »
the distro is DSL but does that matter
i see in /usr/local/lib only:
libparted-1.6.so.13
libparted-1.6.so.13.11
libparted.a
libparted.la
libparted.so
libparted.dat.old


Salmon Trout

  • Guest
Re: partition sizing in linux
« Reply #10 on: September 03, 2009, 01:53:33 PM »
Well do what I told you

smeezekitty

  • Guest
Re: partition sizing in linux
« Reply #11 on: September 03, 2009, 02:05:53 PM »
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

->/dev/hda:(parted)
heres what it says now

Salmon Trout

  • Guest
Re: partition sizing in linux
« Reply #12 on: September 03, 2009, 02:08:14 PM »
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

->/dev/hda:(parted)
heres what it says now

Well, whoop-de-doo.

smeezekitty

  • Guest
Re: partition sizing in linux
« Reply #13 on: September 03, 2009, 02:12:15 PM »
Number  Start   End     Size    Type      File system  Flags
1       32kB    702MB   702MB   primary   ext2         boot
2       702MB   1206MB  504MB   primary   ext2         
(parted) resize 2 702MB 1306MB                                           
No Implementation: This ext2 file system has a rather strange layout!  Parted
can't resize this (yet).
(parted)                         
i suppose thats not good

Salmon Trout

  • Guest
Re: partition sizing in linux
« Reply #14 on: September 03, 2009, 02:18:40 PM »
Well, there's always Google, or the man pages or linux.org or the parted online help or approx 9.9999 squillion other places to look. That's the beauty of Linux