Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Forgetting HDD or Partition Names
- Date: Thu, 30 Dec 2010 18:08:52 +0900
- From: Kalin KOZHUHAROV <me.kalin@example.com>
- Subject: Re: [tlug] Forgetting HDD or Partition Names
- References: <4D1BEACC.8090102@example.com>
Hi CL, Let me try to point you in slightly different direction while changing between my consultant, digital forensic and Gentoo hats... First, congratulations on the decision to tidy up your data! I know from experience how delightful, yet painful, this can be. Actually I am planning to do similar "project", although I only have a couple of 1.44MB floppies and a few ATA HDDs as a continuation on my "personal data storage" project that has been going on for some time. First some questions... On Thu, Dec 30, 2010 at 11:13, CL <az.4tlug@example.com> wrote: > Once again, I am finding ways to make my days off far too interesting. > > I decided that I would try to start 2011 with as few old IDE drives > stacked in the corner as possible as well as finally erasing and > shredding all of my old 3.5" floppies. I started out to copy all of my > old work files on to one SATA HDD where I intended to sort them out and > archive on DVD. I have research, archive, and report information that > has been passed forward from my first 8086 box and the 8" floppies from > the first Wang word processor I used at my then place of work, all the > way to the present. It has all be transferred to media that is > currently readable ... in theory ... along the way. Most of the old > stuff is DOS / WIN of one sort or another. > > I have an XP guest running on an Xubuntu host. All of the stuff on > floppies copied straight over in time to make the last moeru-gomi run of > the year. I am able to read and sort those particular files and old > programs. > Why do you need VMs and XP? Are you using XP to copy stuff? > I began mounting IDE drives two at a time into the chassis for copying > and have discovered a few problems that mostly appear to be permissions, > but a few that I can't attribute to that: > > 1. I can read partition names and, after assigning them network > locations in XP, I can open, read, and save files individually in a > partition in the virtual disk. I cannot copy directories or partitions > as complete blocks, though ... which I think is Permissions Problem > Number One. > Does "partitions as complete blocks" mean the block devices like /dev/hdb2 etc? > In Xubuntu, I have NTFS set to read / write and can mount / unmount by > partition ID or partition name (e.g. /media/sda1 or /media/ROOT). All > are set to Administrator mountable only. Should I be setting mount > permission to "Everyone"? I cannot think of anything else I am > forgetting, but probably am ... if anyone would like to suggest another > place to look. > If the answer to the previous question is yes (i.e. block devices), probably you are barking under the wrong tree. What does `ls -ls /dev/[sh]d[a-z]*` produce? And logged as your normal user `groups`? For my machines (Gentoo), I have something like that: 0 brw-rw---- 1 root disk 8, 2 Nov 27 21:08 /dev/sda2 and my work user belongs to disk group. > 2. When I remove the IDE disk and replace it with another, Xubuntu > tells me that the disk / partitions of the disk I removed cannot be > found and asks me to (S)kip or (M)anually mount them. I skip and, when > I attempt to find and mount the new disk / partitions, the partitions of > the new disk (particularly the root partition) have the name and > identifier of the previous (removed) HDD, although the size of the > current disk / partition is accurately reported. > Hmm, how do you remove it? Just unplug it while the machine is running? That IS DANGEROUS for the hardware, unless you have proper hot-swappable enclosure. In which case you need to unmount all partitions from the drive, turn it off, remove the interface from kernel, wait 5s to spin down and unplug it. Assuming you work with hdg, as root: # umount /dev/hdg* && sync # hdparm -Y /dev/hdg && sleep 5 # echo 1 > /sys/block/hdg/device/delete > How do I remove the details of the previous HDD from memory? I looked at > the instructions and man pages for "fuse" and "fuser" and find them > either unintelligible or they leave me with a fear that I will > permanently destroy valuable hardware or lose data. > They should normally go, but because you probably are just yanking the drives which are not meant to be hotswap... No idea what daemon does Ubuntu use, there is something holding references to those devices. > 3. ... and what additional thing(s) would I have to do to be able to > copy the contents of entire partitions on to another disk for sorting? My core advice is to stay away from GUIs that you are not at least 99.99% comfortable using (at least for the last year) for such important task as data archiving (before shredding the originals). Start small (one ATA, one floppy) and don't look at the contents before you copy them to an easier to access place (your SATA drive). I have b0rked the original while thinking I am tidying up the target a few years ago :-( Test, test, test until you are sure that you copy everything correctly. A few more tips: 1. Write a simple script to do the job, have it log all errors and progress. 2. I'd use `rsync -HavP <source>/ <destination>/ --dry-run` to check and then take out the "--dry-run" to execute. 3. If you care about times on FAT, try to guess the timezone (e.g. mount -o tz=UTC); always mount the source with `-o ro`; take care of filename encoding (e.g. -o codepage=932,iocharset=utf8,shortname=lower for Japanese win) 4. Use ext3 for long-term storage 5. Once you copy everything to a drive, get another one and back it up fully, turn it off and store it until you are happy with the results of the tiding-up. 6. Once you have copied everything and secured the backup, put your originals in a labeled box and store them for at least 6 months, in case you realize you missed something; after 6 months if you don't discover issues, wipe the source HDDs. Reuse them or throw them. 7. If the data fits on a few DVDs - good, burn them but keep it on a HDD for easy access. Hmm, that is all I can say for now. I have sorted most of my 350GB of pictures, but I need to go through a couple of old backups and documents from high-school years ;-) Cheers, Kalin.
- References:
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] POSTPONED to February - Call for presenters for TLUG January 8th technical meeting
- Previous by thread: [tlug] Forgetting HDD or Partition Names
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links