DF-21 Forums Forum Index DF-21 Forums
The Dark Forces Community
 
DF-21.net Home | FAQ | Search | Memberlist  | Register 
Profile | Log in to check your private messages | Log in

Unpartitioning an external hard drive.

 
Post new topic   Reply to topic    DF-21 Forums Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Barry Brien
Dark Trooper Phase 1

Joined: 26 Sep 2003

PostPosted: Oct 01, 2009 17:58    Post subject: Unpartitioning an external hard drive. View user's profile Send private message Send e-mail Reply with quote

I talked a bit about this in the editing forum, but I'll see how I get on in here.

I recently accidentally killed my laptop with liquid. I managed to save the hard drive and stick it into an enclosure. It is now an external hard drive. The only problem is that the hard drive was partitioned and I want to get rid of this partition. Is there any way of doing this without losing the data? The data on C: is all I want, the data on D: is only recovery stuff which I won't be needing. I can read both drives fine on my housemates computer, its just that for whatever reason my crappy work computer will only recognise the recovery drive and not the drive I want. I was hoping I wouldnt have to back up all the data first because my housemates computer is pretty crappy too Smile

Tsophika
Gamorrean

Joined: 14 Jan 2008

PostPosted: Oct 01, 2009 21:51    Post subject: View user's profile Send private message Reply with quote

The tool you want to use is named diskpart, which can be run from the command prompt.

To extend a partition is has to be NTFS formatted. If it's FAT32 you're better off backing up the files and reformatting the whole drive.

If it is indeed NTFS I can walk you through the steps.

The MAZZTer
Death Star
Death Star

Joined: 25 Sep 2003

PostPosted: Oct 02, 2009 00:18    Post subject: View user's profile Send private message Send e-mail Reply with quote

[Edit: After reading your other thread, you really don't need to deal with partitions since you just want to get data off the drive anyway. Just boot from a live CD in Linux and you should have access to all the partitions.]

Any partitioning tool can delete partitions. It's the EASIEST part of partitioning (you notice how building construction takes months but building demolition takes seconds and looks a lot more fun? Yeah it's like that). Windows has the ability built in.

Right click Computer and click Manage.

Go to Storage > Disk Management in the tree on the left.

Bottom pane is the easiest to see the physical drives and how they are partitioned. Find your external drive, right click on the partition you want to erase and click "Delete partition".

