Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #244881
| From | Gareth Evans <donotspam@fastmail.fm> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Resize2fs Questions |
| Date | 2022-01-31 19:20 +0100 |
| Message-ID | <DLJrs-79v-7@gated-at.bofh.it> (permalink) |
| References | <DLJhO-76i-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
> On 31 Jan 2022, at 18:03, Gareth Evans <donotspam@fastmail.fm> wrote: > > > >> On 31 Jan 2022, at 17:58, Gareth Evans <donotspam@fastmail.fm> wrote: >> >> >> >>>> On 31 Jan 2022, at 17:37, Andy Smith <andy@strugglers.net> wrote: >>> >>> Hello, >>> >>> On Mon, Jan 31, 2022 at 05:27:56PM +0000, Gareth Evans wrote: >>>>>>> On 31 Jan 2022, at 14:41, Martin McCormick <martin.m@suddenlink.net> wrote: >>>>>> >>>>>> #I should be telling resize2fs to squeeze everything in to a 7GB >>>>>> #partition. >>>>>> sudo resize2fs /dev/loop0p2 +7G >>>>>> [...] >>>>>> then I delete P2 and then add a >>>>>> new partition which defaults to 2. >>>> >>>> This seems to replace the partition containing the filesystem you've just resized with an empty one - doesn't it? >>> >>> When you change a partition table it doesn't do anything to the >>> data on the disk, only the partition table. Every partition resizing >>> operation that only has to move the end position essentially does it >>> this way. >>> >>> (If you have to move the start then the data has to be moved first) >>> >>> If you were using parted then you might type: >>> >>> resizepart 2 7g >>> >>> which looks less scary, but does exactly the same thing. >>> >>> Cheers, >>> Andy >>> >>> -- >>> https://bitfolk.com/ -- No-nonsense VPS hosting >>> >> >> Hi Andy, I appreciate the data doesn't go anywhere, but... >> >>>> then I delete P2 and then add a >>>> new partition which defaults to 2. >> >> doesn't that at least result in the appearance of deletion (an empty partition) if done after the resizing? > > Do you mean creating a new partition 'around' the data makes it accessible again? That would make sense re eg what testdisk seems to do... Sorry - wasn't thinking!
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Resize2fs Questions "Martin McCormick" <martin.m@suddenlink.net> - 2022-01-31 15:50 +0100
Re: Resize2fs Questions Andy Smith <andy@strugglers.net> - 2022-01-31 16:40 +0100
Re: Resize2fs Questions Gareth Evans <donotspam@fastmail.fm> - 2022-01-31 18:30 +0100
Re: Resize2fs Questions Andy Smith <andy@strugglers.net> - 2022-01-31 18:40 +0100
Re: Resize2fs Questions Gareth Evans <donotspam@fastmail.fm> - 2022-01-31 19:00 +0100
Re: Resize2fs Questions Gareth Evans <donotspam@fastmail.fm> - 2022-01-31 19:10 +0100
Re: Resize2fs Questions Gareth Evans <donotspam@fastmail.fm> - 2022-01-31 19:20 +0100
Re: Resize2fs Questions Andy Smith <andy@strugglers.net> - 2022-02-01 00:40 +0100
Re: Resize2fs Questions Stefan Monnier <monnier@iro.umontreal.ca> - 2022-02-01 03:00 +0100
csiph-web