Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-31-2012, 10:45 PM
|
#1
|
Member
Registered: Mar 2012
Location: Evansville,IN
Distribution: Manjaro KDE
Posts: 58
Rep:
|
GRUB Detecting Left Over Windows Data From Old Boot Disk
I have a hard drive that was once a boot drive for windows(vista?). However, I eventually switched boot drives and used a utility like unlocker to remove the system and/or system32 folder and any other windows related folders as the HDD had acumulated alot of data at that point and I had no avaliable way to store a back up of the data and format it. Now I am trying to install Debian(and of course grub) to a loan SSD(former boot drive that has been formated completley), but grub still detects that the 1TB was once used for windows because if I do an install of Debian and grub with only the SSD hooked up, it does not detect windows. How can I remove all traces of windows on my 1TB? Can I back up only the data to another HHD and format the HDD then restore data? Is it possible I simply need to delete or alter the mbr of the HDD?
I realize this is partially linux related but it is also partially windows related so I hope it is ok here. If this should be moved elsewhere on the forum, my apoligies for having posted in the wrong forum.
|
|
|
05-31-2012, 11:34 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,268
|
Are we to assume the 1TB is NTFS ?. To save lots of questions, go here, do as it says and post the RESULTS.txt so we can see the layout. Make sure both drives are in place before running the script.
|
|
|
05-31-2012, 11:57 PM
|
#3
|
Member
Registered: Mar 2012
Location: Evansville,IN
Distribution: Manjaro KDE
Posts: 58
Original Poster
Rep:
|
Syg00, thanks for the quick reply! I can run the script first thing tomorrow after my back up is done(unlike the earlier time mentioned above aka many years ago when I was far less knowledgable then I am now, I have more storage available that will hopefully be sufficent to store a temp backup). Anyways, yes it is NTFS. My apoligies for leaving out a key detail. I do have another question in the mean time. I am using Acronis True Image Home PP Boot CD to perform the current back up. While browsing the contents of the drive, I notice that a System Volume Information folder is present. I did a quick google but I have been up over 24 hours. From what I gather this is actually a windows based folder. Is this correct? If yes, then I should be able to exclude this should I need to do a restore, correct? If I do not restore, which seems unlikley, this folder is safe to remove? Thanks again for the response!
|
|
|
06-01-2012, 12:23 AM
|
#4
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,268
|
Yes, I think that is on every NTFS - even non-system ones; but I'd have to go check somewhere to be sure. Never considered deleting it, so can't offer any advice.
Personally I am no fan of imaging products (for backup that is). Plenty of filesystem aware tools around - the ntfsprogs ones on Linux probably the pick of them for speed/function/usability.
|
|
|
06-01-2012, 01:22 AM
|
#5
|
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
|
|
|
|
06-01-2012, 02:37 AM
|
#6
|
Member
Registered: Sep 2011
Location: Trinidad & Tobago
Distribution: Debian Stretch
Posts: 612
Rep:
|
If your aim is to use the HDD for a final Debian install, it might be better to backup your data and then re-format/re-partition the drive as necessary during the Debian install.
Anyway, to prevent GRUB from picking up the drive as having a Windows install, you can do two things:
1. Disable the os-prober. Open you /etc/default/grub file and uncomment this line:
Code:
#GRUB_DISABLE_OS_PROBER=true
then update GRUB.
Note though, this will prevent GRUB from detecting all other OSes installed. If that's not a problem for you, then this is by far the simplest method.
2. In NT and Windows 2000, it uses the hidden ntldr file on the root of the Windows drive. I'm not sure if it's the same in Vista, but if it exists, it will be safe to delete together with any boot.ini file. These are all hidden files. The os-prober package searches for the existence of these files to determine the type of Windows installation. Deleting these files will prevent os-prober from seeing the Windows drive as having a Windows installation. Run update-grub afterwards.
|
|
|
06-01-2012, 11:21 AM
|
#7
|
Member
Registered: Mar 2012
Location: Evansville,IN
Distribution: Manjaro KDE
Posts: 58
Original Poster
Rep:
|
Quote:
Originally Posted by syg00
Yes, I think that is on every NTFS - even non-system ones; but I'd have to go check somewhere to be sure. Never considered deleting it, so can't offer any advice.
Personally I am no fan of imaging products (for backup that is). Plenty of filesystem aware tools around - the ntfsprogs ones on Linux probably the pick of them for speed/function/usability.
|
I tried deleting it but no such luck.
I was simply using it from a file system aware perspective, not imaging perspective.
I think my goal was clear but perhaps I should explain what all is going on here and include an idea of my set up. I have a custom built rig. Core i7 2600K, MSI P67-G45, 8GB Corsair Vengance Ram, ATI Raedon HD4890, 2x2TB WD HDDs, 2x1TB WD HDDs, 1x80 GB SSD(boot). Now I am unable to use all the drives at once due to case/mobo/video card/SATA ports design, so I hotswap the HDDs as needed. They are all just data storage for music, movies, and such. Despite the swaping of drives, I want my system to boot under any combo of HDDs with the SSD being a constant. Now I go to install debian and everything goes fine, but when it comes time to choose to install grub it says Windows Vista (Loader) was detected. I choose to install and then reboot as instructed. The boot process goes through the normal steps and shows Welcome to grub or some reference of grub for about a second and then sits at a black screen with a flashing white underscore terminal doing nothing. I also notice that iduring grub set up, it briefly says /sda1, but sda1 is one of the 2TBs but my SSD is in port 6 on the mobo. However, I am using Hierens Boot Cd and the mbrfix utility. When checking partions on the 3 drives, the 2 HDDs simply report 1 partition that has the boot flag with type 7 and "NTFS or HPFS" but the SSD shows 2 partitions, the first is marked boot, type 131, linux native (usually ext2fs), while the second is not set as boot, size 3137MB, Type 5, Dos 3.3+ Extended Partition. So looking at it, nothing seems to reference windows, so I am confused as what is preventing the boot.
EDIT: on advice elsewhere I tried installing again with only the ssd hooked up. Boot was succesful! Power down, reconect HDDs and another sucesfull boot! This is now resolved.
Last edited by Xplorer4x4; 06-01-2012 at 01:24 PM.
|
|
|
All times are GMT -5. The time now is 08:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|