All of lore.kernel.org
 help / color / mirror / Atom feed
* what if I touch a reiser4 partition and ...
@ 2005-08-27  5:44 Miguel Ernesto Pérez Cabrera
  2005-08-27  7:04 ` David Masover
  0 siblings, 1 reply; 7+ messages in thread
From: Miguel Ernesto Pérez Cabrera @ 2005-08-27  5:44 UTC (permalink / raw)
  To: reiserfs-list

Hello, group.

I was wondering If after a sfdisk resize of a disk, and leaving the
reiser4 partitition unchanged, Is it posible to remount the reiser4
partition?

I'm not sure, but for what I see, the answer is no... but I would like
to be desagree with this. Please!

This was how my disk looks like before resizing...
Disk /dev/hdd: 238216 cylinders, 16 heads, 63 sectors/track
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/hdd1   *      0+   2080    2081-   1048823+  83  Linux
/dev/hdd2          0       -       0          0    0  Empty
/dev/hdd3          0       -       0          0    0  Empty
/dev/hdd4       2081  238215  236135  119012040   85  Linux extended
/dev/hdd5       2081+  85301   83221-  41943383+  83  Linux
/dev/hdd6      85302+ 120670   35369-  17825975+  83  Linux
/dev/hdd7     120671+ 122261    1591-    801863+  82  Linux swap / Solaris
/dev/hdd8     122262+ 123712    1451-    731303+  83  Linux
/dev/hdd9     123713+ 154920   31208-  15728831+  83  Linux
/dev/hdd10    154921+ 238215   83295-  41980679+  83  Linux

I was looking a way to delete hdd6, hdd8, hdd9 and hdd10, put hdd7
(swap) at the end and increment hdd5 just before swap partition.

but after doing this, and mounting the reiser4 partition, I just get
an empty filesystem :s, why?

All I have done is to change partition size with sfdisk and run
mkfs.reiser4 on hdd1 hdd5 and run fsck on both. Do I lose my data? or
it still missing arround there?

Miguel

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: what if I touch a reiser4 partition and ...
  2005-08-27  5:44 what if I touch a reiser4 partition and Miguel Ernesto Pérez Cabrera
@ 2005-08-27  7:04 ` David Masover
  2005-08-27 13:23   ` michael chang
  0 siblings, 1 reply; 7+ messages in thread
From: David Masover @ 2005-08-27  7:04 UTC (permalink / raw)
  To: Miguel Ernesto Pérez Cabrera; +Cc: reiserfs-list

Miguel Ernesto Pérez Cabrera wrote:
> Hello, group.
> 
> I was wondering If after a sfdisk resize of a disk, and leaving the
> reiser4 partitition unchanged, Is it posible to remount the reiser4
> partition?
> 
> I'm not sure, but for what I see, the answer is no... but I would like
> to be desagree with this. Please!
> 
> This was how my disk looks like before resizing...
> Disk /dev/hdd: 238216 cylinders, 16 heads, 63 sectors/track
> Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
> 
>    Device Boot Start     End   #cyls    #blocks   Id  System
> /dev/hdd1   *      0+   2080    2081-   1048823+  83  Linux
> /dev/hdd2          0       -       0          0    0  Empty
> /dev/hdd3          0       -       0          0    0  Empty
> /dev/hdd4       2081  238215  236135  119012040   85  Linux extended
> /dev/hdd5       2081+  85301   83221-  41943383+  83  Linux
> /dev/hdd6      85302+ 120670   35369-  17825975+  83  Linux
> /dev/hdd7     120671+ 122261    1591-    801863+  82  Linux swap / Solaris
> /dev/hdd8     122262+ 123712    1451-    731303+  83  Linux
> /dev/hdd9     123713+ 154920   31208-  15728831+  83  Linux
> /dev/hdd10    154921+ 238215   83295-  41980679+  83  Linux
> 
> I was looking a way to delete hdd6, hdd8, hdd9 and hdd10, put hdd7
> (swap) at the end and increment hdd5 just before swap partition.
> 
> but after doing this, and mounting the reiser4 partition, I just get
> an empty filesystem :s, why?
> 
> All I have done is to change partition size with sfdisk and run
> mkfs.reiser4 on hdd1 hdd5 and run fsck on both. Do I lose my data? or
> it still missing arround there?

Um, when you run mkfs.reiser4, it makes a new filesystem.  New.  As in
empty.  As in format.  The DOS/NT "FORMAT" command is the equivalent of
"mkfs.msdos", "mkfs.vfat", and/or "mkfs.ntfs".

mkfs == format

You wanted to keep your data from hdd5, right?  There is a fsck option
that might help now, if you haven't touched the disk much, but you've
done just about the equivalent of an "rm -rf /".

I hope you didn't have anything on hdd6, 7, 8, 9, or 10, because
deleting them all and resizing hdd5 would not automatically cause hdd5's
filesystem to have the contents of all the other partitions.  If you
need stuff from there, better restore your old partition table and hope
that none of them have been touched much -- I'm not sure if you'll have
to fsck or just backup very carefully.

And last I checked, reiser4 doesn't have a resizer -- not even a way to
grow the FS.  So your correct course of action would probably have been
to back everything up, resize hdd5, mkfs, and then restore.  If you
didn't have a lot of data, you could probably have made the new swap
device, made a filesystem on it, copied hdd5 to that, resized/formatted
hdd5, copied stuff back from the temporary swap partition, change its
partition type to 82 (swap), and mkswap.

But then, if the data is important, you really should have a full backup
solution anyway.  As far as I can tell, your hdd5 is 40 gigs.  100 blank
DVDs are around 20-30 USD now, and a burner is maybe $50.  It would be a
long and tedious process, but that could back up 40 gigs and have a few
discs left over -- and then you'd at least have one backup.  Or, you
could probably actually get a 40 gig drive for the same price.

I know you've heard the lecture before, and it's little comfort now, but
backup is cheap.  Data recovery services are expensive.  And data loss
is unacceptible.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: what if I touch a reiser4 partition and ...
  2005-08-27  7:04 ` David Masover