Afterwards you should be able to click on the other partition and click "Expand" to make it take up the rest of the space! (If it's NTFS. If not it may not be available.)

Tsophika wrote:
To extend a partition is has to be NTFS formatted. If it's FAT32 you're better off backing up the files and reformatting the whole drive.



Or you can just convert it to NTFS in-place since Windows has had the ability to do that since like... NT 4.0 or something. Razz

Start > Run > cmd

convert <DRIVE LETTER> /FS:NTFS

Make sure you're not using files on the drive or having any Explorer windows or command prompts open on the drive. If it refuses to work you can force all applications to release their file locks:

convert <DRIVE LETTER> /FS:NTFS /X

But you should probably backup before doing this anyway. There shouldn't be any need to reformat and copy everything back.

_________________
http://www.mzzt.net/ | I am a respectable admin with a respectable sig.

Barry Brien
Dark Trooper Phase 1

Joined: 26 Sep 2003

PostPosted: Oct 02, 2009 21:18    Post subject: View user's profile Send private message Send e-mail Reply with quote

Thanks guys that was quick and painless. It is an NTFS drive but I don't see the option to expand. No big deal anyway, its only 10gb. Cheers!

The MAZZTer
Death Star
Death Star

Joined: 25 Sep 2003

PostPosted: Oct 02, 2009 21:48    Post subject: View user's profile Send private message Send e-mail Reply with quote

Hmm you might need Vista for that. No matter, Linux can probably do it too. :p

_________________
http://www.mzzt.net/ | I am a respectable admin with a respectable sig.

Barry Brien
Dark Trooper Phase 1

Joined: 26 Sep 2003

PostPosted: Oct 06, 2009 02:09    Post subject: View user's profile Send private message Send e-mail Reply with quote

New problem - I cannot access the files in my profile from my hard drive. C:\users\barry will not open for me. I didn't even have that profile passworded. I've tried altering the settings of the folder, but I get the same message - I don't have the 'priveliges'.
It's pretty annoying when a machine tells you that you're not 'priveliged' enough to access your own stuff. Any thoughts?

Tsophika
Gamorrean

Joined: 14 Jan 2008

PostPosted: Oct 06, 2009 02:43    Post subject: View user's profile Send private message Reply with quote

You need to "take ownership" of those folders.

http://www.vista4beginners.com/Change-permissions-take-ownership

The MAZZTer wrote:
Or you can just convert it to NTFS in-place since Windows has had the ability to do that since like... NT 4.0 or something.


I'd always recommend backing things up completely because you run a significant risk of data loss. A complete reinitialization of the HDD (overwriting with 0s) will help you avoid bad sectors and MBR corruption.

The MAZZTer
Death Star
Death Star

Joined: 25 Sep 2003

PostPosted: Oct 06, 2009 04:26    Post subject: View user's profile Send private message Send e-mail Reply with quote

Yeah first you need an Administrator account to adjust these.

Next, you right click the drive root (or the problematic folder, but chances are you will run into more before long) and click Sharing and Security.

If the property dialog has no Security tab, congratulations, you have to reboot into safe mode and log in using the "Administrator" account first before it will appear. Aren't you glad you bought the cheap version of Windows that requires you to do this?

Anyways, in the Security tab, go to Advanced. Go to the owner tab, and select your user or a group you are a member of (Administrators is a good choice). If you just select your user it will be useless when you create a new profile (IE when you reinstall Windows) and you'll have to repeat this ALL OVER AGAIN as I know from personal experience, so it's best to use Administrators.

Then click Apply and wait for it to propagate the changes to every file on the drive (could take a while).

When it comes back, close the dialog and go back to that Security tab. If there is an entry for Administrators, click it and click "Full Control / Allow". If not, click Add, type in Administrators and click ok, and then click "Full Control / Allow".

You can also repeat this to add Read privileges to the User group if you so desire, or add Full Control to the user group based on what security settings you want to enforce (if you care).

Oh yeah this will have the side effect of breaking security on System Restore if you do it on the drive root... that is, malware and viruses will be able to easily infect it since access to it is open now. To reset that security, hit the properties for the System Volume Information folder, remove all entries from Security except SYSTEM, which should have full control. Click OK.

Incidentally Linux ignores NTFS security settings. Wink

Tsophika wrote:
A complete reinitialization of the HDD (overwriting with 0s) will help you avoid bad sectors and MBR corruption.



Umm... no it won't.

In fact clearing the drive with 0s can cause both of those things, ironically enough. First of all, bad sectors are caused by physical disk damage which can occur if foreign matter gets inside the disk, such as dust or fingerprints, or if the moving parts of the drive start to wear out. And they will wear out faster if you do excess writing such as say overwriting the entire drive with 0s. Not significantly faster maybe, but I still find it amusing.

Also do you know the first thing you clobber when you overwrite the drive with 0s? The MBR! Congratulations!

Also the MBR is totally outside of any partitions. Reformatting, converting, or doing anything that doesn't touch the first sector of the drive (where the MBR and partition table is located) can't corrupt the MBR unless you're using buggy tools. Even if all the partitions on the drive get wiped out the MBR will still be intact.

Not that the MBR is hard to replace ANYWAY so it's hardly worth being concerned about. Boot from a Windows disc, Recovery Console, fixmbr, reboot, done.

I think you're confusing this with the real reason why you may want to overwrite a disk with 0s... secure erase. If you're selling a drive (or you have reason to believe the police are going to raid your house for your impressive MP3 collection) you can overwrite everything on it to ensure the next person who gets the drive can't peek at your personal data. 0s is the most basic form of data destruction and a professional can probably still recover a good chunk of data, but for Joe Average who only knows how to look inside the Recycle Bin, or even a techy who knows how to resurrect truly deleted files, it will be quite effective. Overwriting with random data is more secure, and multiple passes, especially using algorithms specifically designed to make data retrieval impossible, can pretty much make recovering old data... well, impossible.

With all that, I still agree with one point you made: It is ALWAYS a good idea to keep backups of irreplaceable data.

_________________
http://www.mzzt.net/ | I am a respectable admin with a respectable sig.


Last edited by The MAZZTer on Oct 06, 2009 04:41; edited 1 time in total

Tsophika
Gamorrean

Joined: 14 Jan 2008

PostPosted: Oct 06, 2009 18:46    Post subject: View user's profile Send private message Reply with quote

I think you misunderstood what I wrote. Or maybe I wasn't clear.

A low-level format, as some call it, will not cause problems. Converting a FAT32 drive to NTFS will.

Platters get damaged over time, internal parts wear. Reorganizing the file tree will affect the entire partition. You do run the risk of data loss, especially on older drives. I work in a facility that refurbishes Acer/Gateway machines. Not that we see many FAT systems anymore, but a conversion is never the recommended action.

But nobody needs to worry since Barry's drive is already NTFS. I hope we've helped get you sorted out. Smile

The MAZZTer
Death Star
Death Star

Joined: 25 Sep 2003

PostPosted: Oct 07, 2009 01:21    Post subject: View user's profile Send private message Send e-mail Reply with quote

I was commenting about your bit about overwriting the entire drive with 0s. Backing up and then converting the drive is going to be a bit more convenient than backing up, formatting, and restoring. And if it doesn't work you have your backup.

Oh, and converting is probably going to write to the drive less than reformatting and recopying files. It depends on how they implemented it. Ideally, they can just replace the header and the file allocation table, pointing to the same old file data. I don't know about the low-level structure of such things though so it might be more work.

Even if it does write the whole drive over it's still no worse than formatting and rebuilding the drive from backup. Smile

_________________
http://www.mzzt.net/ | I am a respectable admin with a respectable sig.

Barry Brien
Dark Trooper Phase 1

Joined: 26 Sep 2003

PostPosted: Oct 07, 2009 02:00    Post subject: View user's profile Send private message Send e-mail Reply with quote

Oh yeah everything's perfect thanks! I was able to access the files no problem once I had it plugged into a computer that was running under an admin account.
My work laptop is a piece of crap, my housemates laptop isn't. Thanks again guys.

Display posts from previous:   
Post new topic   Reply to topic    DF-21 Forums Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group