Unix Technical Forum

How to change partition number & block size

This is a discussion on How to change partition number & block size within the Linux Operating System forums, part of the Unix Operating Systems category; --> Hallo, I need some help. I'm looking for some utility that will change general partition number assigns, and block ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-17-2008, 07:04 AM
spagi
 
Posts: n/a
Default How to change partition number & block size

Hallo,
I need some help. I'm looking for some utility that will change general partition number assigns,
and block size on nonempty partition.
Best regards,

spagi
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-17-2008, 07:04 AM
Loren Coe
 
Posts: n/a
Default Re: How to change partition number & block size

In article <pan.2003.06.26.18.55.30.457738@priv5.onet.pl>, spagi wrote:
> Hallo,
> I need some help. I'm looking for some utility that will change general partition number assigns,
> and block size on nonempty partition. > Best regards, > > spagi


Yikes, duck! the nitwits are attacking.... --Loren

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-17-2008, 07:04 AM
spagi
 
Posts: n/a
Default Re: How to change partition number & block size

> Yikes, duck! the nitwits are attacking.... --Loren
f... you - if you cant help just shut your mouth up.
i know that my english is bad, but this is not the reason to insulting me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-17-2008, 07:04 AM
Kenneth A Kauffman
 
Posts: n/a
Default Re: How to change partition number & block size


"spagi" <marcingl@priv5.onet.pl> wrote in message
newsan.2003.06.26.19.21.52.978954@priv5.onet.pl. ..
> > Yikes, duck! the nitwits are attacking.... --Loren

> f... you - if you cant help just shut your mouth up.
> i know that my english is bad, but this is not the reason to insulting me.
>


I believe you will need to rebuild the partitions and not "convert" them.

<ducks>
ken k


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-17-2008, 07:04 AM
lcoe
 
Posts: n/a
Default Re: How to change partition number & block size

spagi <marcingl@priv5.onet.pl> wrote:
>> Yikes, duck! the nitwits are attacking.... --Loren

> f... you - if you cant help just shut your mouth up.
> i know that my english is bad, but this is not the reason to insulting me.
>


not the English, the question. it's from nowhere. i suppose you don't
want to create the new partition and copy the data, right? you want
some kind of partition "magic" utility.

well, with the size of disks today, that may be coming soon if not already,
but it would only do what you can do for yourself if you actually wanted
to learn linux. --Loren

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-17-2008, 07:04 AM
spagi
 
Posts: n/a
Default Re: How to change partition number & block size

> not the English, the question. it's from nowhere. i suppose you don't

ok, so i will try to tell you more clearly.
1) I want to convert the block size on my partition from 1024 to f.e.
2048, the partition is very big and has also data on it.
2) I want to change root partition number from /dev/hda1 to /dev/hda2,
because fdisk says "Partition table entries are not in disk order"
Bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-17-2008, 07:04 AM
spagi
 
Posts: n/a
Default Re: How to change partition number & block size

> i don't recall this message ever showing for me and i have a system that
> boots linux from the 2nd partition and the 1st is Dos. and there is
> no way that i know to "change" the partition number, it is based on the
> order in the partition table. this is true for dos and linux.


this message is showing when first partition is after second partition :-)
you can get that f.e. by switching the partitions with partition magic.
i found stupid way to solve this - first the
partitions become removed and next recreated witch some partition
recovery utility.
after that the order on my hd was good.
i asked you because i wanted to find more "professional" solution.
-- nitwit
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-17-2008, 07:05 AM
Kenneth A Kauffman
 
Posts: n/a
Default Re: How to change partition number & block size


"lcoe" <lcoe@c1932201-a.attbi.com> wrote in message
news:lDKKa.25865$Fy6.9059@sccrnsc03...
> spagi <marcingl@priv5.onet.pl> wrote:
> >> i don't recall this message ever showing for me and i have a system

that
> >> boots linux from the 2nd partition and the 1st is Dos. and there is
> >> no way that i know to "change" the partition number, it is based on the
> >> order in the partition table. this is true for dos and linux.

>
> > this message is showing when first partition is after second partition

:-)
> > you can get that f.e. by switching the partitions with partition magic.

> ^^^^
> what is this ^^^^ ?
>
> > i found stupid way to solve this - first the
> > partitions become removed and next recreated witch some partition
> > recovery utility.
> > after that the order on my hd was good.

>
> so, what about changing block size? that's a little more complicated
> than shrinking a partition.
>
> > i asked you because i wanted to find more "professional" solution.
> > -- nitwit

>
> Pro, me?. i dunno. yes, i have worked in the industry for 35yrs or so,
> the last 11 in Unix environments and the last 5 as an IT Specialist, a

title
> for someone who cannot be classified any other way. i would never expect
> anyone in our shop (hp.rsn) to diddle with a partition table w/some 3rd
> party utility. if they did and managed to screw up a live system, it
> would likely mean termination (if anyone could prove it ;-).
>
> the only folks who screwed around like that were the Software Engineers
> and then only on their home systems. --Loren
>
> p.s. for those interested, the _very_ first "free unix" was not Unix
> at all. it ran on CP/M, was called Zcpr and was written by
> the same folks who wrote the original att Unix. these folks
> wanted something to run the common utilities of Unix on their
> home system.
>


As I stated before, changing block size has to be done by rebuilding the
storage. Backup, rebuild the partition and restore. If its truely
important information, I would not even trust a "magic utility" if it
exists.

ken k


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-17-2008, 07:05 AM
mjt
 
Posts: n/a
Default Re: How to change partition number & block size

spagi wrote:

> I need some help. I'm looking for some utility that will change general
> partition number assigns, and block size on nonempty partition.


..... 'parted' at gnu.org

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
Michael J. Tobler: motorcyclist, surfer, # Black holes result
skydiver, and author: "Inside Linux", # when God divides the
"C++ HowTo", "C++ Unleashed" # universe by zero

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com