Skip to contentSkip to conversation

what if I touch a reiser4 partition and ...

DISCUSSION Miguel Ernesto Pérez Cabrera 4 participants 7 messages Aug 27, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 28 lines · Miguel Ernesto Pérez Cabrera

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.

Quoted 6 lines

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.

#2 lore raw
Quoted 3 lines · David Masover

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.

Quoted 3 lines

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? ;-)

Signature · 3 lines
~Mike
 - Just my two cents
 - No man is an island, and no man is unable.
#3 lore raw
Quoted 10 lines · michael chang
Quoted 3 lines · David Masover

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.

Quoted 6 lines
Quoted 3 lines

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!

#4 lore raw

Hello

Quoted 7 lines · David Masover
Quoted 6 lines · michael chang
Quoted 3 lines · David Masover

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

Quoted 7 lines
Quoted 3 lines

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.

Quoted 14 lines
Quoted 6 lines
Quoted 4 lines

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!

#5 lore raw
Quoted 17 lines · Vladimir V. Saveliev

Hello

Quoted 13 lines · David Masover
Quoted 10 lines · michael chang
Quoted 3 lines · David Masover

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.

Quoted 7 lines
Quoted 3 lines

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?

#6 lore raw
In reply to Vladimir V. Saveliev
Quoted 14 lines · Vladimir V. Saveliev

Hello

Quoted 11 lines · David Masover
Quoted 9 lines · michael chang
Quoted 3 lines · David Masover

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.

Quoted 6 lines
Quoted 3 lines

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.

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