Skip to contentSkip to conversation

Is repartitioning possible while one of the partitions is mounted?

DISCUSSION Tim Cussins 3 participants 6 messages Aug 2, 2010 – Aug 30, 2010 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi all,

I just spotted post regarding upcoming Runtime Partitioning Support
(http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html)

After taking a cursory glance at the patch it's not immediately obvious ( uh, to me anyway :D ) whether you can create/delete partitions while a filesystem (e.g. rootfs) is mounted from another partition on the same mtd device.

Under what conditions can you create/delete partitions?

Cheers,
Tim

#1 lore raw

Hi Tim

Quoted 9 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Tim Cussins
Sent: Monday, August 02, 2010 7:03 PM
To: [email protected]
Subject: Is repartitioning possible while one of the partitions is mounted?

Hi all,

Quoted 8 lines

I just spotted post regarding upcoming Runtime Partitioning Support
(http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html)

After taking a cursory glance at the patch it's not immediately obvious ( uh, to me anyway :D ) whether you can create/delete partitions while a filesystem (e.g. rootfs) is mounted from another partition on the same mtd device.

Its possible to partition another partition; if file system is mounted on another partition of same device. Utility is tested for all such scenarios.

Quoted 1 line

Under what conditions can you create/delete partitions?

This is a runtime utility. Currently the redefined partition table will exist in current power cycle. We are working on restoring the partition table on Power ON. Once the utility is pushed in mainline then we will release patch for that.

Quoted 5 lines

Cheers,
Tim

Regards
Rohit HS

Quoted 4 lines

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#2 lore raw
In reply to Tim Cussins
Quoted 11 lines · Tim Cussins

Hi all,

I just spotted post regarding upcoming Runtime Partitioning Support
(http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html)

After taking a cursory glance at the patch it's not immediately obvious ( uh, to me anyway :D ) whether you can create/delete partitions while a filesystem (e.g. rootfs) is mounted from another partition on the same mtd device.

Under what conditions can you create/delete partitions?

I guess it is good idea to put the authors of that patch in CC, no?

I think this case should be handled. If it is not, the solution is not very good. But this is just IMHO.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
#3 lore raw
Quoted 11 lines · Artem Bityutskiy
Quoted 10 lines · Tim Cussins

Hi all,

I just spotted post regarding upcoming Runtime Partitioning Support
(http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html)

After taking a cursory glance at the patch it's not immediately obvious ( uh, to me anyway :D ) whether you can create/delete partitions while a filesystem (e.g. rootfs) is mounted from another partition on the same mtd device.

Quoted 6 lines
Quoted 1 line

Under what conditions can you create/delete partitions?

I guess it is good idea to put the authors of that patch in CC, no?

I think this case should be handled. If it is not, the solution is not very good. But this is just IMHO.

Sorry, did not notice there was a reply.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
#4 lore raw
In reply to Artem Bityutskiy

Hi Artem

Quoted 19 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Artem Bityutskiy
Sent: Tuesday, August 24, 2010 1:35 PM
To: Tim Cussins
Cc: [email protected]
Subject: Re: Is repartitioning possible while one of the partitions is mounted?

Quoted 10 lines · Tim Cussins

Hi all,

I just spotted post regarding upcoming Runtime Partitioning Support
(http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html)

After taking a cursory glance at the patch it's not immediately obvious ( uh, to me anyway :D ) whether you can create/delete partitions while a filesystem (e.g. rootfs) is mounted from another partition on the same mtd device.

Quoted 7 lines
Quoted 1 line

Under what conditions can you create/delete partitions?

I guess it is good idea to put the authors of that patch in CC, no?

I think this case should be handled. If it is not, the solution is not very good. But this is just IMHO.

Its possible to partition/delete/resize the other partitions of the device even if rootfs is mounted on one partition.
The utility even gives freedom to change the permissions of the partitions and merging adjacent partitions apart from above features.

Quoted 8 lines

--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

#5 lore raw
Quoted 25 lines · Rohit Hassan Sathyanarayan

Hi Artem

Quoted 23 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Artem Bityutskiy
Sent: Tuesday, August 24, 2010 1:35 PM
To: Tim Cussins
Cc: [email protected]
Subject: Re: Is repartitioning possible while one of the partitions is mounted?

Quoted 11 lines · Tim Cussins

Hi all,

I just spotted post regarding upcoming Runtime Partitioning Support
(http://lists.infradead.org/pipermail/linux-mtd/2010-July/031200.html)

After taking a cursory glance at the patch it's not immediately obvious ( uh, to me anyway :D ) whether you can create/delete partitions while a filesystem (e.g. rootfs) is mounted from another partition on the same mtd device.

Under what conditions can you create/delete partitions?

I guess it is good idea to put the authors of that patch in CC, no?

Quoted 7 lines
Quoted 3 lines

I think this case should be handled. If it is not, the solution is not very good. But this is just IMHO.

Its possible to partition/delete/resize the other partitions of the device even if rootfs is mounted on one partition.
The utility even gives freedom to change the permissions of the partitions and merging adjacent partitions apart from above features.

Why the merge operation is needed? Why is it better than delete + delete
+ create? I also sent you another e-mail with questions + some review.

Signature · 2 lines
Best Regards,
Artem Bityutskiy (Битюцкий Артём)