Migrating Data to New Partition - Copy lost+found?

This is a discussion on Migrating Data to New Partition - Copy lost+found? within the Linux General forums, part of the Linux Forums category; Probably a silly question, but hey, I'm a newbie. I'm going to move some data around between partitions ...


Go Back   Usenet Forums > Linux Forums > Linux General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-13-2003
David Haggett
 
Posts: n/a
Default Migrating Data to New Partition - Copy lost+found?

Probably a silly question, but hey, I'm a newbie. I'm going to move some
data around between partitions and onto a new disk.

Do I need to move the lost+found and .trash directories to the new
partition?

TIA
--
David Haggett
Linux user since 01/01/2003
Reply With Quote
  #2 (permalink)  
Old 09-13-2003
Robert Heller
 
Posts: n/a
Default Re: Migrating Data to New Partition - Copy lost+found?

David Haggett <news-spam@haggett.demon.co.uk>,
In a message on Sat, 13 Sep 2003 11:12:57 +0100, wrote :

DH> Probably a silly question, but hey, I'm a newbie. I'm going to move some
DH> data around between partitions and onto a new disk.
DH>
DH> Do I need to move the lost+found and .trash directories to the new
DH> partition?

The lost+found directory is created by the mkfs command (by default).
Unless you really have stuff in the old disk's lost+found, you should
not need to copy it. lost+found is generally only written to by fsck.
If/When it does, you would have presumbably gone there and salvaged
what you could. Any why would you want to copy trash?

DH>
DH> TIA
DH> --
DH> David Haggett
DH> Linux user since 01/01/2003
DH>

\/
Robert Heller ||InterNet: heller@cs.umass.edu
http://vis-www.cs.umass.edu/~heller || heller@deepsoft.com
http://www.deepsoft.com /\FidoNet: 1:321/153







Reply With Quote
  #3 (permalink)  
Old 09-13-2003
Floyd Davidson
 
Posts: n/a
Default Re: Migrating Data to New Partition - Copy lost+found?

Robert Heller <heller@deepsoft.com> wrote:
> David Haggett <news-spam@haggett.demon.co.uk>,
> In a message on Sat, 13 Sep 2003 11:12:57 +0100, wrote :
>
>DH> Probably a silly question, but hey, I'm a newbie. I'm going to move some
>DH> data around between partitions and onto a new disk.
>DH>
>DH> Do I need to move the lost+found and .trash directories to the new
>DH> partition?
>
>The lost+found directory is created by the mkfs command (by default).
>Unless you really have stuff in the old disk's lost+found, you should
>not need to copy it. lost+found is generally only written to by fsck.
>If/When it does, you would have presumbably gone there and salvaged
>what you could. Any why would you want to copy trash?


It should probably be pointed out that just copying a lost+found
directory would *not* accomplish what is needed. There has to be
a certain amount of disk allocated for holding directory entries,
and it has to be done *before* fsck attempts to write to the
directory. Typically that is accomplished by creating the directory,
and then creating a fair number of files, which are then rm'd. That
leaves space taken up by the directory, and available for fsck.

Hence copying the lost+found from one partition to another, would
ruin the existing lost+found already created by mkfs.

man mklost+found

--
Floyd L. Davidson <http://web.newsguy.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@barrow.com
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0