Preparing a hard disk for linux distros only (dualboot from 2 hard disks)
Hello everyone.
After reading dualboot threads I find that dualboot issues seem to be unique to each user. However, I want a simple setup which others may want. I have Windows 7 on a SATA hdd and my old IDE drive was part of it's filesystem. I physically removed the IDE drive and Windows refused to work. I then did a Windows repair from the installation disk and now the Windows OS boots only from the SATA hdd. It doesn't detect the IDE drive because it's not connected. I then connected the old IDE drive back in and BIOS detects it without problems. I don't want to boot into Windows as I think it will make the IDE drive part of its filesystem again (the IDE drive is in NTFS filesystem). So I want to prepare the IDE drive for linux distros in ext4 filesystem format. Firstly, I would like to know if Windows 7 will freak out if it detects a hdd in ext4 format. This is because I don't think it can write files to the drive. Secondly, I want to prepare the old IDE hdd for linux distros. It's 160gb and I want 4 distros in 40gb partitions each. So that means 3 primary partitions with 1 extended partition which houses 1 logical partition. I believe that's correct. I don't want complicated swap files or swap partitions. A linux distro in a 40gb partition with the modest 2gb RAM I have should be enough for a normal user like me. So can someone please say if Windows 7 on the seperate sata hdd will freak out if it sees an IDE drive in ext4 filesystem format? Also, can I go ahead and use gparted or something and prepare a nice living space for linux distros on my old IDE hdd? Thank you very much for your time. |
Windows cannot read ext4 and will tell you the disk needs to be formatted, but you should be able to tell it not to.
Have you tried removing the drive letter to which it was assigned from Windows Explorer? If you use gparted to clear the current partition table and create some new ones, I don't think Windows will even recognise it as the old drive (I could be wrong though). |
Many Linux distributions have GParted (Partition manager) on the installation medium. Use that to format the IDE drive. You need to verify that you have the right drive based on size or some other obvious difference since both drives are ntfs. You can create a new partition table with GParted or delete partitions and then format them or just format the partitions with ext4 or whichever filesystem you want.
|
Quote:
Quote:
I could simply use the fdisk command as well as gparted - I'm not familiar with gparted. However, I'm wondering if I should reformat the whole drive first into ext4 format? |
Quote:
However, what about the idea of splitting a 160gb IDE drive into four 40gb partitions for 4 distros? Is that gonna be ok? |
If you're uncomfortable working with all of your disks accessible, you can either disable the sata drive in bios or disconnect it. Me myself I don't worry about it as debian gives me the option to install bootloader on any drive. If I'm installing to sdb & also put grub there the only thing that might change on sda is the boot flag, which I can easily change with gparted.
If you're installing linux to the ide drive you can just select that drive & repartition it during installation. |
Quote:
The Debian system I am posting this from has a full GNOME desktop with LibreOffice & lots of other stuff and the 12GiB partition is only 2/3 full... |
Quote:
Quote:
|
FWIW I have noticed that the Debian installer can bug-out and freeze up if you try to use the partitioner provided with the installer so I think that partitioning beforehand is probably a good idea.
|
Quote:
I'm going to look up some stuff on gparted and prepare this hdd. I have some dvd-rw coming soon so I can install some distros. However, I may have a go at debootsrap before then! Will keep you posted. |
I have used gparted to create partitions on my hdd to be used exclusively for linux distros.
The output for the partitions is as follows: Code:
root@debian:/# fdisk -l /dev/sda However, when I look for details on each partition, I get an error message: Code:
root@debian:/# fdisk -l /dev/sda1 Can someone please advise what's gone wrong with these partitions? |
fdisk doesn't work for 1 partition. Qlthough it does tell you the size of the partition. As far as "nvalid partition table" that's because you aren't scanning MBR.
|
Quote:
Incidentally, why does the first partition sda1 start with 2048? I've seen some tutorials where the first partition starts at 1. |
Quote:
http://www.thomas-krenn.com/en/wiki/Partition_Alignment If you haven't done anything with the disk yet it may be worth converting it to a GPT type disk -- you won't have to use extended partitions (it allows 128 partitions as standard) and a backup copy of the partition table is stored at the end of the disk in case the main table is damaged. It will also make it easier to convert to EFI-mode booting at a later date (EFI-mode booting with MBR disks is firmware-dependent and may not work at all). You can use gdisk to convert the partition table; just run `sudo gdisk /dev/sda` and it will offer to convert it. EDIT: For use with non-EFI system you will also need to create a BIOS boot partition -- use gdisk again and create a new partition ("n") in sectors 34-2047 (this will be the default if the disk is full) and make it type "EF02" (no filesystem required). |
The first 512 is usally MBR, but modified to 2048 to point to grub. Also 2048 allows for better partition allignment
|
All times are GMT -5. The time now is 12:58 PM. |