Debian Installation :: Wiped Windows Partition With Swap And LVM Partition
Jan 17, 2015
I am having issues with Grub 2 after installing Debian 7.8.0.The computer is a HP Pavilion 500-307nb. I made the original harddrive /dev/sdb and inserted a Samsung Evo 840 as /dev/sda. From the original hard drive (/dev/sdb), I wiped the windows partition, but left all other partitions unchanged (in case I would ever want to recover the desktop to its original state). I replaced the wiped windows partition with a swap partition and an LVM partition.These are my hard drive partitions:
/dev/sda (Samsung Evo 840)
Number Start End Size File system Name Flags
1 1049kB 3146kB 2097kB primary bios_grub
2 3146kB 944MB 941MB ext4 boot
3 944MB 94.4GB 93.4GB host lvm
4 94.4GB 1000GB 906GB guests lvm
[code]....
The partition /dev/sda3 has 2 logical volumes with filesystem ext4 that I mount to / and /home.The partition /dev/sda2 is mounted to /boot..When I install like this, Debian installs fine, however Grub2 is not installed correctly.Debian installs grub-pc which seems not able to boot the gpt partition. So I boot the Debian CD in rescue mode and execute:
mount /dev/sda2 /boot
aptitude purge grub-pc
aptitude -y install grub-efi
After rebooting, I come in the grub rescue shell, which says: error: no such device: 986f2176--4a4b-4222-83b9-8636a034b3c7.
When I then enter in the grub rescue shell:
set boot=(hd0,gpt2)
set prefix=(hd0,gpt2)/grub
insmod normal
normal
Grub and Debian start up correctly.why can Grub not start up automatically correctly? Where does the UUID 986f2176--4a4b-4222-83b9-8636a034b3c7 come from? I have reinstalled Grub several times, I have reinstall Debian several times, I have even wiped all partitions from /dev/sda and recreated a new gpt table with parted and manually set the partitions in parted. Still on each reinstallation, Grub fails because it cannot find exactly the same UUID. Since this UUID is always the same, it must be stored somewhere, but it cannot be the partitions, I have wiped them and the partition table several times.
I did though a firmware update of the Samsung Evo 840 before reinstallation, could this be a cause?Also the problem is not in grub.cfg. Grub starts correctly if I enter the commands above in the grub rescue screen and the UUID value does not appear there.
View 5 Replies
ADVERTISEMENT
Mar 21, 2011
I realise that this is not a pure Linux Q, but I am hoping for tolerance and even help!After removing the partitions (/,/home) that held an older Linux installation, gparted showed the original Windows XP partition followed by the new unallocated space. On rebooting, there was a Grub rescue error (text not noted, sorry). A live install running gparted shows a totally empty disk!
The removed OS was booted via Grub2 and I imagine that it is choking when there is no secondary(?) file to be found since it was vaped. I also imagine that this is a fairly straight-forward matter, something like replacing the MBR but I am so far from Windows these days that I am unsure how to progress with rescuing the partition. The machine has no floppy - that's how I would have initially booted it way back when. Is this something that I can do either through a Linux live distro or via a Windows CD?
View 13 Replies
View Related
Jul 27, 2009
I have a brand new thinkpad X301 with 4GB of RAM and thinking of getting fedora 11 on it. The plan is to have it triple boot with vista/seven and hopefully OSx86. I am aware of the 4 primary partitions limit on an MBR disk. I was thinking of having a swap file instead of swap partition and not creating a boot partition as well. If I install the boot loader(GRUB?) on the root partition will I be able to boot it without any problems by using vista's boot loader?
Or Maybe I should install GRUB on the MBR and add all the other operating systems on it? Does anyone have any objections for not creating a swap partition or a boot partition? When comes to desktop environment I've been using KDE in the past, is there any major advantage of using Gnome over it? KDE seems to look really nice on fedora where Gnome is maybe more stable?
View 4 Replies
View Related
Feb 12, 2015
I recently installed Debian 7.6 64-bit on Dell Vostro 1520 laptop.Using Gparted, create extended partition in the remaining disk space 67.91 GB
Install Debian 7.6 as follows
Code: Select all/dev/sdb5 / 8GB Ext4
/dev/sdb6 / home 17GB Ext4
/dev/sdb7 swap 5GB
I opened a terminal and ran some commands to show the results below....
Code: Select allroot@DELL-DEBIAN:/home/hugh# cat /proc/swaps
Filename Type Size Used Priority
/dev/sda7 partition 4979708 0 -1
root@DELL-DEBIAN:/home/hugh#
Code: Select allroot@DELL-DEBIAN:/home/hugh# cat /etc/fstab
# /etc/fstab: static file system information.
[code]...
I have a couple of questions....
1. Does the data above indicate everything is running as it should?
2. What does this command tell me about swap? "/sbin/swapoff /dev/sda7" I read somewhere it should be run on 64-bit system but not sure what it does.
3. Is the command "cat /proc/swaps" the best way to determine if swap is running ok?
4. Can I share this swap partition with another distro, e.g. Ubuntu or Xubuntu? as I would like to multi-boot for testing purposes.
View 14 Replies
View Related
Mar 20, 2011
(This is for a 100% Clean install)
Q1) I was wondering if it is possible to Dual boot Ubuntu with Windows XP on a 1TB RAID-0 setup ?
Q2) Also, is it possible to create a SWAP partition (for Ubuntu) on a NON RAID-0 HDD ?
Q3) Lastly... I read GRUB2 is the default boot manager... should I use that, or GRUB / Lio ?
I have a total of 3 HDDs on this system:
-- 2x 500GB WDD HDDs (non-advanced format) ... RAID-0 setup
-- 1x 320GB WDD HDD (non RAID setup)
(The non RAID HDD is intended to be a SWAP drive for both XP and Ubuntu = 2 partitions)
I plan on making multiple partitions... and reserve partition space for Ubuntu (of course).
I have the latest version of the LiveCD created already.
Q4) Do I need the Alternate CD for this setup?
I plan on installing XP before Ubuntu.
This is my 1st time dual booting XP with Ubuntu.
I'm using these as my resources:
- [url]
- [url]
Q5) Anything else I should be aware of (possible issues during install)?
Q6) Lastly... is there anything like the AHCI (advanced host controller interface) like in Windows for Ubuntu?
(Since I need a special floppy during Windows Install...) I want to be able to use the Advanced Queuing capabilities of my SATA drives in Ubuntu.
View 4 Replies
View Related
Sep 1, 2011
I am about to get a new laptop here soon and I was planning a dual boot like I have on my current laptop (Win7 and Ubuntu), but I have something special in mind. I looked around the forum to see if there was anything like what I had or if it was even possible but I didn't see anything quite like this.I was wondering if this was even possible, and if so, would anyone be able to tell me what filesystem I should use for my windows swap partition?
View 6 Replies
View Related
Feb 27, 2015
After some years using OS X, I'm returning on Debian on my Macbook Pro in single boot.
I've bought a Samsung SSD (850 EVO 500Go) in order to replace the slow built-in HDD.
But I've earned about the need of repartition of writing operation on that kind of drives, and I'm concerned about swap partition.
I need swap (especially for Darktable, browsers and maybe Steam games), but I wonder if the usual swap partition (even with discard mount option) is really recommandable for SSD drives.
Actually, on Debian wiki and others, the usual recommandation is "if you have enough RAM, don't use swap or minimise swapiness to 1", but using of swap file is not mentioned.
Indeed, if I have only one "big" partition on the SSD drive and TRIM activated, the garbage collector (low level) built in chipet's SSD will optimize SSD life, but I don't know how the low level garbage collection works with multiple partition.
So there is my questions :
- Will SSD garbage collection will preserve the disc use even if I have a 2GB swap partition ?
- Will I'd use a swap file instead of swap partition (I don't really need to hibernate) ?
View 14 Replies
View Related
Aug 21, 2009
This is my first time using Fedora. My previous experience is from Ubuntu. However I want to give a try for Fedora so I went ahead to install it on my new computer. Problem is that Fedora Installer (Live CD) wiped out my NTFS Partition. Causing my computer unable to recover Vista from factory DVD because it lost system partition as well. I want to know if this is my error or a bug in installer.
Original partition setup:
220 GB - Vista System Partition (NTFS)
14 GB - Recovery Partition (NTFS)
First I resized system partition under Windows Management in Vista:
170 GB - System
50 GB - Unallocated
14 GB - Recovery
Using GParted from Ubuntu 9.04 Live CD, moved recovery to the left:
170 GB - System
14 GB - Recovery
50 GB - Unallocated
Rebooted into Vista, make sure everything is fine. Then put in FC 11 Live CD, using custom layout setup in partition, intended partition layout is:
170 GB - System (NTFS) - Primary sda1
14 GB - Recovery (NTFS) - Primary sda2
200 MB - /boot (ext3) - Primary sda3
sda4 - Extended Partition
45.8 GB - / (ext4) - sda5
4 GB - swap - sda6
After I check my setup and pressed enter, it returned with unable to format /boot error: -1. Restart FC installer, it tells me that my hard drive needs to be re-initialized. I clicked no and reboot. BIOS tells me that no OS is found. Attempting to recover from factory DVD failed, telling me that system partition is gone. I want to know did I do something wrong or is this a bug in FC installer.
View 6 Replies
View Related
Jul 22, 2010
Now however its not letting me resize the Windows partition, mounted or unmounted. It currently occupies the whole disk. I would rather not reinstall the whole thing over again, but I will if I have to. Isnt there an easy way to shrink a Windows partition? I swear Ive done this before and it wasnt this hard. Could it be a problem with the Mint installer that now asks me if I want to unmount my disks before it goes into install mode? On this PC I would like to have
Windows XP
Mint
Ubuntu-Studio
Edubuntu
One of the E17 OSs
Puppy Linux (to create a remix)
I am probably going to put most of the linux partitions on the second laptop drive but I want to install files on a non WIndows NTFS partition.
View 6 Replies
View Related
Feb 23, 2011
I had a drive with a partition layout like so:
~50gig Windows 7 - NTFS
~100gig Ubuntu - EXT3
~100gig Snow Leopard - HFS+
~100gig Extended Partition
-- ~100gig Swap Disk - exFat
I wanted to delete the Snow Leopard partition and format the Swap Disk partition to something else. exFat was causing major file size bloat on small files. QT sdk bloated to like 11 gigs or something ridiculous like that. Anyways, I loaded up an Ubuntu 10.04 LTS live cd and gparted then deleted the Snow Leopard partition. Gparted said "Mission Accomplished" and tried to rescan the drive, but never found it. At this point I restarted the computer, a dell laptop, which didn't boot with an unable to find a bootable device error. The ubuntu live cd doesn't see the drive anymore. gparted scans for drives indefinitely and fdisk -l has no output.
View 9 Replies
View Related
Feb 8, 2010
I was reading another thread about someone with a bad partition table and I decided to join this forum. I'm not going to take any drastic actions with the partition (/dev/sda3) in question. I am going to wait for instructions on what to do first. I am not very good with Linux and need some hand holding. System: DELL 4550 Dual-Booted with XP and Ubuntu. Works OK, just no swap. Well, here's what I did: I deleted a partition for Windows XP Pro because it was a trial, and it ran out. I then decided to slide the swap partition for the Ubuntu Linux that I dual-boot into over. (If this was successful, I was going to try expanding the root partition to take up the unused space.) I used Gparted on a CD to do this, as I figured it was safe to do.
I now cannot mount the swap space at bootup (and have to go into a backup version of the OS), although I can use Gparted in Linux to execute the "swapon" command, and it appears that it worked because I now see "swapoff" as an option on the context menu. (I actually don't even need a swap partition, except to hibernate.) If I highlight the swap partition and click on "Drive" on Gparted's menu bar and select "Create Partition Table", it will erase all data on /dev/sda, so how do I fix the bad partition table non-destructively?
View 14 Replies
View Related
Aug 4, 2011
I wonder whether to place swap partition on LVM or on standard fdisk partition which will not be in LVM.What is better and more often used on production ?
View 4 Replies
View Related
Feb 20, 2011
Two days ago I repartitioned my laptop HD and added the latest Ubuntu (2.6.35-25-generic) to the existing Vista and existing Ubuntu (2.6.32-28-generic via upgrades from 9.14(?)). Prior to this install it was using Grub with menu.lst from the old/upgrade Ubuntu. After the install the boot menu labels the partition with Vista as the Windows Recovery partition and the recovery partition item is no longer present.
At first I wondered how I could get Vista to boot. I found that SuperGrub cd would boot it OK. Then, it dawned on me that the boot menu item was not the recovery partition, but instead the Vista OS partition mislabelled . Vista loads just fine from it. The recovery partition is no longer listed as it was with Grub/menu.lst. SuperGrub will not boot the recovery partition, showing an error "missing BOOTMGR".
'os-prober' produces--
root@Toshiba:/home/deh# os-prober
/dev/sda2:Windows Recovery Environment (loader):Windows:chain
/dev/sda7:Ubuntu 10.04.2 LTS (10.04):Ubuntu:linux
[code]...
I edited boot/grub/grub.cfg so the boot menu item is labelled correctly, but suspect that it will revert back when there is an upgrade.
View 4 Replies
View Related
Sep 1, 2011
i have instaled ubuntu 11.04 wubi on my pc with windows 7. i installed and everything was going ok i navigate on ubuntu already. but the problems star here i went on my ubuntu to the partition section and i format my windows partion to be the home partion and changed the nfts to ext, i did the upgrades but i forgot that theyr running yet and i restart my computer when it boot again it gaves me an error:
try (0,0) : nfts5 : wubildr
try (0,1) : ext2 :
and the windows7 says that i have to instal again. so i went to another pc and i made a cd boot and a pen boot. i burned the iso (downloaded from the ubuntu oficial site the 11.04 32 bit version) image to the cd and pen drive prperly, i adjust my boot options to star from usb or cd rom and nothing im struck.
View 9 Replies
View Related
Oct 25, 2010
This is my partition table:
/dev/sda1 1 4255 34178256 83 Linux
/dev/sda2 4256 4437 1461915 5 Extended
/dev/sda3 * 4438 9964 44395627+ 7 HPFS/NTFS
[code]....
View 4 Replies
View Related
Jun 4, 2011
I have an Acer Aspire Netbook running a dual boot with Xp and Ubuntu Netbook Version (Lucid Lynx if I am not mistaken?) Anyway I plan on selling this netbook and I need to remove the Ubuntu Partition and go back to just a full Windows Xp partition with it's recovery partition also.
View 2 Replies
View Related
Aug 1, 2011
I tried installing Ubuntu 10.04 LTS on my girlfriend's lenovo using a live disc. First we tried it out to show her the wireless would work fine (her previous lenovo was not ubuntu friendly at all). She's interested in keeping her windows 7 partition along with the lenovo recovery partition, so I tried doing a dual boot install. I manually moved the cursors setting the disk space on each partition, and we allowed Ubuntu to do the rest. Much to my dismay, the installation failed.
I've done some reading over the internet, and I think in our case it would be best to use a Wubi installation. We're interested in using 10.04, so where can we find a wubi installer of Ubuntu 10.04?
Also, any ideas why the installation might have failed? The iso was downloaded off the ubuntu main site, and we burned it using infrarecorder.
View 3 Replies
View Related
Apr 26, 2015
Is it possible to use the same swap partition between distros or not ?
View 5 Replies
View Related
Jul 3, 2011
Currently my system runs on two disks, sda 30GB and sdc 1GB. sdb is my data disk. I have set the partitions as sda1 /boot, sda2 /(root) and sdc1 /(swap).
Thinking that sdc was udma33 i used the disk for a swap area. Later i found out that it is pio4 and i want to relocate my swap area to sda.
Using GParted Live i am planning to create a swap partition to sda. Will fixing the entry in fstab be enough to correct this or do i need to do something more?
I could also use some advice on which live debian image i can install in sdc, to use for rescuing purposes. The capacity of the disk is 1080MB.
As a side note, the images i find for usd-hdd are direct download. Are there any torrent files for these?
View 2 Replies
View Related
Aug 1, 2010
I want to change the swap partition to another partition. Is there a gui that can make this process easier so I don't have to do things like manually editing files?
View 2 Replies
View Related
May 21, 2011
I've recently just installed ubuntu 11.04 but seem to have made a big mistake. During the install process I was asked to specify a location to be used for swap. Not really understanding what this meant I chose another partition on my drive with some free space but also a lot of my data. Needless to say I now cant see that partition. Is there anyway for me to access it? or to at least recover the information I need from there? its about a 200gig partition, and it used to be ntfs.
View 2 Replies
View Related
Feb 19, 2010
I installed XandROS on my vista machine. I can access the Windows partition from Linux but in Vista I cant see the Linux partition...is there anything I can do about that?
View 3 Replies
View Related
Jan 23, 2011
During the second OS (CentOS) setup, the shared SWAP partition was formatted and now I get the following under Debian:
Code:
# free
total used free shared buffers cached
Mem: 507524 251436 256088 0 11488 78332
-/+ buffers/cache: 161616 345908
Swap: 0 0 0
How to configure Squeeze to use again this SWAP partition?
View 5 Replies
View Related
May 27, 2011
I installed Debian stable and I see these errors in the xsession error file
/etc/gdm3/Xsession: Beginning session setup...
GNOMEKEYRINGCONTROL=/tmp/keyring-j0E6Br
SSHAUTHSOCK=/tmp/keyring-j0E6Br/ssh
GNOMEKEYRINGCONTROL=/tmp/keyring-j0E6Br
[code]....
View 4 Replies
View Related
May 31, 2009
On numerous installs I ignored "swap" message but want to create one this time. And can it be done post installation?
View 5 Replies
View Related
Apr 5, 2010
I'm installing a new SSD this upcoming weekend. My thought was to go easy on it so it lasts longer by putting my swap files on a mechanical drive instead of the SSD. I don't - however - want to waste space for swap files. It would be nice if I could use the same 6GB FAT32 partition for swap files for both Windows 7 and Ubuntu. Is this possible? It might not even be necessary though, I have enough RAM that I rarely use the swap file at all (I've even considered going without swap all together), so it probably won't pose a huge load to the drive.
View 9 Replies
View Related
Aug 3, 2010
I have Ubuntu 10.04 installed. When I run Ubuntu 10.04 LiveCD and I start GParted I see that there is a "key" on my swap partition marking it as locked I guess. When I right click, I cannot select "Delete" option. What does this mean? What if I want to rearange my partitions sizes including swap partition for whatever reason?
View 1 Replies
View Related
Apr 9, 2011
I'm using ubuntu 10.04 and it seems that I forgot to set up a swap partition when I installed my system. So, I can't install hibernate, and I don't think I have any virtual memory any more.
I know that I can always set up a swap file to play the same role, but since swap file is not contiguously stored on hard disk, the performance is expected to be worse than a swap partition.
So, how can I add a swap partition and make my system boot with it every time from now on? I have unused space on my hard disk, and re-installation is NOT an option.
View 3 Replies
View Related
Aug 9, 2011
I am using a Dell Inspiron 580 that I recently recieved as a gift. I wouldn't normally purchase a Dell, but I have no money and it my old computer was WAY past it's prime. After going through a miniature nightmare I now wonder how to create swap space for my ubuntu installation. I am running 10.04, 64 bit. I am having no problems, but I have no swap space. My computer is a new -Intel i3- with 6GB of ram; so I assumed I could worry about getting it installed, then set a swap file later. As I said, it runs well, but i don't feel comfortable with ZERO swap space.
When I installed Ubuntu I already had a problem because Dell had included 2 special partitions that are diagnostic and recovery. This didn't surprise me, but I want to make my system backup less than 100GB, so I shrank the "c:" partition to 100Gb and made the free space "storage":NTFS partition. After backing everything up (before messing with the partitions), I installed Ubuntu. Since I had created the backup that Dell asked me to (the very first time I turned the PC on) as well as my own system image I wasn't concerned.
Using GParted Boot disk I deleted the Dell "Recovery" partition and marked the "C:" drive (COS)) as active. I used a Windows 7 install disk to "repair" the bootmgr problem. Had to run "repair" twice, but it worked.
My question now is: why didn't Ubuntu installation say anything about a swap partition until I had already set up my partitions? I could easily give up a gig or two for swap space but I cannot make a swap partition unless I delete the Dell diagnostic partition (NOT the "recovery" partition; the other hidden one). I don't mind deleting the "recovery" partition because it is backed up, but I would prefer not to delete the "diagnostic/utility" partition, just in case. The 40MB is crap anyway.
It hadn't occurred to me that I would have trouble making swap space. I am used to windows (I am dual booting with GRUB BTW, if that matters) and the swap FILE doesn't need it's own partition. I understand why a separate partition would be better, but unless I can somehow create a logical/extended partition for swap, I need to know what else I can do.
I believe Ubuntu is a better system for many reasons, but little things like this do puzzle me. I am no engineer, or software designer, but I don't understand why I wasn't given an option, such as: You cannot make another primary partition; would you like to use a virtual disk/file as your swap space?"
View 2 Replies
View Related
Mar 20, 2011
Does one need to Check the Swap filesystem, from time to time
View 4 Replies
View Related