@ 2005-08-27 13:23   ` michael chang
  2005-08-27 16:56     ` David Masover
  0 siblings, 1 reply; 7+ messages in thread
From: michael chang @ 2005-08-27 13:23 UTC (permalink / raw)
  To: David Masover; +Cc: Miguel Ernesto Pérez Cabrera, reiserfs-list

On 8/27/05, David Masover <ninja@slaphack.com> wrote:
> And last I checked, reiser4 doesn't have a resizer -- not even a way to
> grow the FS.  So your correct course of action would probably have been
> to back everything up, resize hdd5, mkfs, and then restore.  If you

Yet. AFAIK, as soon as someone funds namesys a few millions or
whatever, they'll write one.  After vanilla inclusion, and from what
it seems, the online repacker.

> I know you've heard the lecture before, and it's little comfort now, but
> backup is cheap.  Data recovery services are expensive.  And data loss
> is unacceptible.

I believe it was you, yes, that learnt this the hard way? ;-)

-- 
~Mike
 - Just my two cents
 - No man is an island, and no man is unable.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: what if I touch a reiser4 partition and ...
  2005-08-27 13:23   ` michael chang
@ 2005-08-27 16:56     ` David Masover
  2005-08-27 17:19       ` Vladimir V. Saveliev
  0 siblings, 1 reply; 7+ messages in thread
From: David Masover @ 2005-08-27 16:56 UTC (permalink / raw)
  To: michael chang; +Cc: Miguel Ernesto Pérez Cabrera, reiserfs-list

michael chang wrote:
> On 8/27/05, David Masover <ninja@slaphack.com> wrote:
> 
>>And last I checked, reiser4 doesn't have a resizer -- not even a way to
>>grow the FS.  So your correct course of action would probably have been
>>to back everything up, resize hdd5, mkfs, and then restore.  If you
> 
> 
> Yet. AFAIK, as soon as someone funds namesys a few millions or
> whatever, they'll write one.  After vanilla inclusion, and from what
> it seems, the online repacker.

Online repacker would make it possible to shrink the FS online.  But I
don't see why we can't *already* grow the FS, even offline.  You don't
need a repacker for that.

>>I know you've heard the lecture before, and it's little comfort now, but
>>backup is cheap.  Data recovery services are expensive.  And data loss
>>is unacceptible.
> 
> 
> I believe it was you, yes, that learnt this the hard way? ;-)

Almost.  I was very, very lucky.

Note to self:  cp, don't mv, and don't try to reattach an IDE drive to a
running system!


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: what if I touch a reiser4 partition and ...
  2005-08-27 16:56     ` David Masover
@ 2005-08-27 17:19       ` Vladimir V. Saveliev
  2005-08-27 17:25         ` David Masover
  2005-08-27 19:44         ` michael chang
  0 siblings, 2 replies; 7+ messages in thread
From: Vladimir V. Saveliev @ 2005-08-27 17:19 UTC (permalink / raw)
  To: David Masover
  Cc: michael chang, Miguel Ernesto Pérez Cabrera, reiserfs-list

Hello

David Masover wrote:
> michael chang wrote:
>>On 8/27/05, David Masover <ninja@slaphack.com> wrote:
>>
>>>And last I checked, reiser4 doesn't have a resizer -- not even a way to
>>>grow the FS.  So your correct course of action would probably have been
>>>to back everything up, resize hdd5, mkfs, and then restore.  If you
>>
>>Yet. AFAIK, as soon as someone funds namesys a few millions or
>>whatever, they'll write one.  After vanilla inclusion, and from what
>>it seems, the online repacker.
> 
> Online repacker would make it possible to shrink the FS online.  But I
> don't see why we can't *already* grow the FS, even offline.  You don't
> need a repacker for that.

Afaik, if any of disk partitions is mounted - re-partition-ing takes effect only up on reboot.
Therefore, being able to grow mounted filesystem does not gain you too much.

> 
>>>I know you've heard the lecture before, and it's little comfort now, but
>>>backup is cheap.  Data recovery services are expensive.  And data loss
>>>is unacceptible.
>>
>>I believe it was you, yes, that learnt this the hard way? ;-)
> 
> Almost.  I was very, very lucky.
> 
> Note to self:  cp, don't mv, and don't try to reattach an IDE drive to a
> running system!
> 
> 
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: what if I touch a reiser4 partition and ...
  2005-08-27 17:19       ` Vladimir V. Saveliev
