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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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 |
|
|||
|
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 |