From: Happy Oyster on
On Mon, 28 Sep 2009 13:01:34 +0200, Eef Hartman <E.J.M.Hartman(a)tudelft.nl>
wrote:

>Happy Oyster wrote:
>> fdisk is best. Only, I forgot if it can change the size of a partition AND KEEP
>> THE CONTENTS.
>
>When the start cilinder is the same (and the end one is NOT within the
>fs, it always does).
>So to INcrease a partition's size:
>use fdisk to remove and then recreate the partition (begin cilinder the
>same as it was, end one - of course - larger)

Does fdisk overwrite some values, this way destroying something? I mean OTHER
values than the cylinder numbers.


>then resize the fs within the partition

HOW can I resize the fs? Are there tables? Where are the parameters stored?



>to DEcrease it is just the opposite:
>first resize the fs (I mostly make it smaller then the partition will be
>to save myself the exact calculation of "how large it must become"
>use fdisk to resize the partition
>then - if you use my method - resize the fs again to fit into the
>resized partition.
>
>All, of course, with the partition UNmounted, and when the disk is
>active in some way (another partition must stay in use or so), reboot
>after the fdisk commands to "reread the partition table"

How do I resize a fs? Until Windows 2000 everything was fine, but M$ somehow
changed the strategy of how the data clusters are spread over the partition
area. Instead of beginning at 0 and then "grow" towards the end cylinder, they
made access more evenly distributed, this way trying to reduce the average
access time. I never got to know if they "on the fly", while at work, rearrange
the distribution to optimize access.

Does Linux ext2 or ext3 use the old method or is there a distribution over the
whole area, just like with Win2k+ ? The problem is that reducing partition size
would mean to REALLY squeeze the large spreading area into a smaller one, so
cutting off at an "upper end" cylinder alone could not work.



>> To mount one must have root right, isn't it?
>
>No, you can delegate mount rights to normal users in the /etc/fstab, or
>when using udev/hal, those daemons will handle the root rights for you
>(that's why you can use a memory stick "as a normal user", the HAL
>daemon will actually do the mounting cq umounting).

I never used daemons, so I have no idea how to deal with them.

Delegating rights to some users I always consider as a risk. The big question
for me is: WHICH rights can I delegate to a normal user, and which risk is
associated with each of these rights.
--

Interview mit dem Autor der "Reimbibel"

http://www.nrhz.de/flyer/beitrag.php?id=14183
From: user on
Happy Oyster wrote:

>
> You are ignorant of engineering work, and you are proud of it. This is the
> typical behavior of so many Linuxers.
>
> It is sad.



X-Newsreader: Forte Agent 3.3/32.846
Just what I thought: a troll from the winblows world.
From: Eef Hartman on
Happy Oyster wrote:
> Does fdisk overwrite some values, this way destroying something? I mean OTHER
> values than the cylinder numbers.

No, it ONLY writes the 16 bytes of the partition info. Nothing else!
This is _NOT_ Windows, programs should only do what they're asked to do....

>> then resize the fs within the partition
>
> HOW can I resize the fs? Are there tables? Where are the parameters stored?

Depending on the fs type:
resize2fs (for ext2/3)
resize_reiserfs (for reiser 3)
and xfs and jfs will probably have their own tools for that.

See the man pages how to use these programs (essentially they extend the
fs to the size of the partition, unless you specify a maximum size).

> Does Linux ext2 or ext3 use the old method or is there a distribution over the
> whole area, just like with Win2k+ ? The problem is that reducing partition size
> would mean to REALLY squeeze the large spreading area into a smaller one, so
> cutting off at an "upper end" cylinder alone could not work.

resize2fs "with a maximum size" will make sure all "in use" blocks are
within that size, so the "upper end" of the partition can then be freed.
--
Eef Hartman, Delft University of Technology, dept. SSC/ICT
From: DenverD on
> Just what I thought: a troll from the winblows world.

since Mr. Bill can hire them to evangelize until they "own" the
newsgroups, it is easier to ignore than confront..

--
DenverD (Linux Counter 282315) via Thunderbird 2.0.0.23 (20090817),
KDE 3.5.7 "release 72-11", openSUSE Linux 10.3, 2.6.22.19-0.4-default
#1 SMP i686 athlon
From: DenverD on
you don't believe there are paid FUD pushers working for the Redmond gang?

where have you been the last 15 years? asleep?

--
DenverD (Linux Counter 282315) via Thunderbird 2.0.0.23 (20090817),
KDE 3.5.7 "release 72-11", openSUSE Linux 10.3, 2.6.22.19-0.4-default
#1 SMP i686 athlon
First  |  Prev  |  Next  |  Last
Pages: 1 2 3 4 5 6 7 8 9 10 11
Prev: useradd issue
Next: ttyUSB0 and ICS