@ 2005-08-27 17:25         ` David Masover
  2005-08-27 19:44         ` michael chang
  1 sibling, 0 replies; 7+ messages in thread
From: David Masover @ 2005-08-27 17:25 UTC (permalink / raw)
  To: Vladimir V. Saveliev
  Cc: michael chang, Miguel Ernesto Pérez Cabrera, reiserfs-list

Vladimir V. Saveliev wrote:
> Hello
> 
> David Masover wrote:
> 
>>michael chang wrote:
>>
>>>On 8/27/05, David Masover <ninja@slaphack.com> wrote:
>>>
>>>
>>>>And last I checked, reiser4 doesn't have a resizer -- not even a way to
>>>>grow the FS.  So your correct course of action would probably have been
>>>>to back everything up, resize hdd5, mkfs, and then restore.  If you
>>>
>>>Yet. AFAIK, as soon as someone funds namesys a few millions or
>>>whatever, they'll write one.  After vanilla inclusion, and from what
>>>it seems, the online repacker.
>>
>>Online repacker would make it possible to shrink the FS online.  But I
>>don't see why we can't *already* grow the FS, even offline.  You don't
>>need a repacker for that.
> 
> 
> Afaik, if any of disk partitions is mounted - re-partition-ing takes effect only up on reboot.
> Therefore, being able to grow mounted filesystem does not gain you too much.

There are things like LVM, which allow a partition to be extended
online.  Also, not many install/rescue disks have support for Reiser4
yet, so it would be helpful if one could:

- boot random rescue disk
- resize partition
- boot main Linux installation
- extend filesystem

Anyway, how hard could it be?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: what if I touch a reiser4 partition and ...
  2005-08-27 17:19       ` Vladimir V. Saveliev
  2005-08-27 17:25         ` David Masover
@ 2005-08-27 19:44         ` michael chang
  1 sibling, 0 replies; 7+ messages in thread
From: michael chang @ 2005-08-27 19:44 UTC (permalink / raw)
  To: Vladimir V. Saveliev
  Cc: David Masover, Miguel Ernesto Pérez Cabrera, reiserfs-list

On 8/27/05, Vladimir V. Saveliev <vs@namesys.com> wrote:
> Hello
> 
> David Masover wrote:
> > michael chang wrote:
> >>On 8/27/05, David Masover <ninja@slaphack.com> wrote:
> >>
> >>>And last I checked, reiser4 doesn't have a resizer -- not even a way to
> >>>grow the FS.  So your correct course of action would probably have been
> >>>to back everything up, resize hdd5, mkfs, and then restore.  If you
> >>
> >>Yet. AFAIK, as soon as someone funds namesys a few millions or
> >>whatever, they'll write one.  After vanilla inclusion, and from what
> >>it seems, the online repacker.
> >
> > Online repacker would make it possible to shrink the FS online.  But I
> > don't see why we can't *already* grow the FS, even offline.  You don't
> > need a repacker for that.
> 
> Afaik, if any of disk partitions is mounted - re-partition-ing takes effect only up on reboot.
> Therefore, being able to grow mounted filesystem does not gain you too much.

So what if I have to resize my partition offline?  I'd be willing to
accept that (as a consumer), provided that there's a way to make
static binaries of said resizer and fit them on a floppy.  (I'd, of
course, boot Linux via another floppy, or on a disk image on a FAT
partition or something...)  Similar to the NTFS resize tools.

I'd even settle for that at the moment.  I can't switch to Reiser4
until I have some form of resizing or repacking, even if offline.

I've found online resizing and repacking to be a pain; it's usually
much safer to do it offline anyways.  Regardless of whether the tools
allow otherwise.

-- 
~Mike
 - Just my two cents
 - No man is an island, and no man is unable.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-27 19:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-27  5:44 what if I touch a reiser4 partition and Miguel Ernesto Pérez Cabrera
2005-08-27  7:04 ` David Masover
2005-08-27 13:23   ` michael chang
2005-08-27 16:56     ` David Masover
2005-08-27 17:19       ` Vladimir V. Saveliev
2005-08-27 17:25         ` David Masover
2005-08-27 19:44         ` michael chang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.