All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurynas Biveinis <Laurynas.Biveinis@mif.vu.lt>
Cc: vitaly@namesys.com, reiserfs-list@namesys.com
Subject: Re: Partial data loss with reiserfs3
Date: Mon, 14 Feb 2005 16:40:48 +0200	[thread overview]
Message-ID: <1108392048.4210b87003405@webmail.vu.lt> (raw)
In-Reply-To: <200502141544.34513.vitaly@namesys.com>

Hello,

Cituojant Vitaly Fertman <vitaly@namesys.com>:

> reboot is required between repartitioning a drive and starting to use
> 
> moved/created partitions. without that the kernel may continue to
> use
> old partition table. so it would be great to recall step-by-step
> history 
> of your copings, removes, repatitionings and reboots.

Starting from the last successful cpio between old and new /home
partitions - can I assume that data was intact at this point if cpio
succeeded?

At this point the disk has, in order of physical layout: /dev/hda5
(NTFS), 4GB /dev/hda6 (no FS), 2GB /dev/hda7 (reiser).

I tried my best to reconstruct this history, but there might be some
mistakes, of course.

[root@laurynas-pc ~]# mkfs -t reiserfs /dev/hda6

# Copy data
[root@laurynas-pc ~]# mount /dev/hda7 /home.old
[root@laurynas-pc ~]# mount /dev/hda6 /home
[root@laurynas-pc ~]# cd /home.old
[root@laurynas-pc ~]# find . -depth -print0 | cpio --null -pvd /home
[root@laurynas-pc ~]# umount /dev/hda7
[root@laurynas-pc ~]# umount /dev/hda6

# Delete /dev/hda7, delete /dev/hda6 and re-create it with the
# same starting sector, but take all former /dev/hda7 space too.
[root@laurynas-pc ~]# fdisk

# Try to resize /dev/hda6
[root@laurynas-pc ~]# resizefs.reiserfs /dev/hda6 6964146K
Error: Can't resize filesystem outside the device.

# Try to resize /dev/hda6 to a value really known to fit in the 
# new partition
# ... some 6 invocations of resizefs with values ~6GB here...
[root@laurynas-pc ~]# resizefs.reiserfs /dev/hda6 +1G
Error: Can't resize filesystem outside the device.

# Remembered about reboot
[root@laurynas-pc ~]# reboot

# Size too big; missed the -f option
[root@laurynas-pc ~]# resizefs.reiserfs /dev/hda6 +3G
Error: Can't resize filesystem outside the device.

# Do the resize!
[root@laurynas-pc ~]# resizefs.reiserfs -f /dev/hda6 +3G

[root@laurynas-pc ~]# mount /dev/hda6 /home
...typical mount output, as in previous e-mail...

[root@laurynas-pc ~]# df
... partition size and free/used space reported OK...

[root@laurynas-pc ~]# reboot

There tried to login with non-root user, and the rest of the story is
in
the previous e-mail.

Here is the current partition table:

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         927     7446096   83  Linux
/dev/hda2             928         978      409657+  82  Linux swap
/dev/hda3             979       14593   109362487+   f  W95 Ext'd (LBA)
/dev/hda5             979       13726   102398278+   7  HPFS/NTFS
/dev/hda6           13727       14593     6964146   83  Linux

--
Thanks,
Laurynas


  reply	other threads:[~2005-02-14 14:40 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-13 17:29 Partial data loss with reiserfs3 Laurynas Biveinis
2005-02-14 12:44 ` Vitaly Fertman
2005-02-14 14:40   ` Laurynas Biveinis [this message]
2005-02-14 16:21     ` Vitaly Fertman
2005-02-14 16:38       ` Laurynas Biveinis
2005-02-14 17:08         ` Vitaly Fertman
2005-02-15  9:33           ` Laurynas Biveinis
2005-02-15 12:48         ` Esben Stien
2005-02-14 15:16   ` Laurynas Biveinis
2005-02-15 12:50   ` Esben Stien
2005-02-15 14:36     ` _evil
2005-02-15 23:03       ` Simon "Sturmflut" Raffeiner
  -- strict thread matches above, loose matches on Subject: below --
2005-02-16 13:22 Vitaly Fertman
2005-02-16 16:10 ` Laurynas Biveinis
2005-02-17  9:22 ` Laurynas Biveinis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1108392048.4210b87003405@webmail.vu.lt \
    --to=laurynas.biveinis@mif.vu.lt \
    --cc=reiserfs-list@namesys.com \
    --cc=vitaly@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.