Debian :: Install Debian Root Into Software Raid Partitions Sda2 And Sdb1?
Mar 2, 2011
I got two harddisks, sda and sdb. Is it possible to install Debian root into software raid partitions sda2 and sdb1 leaving all other partitions 'normal' (not-raid)? do partitions sda2 and sdb1 need to be exact same size and position?
I just successfully installed ubuntu 10.10 Meerkat Maverik parallel to manufacturer installed Windows 7 Professional on a newly bought ThinkPad t410. All works find just that on the boot screen instead of 1 Windows partition (usually something like "Windows 7 loader on sda1") I find two Windows partitions. Now, I know that Thinkpads have a recovery partition. Funny is though that both "Windows 7 loader on sda1/2" login to what seems the identical Windows (not one of them the "normal" and the other some form of a recovery).
I have been dual-booting Vista and openSUSE 11.2 until my SUSE install is fully functional and now and I want rid of Vista and to reclaim the space for Linux.
Code: fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x28000000 [Code].....
sda2 and sda3 are the Vista partitions. sda2 is a recovery partition and sda3 is the main partition. All data is safely copied from sda3 and now I want to reformat them for SUSE. I not bothered about partition resizing i.e. I am happy to just have the sda2/sda3 space available to SUSE and mount them somewhere.
1) Do I need to do anything about the boot table first or can I just reformat sda2 & sda3?
2) How should I format sda2/sda3? I'm guessing I need to unmount them and then format. Should I use ext4 or something else? Which command/tool should I use?
I have 2x 1.5TB hard disks and I'm going to buy a new 2TB drive soon. First though I just wanted to check that I could partition off the first 1/4 to 1/3 of the 2TB drive (leaving 1.5TB or more free) and install Debian to that part, then use the remainder of the disk in combination with the 2x 1.5 TB drives in RAID 5? i.e. can you mix whole drives and with partitions from other drives in RAID 5 and/or is it best to just stick with complete drives for the RAID array?I only have room for 3 drives in the small mATX case that houses my NAS device and I want to maximise storage capacity and minimise expense.
I need to set up a RAID 1 array on Squeeze. I have 3 partitions: sda1 is root, sda5 is home, and sda6 is swap. (sda2 is the extended partition containing home and swap. This was a clean installation, so I don't know what happened to sda3 and sda4...)
All the information that I've been able to find recommends doing something like this:
The RAID level 1 interested me because of its redundancy in both drives. And I successfully made it in a couple of partitions. But, I always did it after Linux installation. Then, I create both partitions, use 'mdadm' to create raidtab and RAID device (md0, for example) and then I format the RAID device with 'mkfs' and mount it.
Until there, it's all OK.
But my problem is to mirror ALL the hard disk, inclusive root partition. To do that, I guess I need no Linux installation, then create the RAID (md0, raidtab, etc) and after that install Linux in RAID device created.
But I'm new in Linux world and I have no idea how to do that.
I use Debian Lenny, so I need a solution that uses only the first DVD of this distribution.
Is there a way where I can take like 50GB from my home folder (I have 375 avail., but using only 22GB) and put it to the root partition? Twice now my system has almost ran out of space on root, so luckly I was able to clear out old stuff so I don't have login issues after finding the hardway the first round lol. I just want to make sure I can login with out being forced back out because root don't have space to let me login.
Ok. I have a media server running debian amd64. when I installed it I made separate partitions for root (/) home (/home) var (/var) and swap.
I'm adding some new hardware (mobo and ram) and want to reinstall debian. I would like to keep my home and var partitions intact and just reinstall everything in root (/) partition.
I'm unsure of how to do this during the installation. Do i need to format? how do I tell it to use the /var and /home partitions?
I've been having some problems w/ a my RAID 5 array, and after extensive investigation, I'm fairly sure that my last resort is rebuilding the array. I'd tried --assemble, b/c it's a previously created array, but it didn't seem to like that. So, I checked into --create, and it will re-create the array w/out destroying the data, if the superblocks are persistent, which they seem to be. However, here's what I get:
[Code]....
My question is: why do /dev/sdb1 and /dev/sdi1 show as both ext2fs and also as part of a RAID array?
We've started using Debian based servers more and more in work and are getting the hang of it more and more every day. Right now I'm an ace at setting up partitions, software RAID and LVM volumes etc through the installer, but if I ever need to do the same thing once the system's up and running then I become unstuck.
Is there any way I can get to partman post-install, or any similar tools that do the same thing? Or failing that are there any simple guides to doing these things through the various command line tools?
I am trying to setup a H/W RAID-1 matrix but I am unsuccessful. I am trying to get partitions installed as /dev/md0, /dev/md1 but it keeps going for /dev/mapper/isw...The reason is that I have R1Soft backup and it needs to hook the partitions as seen in /proc/partitions from /dev not /dev/mapper/isw. I have tried to boot the installation with various options but nothing!
I have created a system using four 2Tb hdd. Three are members of a soft-raid mirrored (RAID1) with a hot spare and the fourth hdd is a lvm hard drive separate from the RAID setup. All hdd are gpt partitioned.
The RAID is setup as /dev/md0 for mirrored /boot partations (non-lvm) and the /dev/md1 is lvm with various logical volumes within for swap space, root, home, etc.
When grub installs, it says it installed to /dev/sda but it will not reboot and complains that "No boot loader . . ."
I have used the supergrubdisk image to get the machine started and it finds the kernel but "grub-install /dev/sda" reports success and yet, computer will not start with "No boot loader . . ." (Currently, because it is running, I cannot restart to get the complete complaint phrase as md1 is syncing. Thought I'd let it finish the sync operation while I search for answers.)
I have installed and re-installed several times trying various settings. My question has become, when setting up gpt and reserving the first gigabyte for grub, users cannot set the boot flag for the partition. As I have tried gparted and well as the normal Debian partitioner, both will NOT let you set the "boot flag" to that partition. So, as a novice (to Debian) I am assuming that "boot flag" does not matter.
Other readings indicate that yes, you do not need a "boot flag" partition. "Boot flag" is only for a Windows partition. This is a Debian only server, no windows OS.
I have two 320GB Seagate 7200.4 hard drives on my laptop and I am looking to set them up as a RAID 0 array to install Debian on. After reading a bit online I wanted to seek some guidance with this as this is my first time setting up software RAID. My biggest concern is how to maximize performance of the array with regards to block sizes, chunk sizes, stripe sizes, filesystem types, etc. etc. It seems there are a lot more nuances to setting up a RAID array (properly) than I thought there would be
Edit: It also appears that grub2 cannot be installed to /dev/sda when the drives are setup in RAID 0. Is there an easy way around this? I read somewhere that if you select to install grub to the RAID partition it will work? Is that the case, or do I need to do something else to get grub to boot directly to the raid array?
I performed an install using the 5.0.6 amd64 netinst cd on a dual opteron server with an Areca ARC-1110 4-port SATA hardware RAID card. I have 2 250GB drives set up as RAID 1. The debian install saw it as only one drive, just as it should. Install went smoothly, but on reboot, the system would not load.
I did some research and tried a couple of things with no luck. Like adding a delay in the grub command. It jus sits at loading system for a while then times out and loads busy box. Just to check things out, I booted into an Ubuntu live-cd and mounted the volume. The file system is there and all of the necessary files. How to use one of these cards successfully?
Debian Jessie, 2 hard disks, each having 2 partitions: /dev/sda1, /dev/sda2, /dev/sdb1, /dev/sdb2. Partitions were paired during installation, so they form /dev/md0 and /dev/md1. /dev/md0 is the root (/) partition, /dev/md1 is for /home.
At the end of the install process, I chose /dev/sda1 to carry Grub. And I think this is where I screwed things up.
After removing one of the hard drives, there was no boot capability. So, I installed Grub on /dev/sdb, too. Now it displays the boot menu but cannot find the kernel. This is where I got lost in the process.
Do I need to reinstall the OS or is there a way to fix it? I suppose I have to edit Grub.
Simple question, which implies lot of complexity, unfortunately : how to install Clonezilla and mount multi-partitions cloned image disk under DEBIAN ?
Wishing that one day Linux would be so easy and complete as Windows. But we are gaining more users, so Linux will have more apps
I have installed a new Linux distro (just to test it) on my usb memory stick, and I'm trying to run it. I don't know if what I did is correct so far, anyways here's what I have:
Grub on sda (internal hard disk) sdb with no boot loader (memory stick)
In grub I've been doing: root (hd1,0) kernel /kernel-genkernel-x86_64-2.6.37-sabayon root=/dev/sdb1 vga=normal initrd /initramfs-genkernel-x86_64-2.6.37-sabayon boot
This seems to work (as opposed to when I forgot the root= parameter, which almost destroyed my linux on sda1 ), but during startup the system complains about no root bein found on /dev/sdb1. I also tried (hd1,0), but it didn't change much.
I'm sure I can boot an OS from usb on my computer, so doesn anyone know what I'm doing wrong?
I used Zorin, Ubuntu, and Kubuntu. Even though Kubuntu was my favorite because of the KDE platform, it still didn't have what I was looking for. With Debian, the KDE platform works great, it uses KDM instead of LightDM, (you can do more with that), and the choices of software for setting it up as a server is great. The problem I having right now is with the root privileges. With the other Debian based systems I used, root privileges was not a problem. When I signed in, it was with my user name and my root password.
Every time I did updates or installed software, it ask me for authentication which is my root password. And if I had to use su or sudo commands in the terminal it ask for my password. I had no problem with that. I'm just as big with security as any Unix based system users. And Linux has that. That's one of the big reasons I left Microsoft Windows for Linux. There was times when I had to have full root privileges for just a short time, and my favorite command was sudo nautilus. This was perfect.
For example, sometimes I had to get in to the opt folder for a brief moment to past a web page in it. Opt is a root folder. It can be opened with out a root privilege, but you just can't past files to it. Sudo nautilus was perfect for this because it is a temporary root privilege. Close the terminal and the root privilege session ends. This is great. You don't want root privileges all the time you're log in. That can be dangerous because it's a high security risk.
With Debian, I have not been able to get any root privileges. And without root privileges, I can't load much needed software, can't access my second hard drive, matter of fact, the second hard drive doesn't even show up. I can't really do much of anything. Is there something I can do when I am installing Debian to fix this or how do I get the root privileges I need?
I have a fresh install of Squeeze with CD1. I have no root password to open admin apps, so I set one with 'sudo passwd root' and then I'm able to open them, but only once. I have to set the root password every time prior to opening an admin app. Am I doing something wrong? Could I be missing a package?
Is there any way to install .deb packages without giving root access?That it, I have root access, but I dont to give root access to the .deb package.This is for instance to install the .deb of SipderOak online backup took, or to install the .deb of openofficeWhenver available, I compile from sources, but sometimes only the .deb is available.
I am a Fedora user and have recently shifted to Debian.I tried to install httperf using the following command as root user:apt-get install httperfbut apt-get cannot locate the package:
root@D6-VM:/home/saad# apt-get install httperf Reading package lists... Done Building dependency tree
Is there any way to install .deb packages without giving root access?That it, I have root access, but I dont to give root access to the .deb package.This is for instance to install the .deb of SipderOak online backup took, or to install the .deb of openoffice.Whenver available, I compile from sources, but sometimes only the .deb is available.
I am installing Ubuntu on the same hard drive as Windows 7. The partitions of Windows 7 have already occupied the left part of the hard drive. From left to right, the Windows partitions are one partition for Windows booting, one for Windows OS and software installation, and one for data which is planned to mount on Ubuntu. I was wondering how to arrange the order of partitions of root, home and swap, i.e. which is on the left just besides one Windows partition, which is in the middle and which is on the far right?
there is a way to mount, encrypted partitions as a normal user and not as root so that i may copy files into it using the file manager itself? even in the case of normal partitions other than /home, i can't seem add any data in them. the mount points i used are seperate directories within the /home partition?? also, is there a way to create partitions in such a way that it can be accessed, just as how windows partitions are accessed in linux?
After a fresh install of Debian I came across an error Im hoping you guys can help me with. Ive searched for the error and it appears there are multiple reasons that could be causing it. To compound the problem, Im at work so I dont have the specific error messages....so I just installed Lenny (standard install, no desktop) using a USB installer and everything went very smooth. On first boot, the system paused while waiting for the root file system. After a minute or two it just errored out complaining it could not find the root file system and put me at a (vmlinuz) prompt?My guess is that I need to go into my bios and change my boot priority.. but again, thats just a guess.