Debian :: Swap Partition Between Distros
Apr 26, 2015Is it possible to use the same swap partition between distros or not ?
View 5 RepliesIs it possible to use the same swap partition between distros or not ?
View 5 RepliesI 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.
How useful is it to have 2 linux distros (Fedora and Debian) sharing a /tmp partition?
View 3 Replies View RelatedI have a new laptop, the HDD is 160 GB size, I would like to install several linux distros, such as Debian, UbuntuStudio and BackTRack, the HDD partition would be like this:
- first logical partition (100 GB): 3 ext3 extended partition (1 partition for each distro)
-second logical partition (2 GB): swap
-thid logical partition (55 GB): ext3 /home partition
-four logical partition (3 GB): free space
is possible to share the swap and the /home partition between the 3 distros?
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?
Does one need to Check the Swap filesystem, from time to time
View 4 Replies View RelatedI 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.
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?
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) ?
I was wondering what the best way is to partition multiple distros to share one home partition.
View 8 Replies View RelatedI 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.
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?
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 RelatedI am running Ubuntu with root on one partition and /home on another. I am proposing adding another distro (probably openSUSE) with its root on a partition which is unused at present, and the same /home partition as Ubuntu. Will using the same /home partition for two distros work? I realise that I will have to use the same usernames and passwords for both.
View 5 Replies View RelatedOn my netbook I want to have three linux distros: full desktop ubuntu, a quick loading web oriented netbook OS (maybe UNR or a couple others), and backtrack 4.
To save HD space, I was thinking about having like a 10GB partition for each OS, a 2GB swap partition to be shared, and a /home partition taking up the rest of the drive to be shared between all the OSes. Are there any potential complications here? Should I use a separate user and home folder for each distro or would it be ok to share the same home folder between all of them?
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 RelatedI'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 RelatedOn my laptop (Dell Studio 1745) w/500GB HD, I have a common data partition shared by openSUSE. Fedora, FreeBSD, and windoze 7 currently. I would like to encrypt this partition (/Common) and have it accessible from all distros either with a passphrase key in /root or on a flash key. I've been researching on the web and there seem to be several possibilities using eCryptfs, Luks, cryptosetup, or any of several methods.
My question is, what have people here used and how well did it work? Also, what was required for setup (I'll probably have to explain/teach it to my wife who is technology challenged-but I still love her anyway) and my daughter who's just getting into linux. I would like to be able to keep the entire directory on the hard drive but also have the ability to copy it to external USB device for transport.
I've got an external hard drive with one large data partition on it. I also have four computers to connect it to (individually, not at the same time). Three machines are running Slackware and one is running Ubuntu 9.10. I need to be able to just plug the drive into whichever machine, mount it (preferably to the same location each time) and not have to worry about user permissions and such. Do I just chmod 777 all the files and folders or is there a better method for different 'users' to access the same partition? And how about mounting to the same location each time?
Now the second part of my question I'm pretty sure I'm not able to do but just in case..... is there any way to encrypt the information safely and make it compatible with a Windows XP machine?
Noobish question on multibooting multiple Linux distros. I have four of the current major Linux distributions. Each has been installed and run individually (no other Linux distribution installed) in a dual-boot configuration with Windoze. No problem.
What I want to do is install all four Linux distributions and multiboot them. Reading the internet it would seem this is a simple task with GRUB. The short version being - install a Linux distro with a separate /boot partition for GRUB and use GRUB to boot the other Linux distros from the GRUB boot menu.
So I installed one of the Linux distros with a separate partition for /boot. The distro installer installed GRUB in /boot and correctly setup a dual-boot configuration with Windoze. GRUB was installed to the MBR. Next I installed a second Linux distro in its own root partition and told the distros installer NOT to install GRUB to the MBR, but rather, to the boot sector of the root partion of the second Linux distro. Installation was uneventful (and I could access the second Linux partition from the first installed Linux distro, things looked ok). Then I added to following to the installed (MBR - /boot) GRUB's menu.lst:
Code: title lixux distro 2
root (hd0,7)
chainloader +1 After which I rebooted the system and the new entry for the second Linux distro now appears in the GRUB boot menu. I selected the second Linux distro from the boot menu and got the following GRUB error: Error 5 : Partition table invalid or corrupt
[Code]....
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?
Debian and debian based distros issue has a issue that has come to make it self aware to me when I was trying to burn a video on my hard drive with braseo and it won't let me burn more than 4.4 gigs to a dvd with 4.7 gigs of free space even a file that is over the 4.4 gig limit by a megabyte with windows i didn't have this problem. One more thing I have 16 gig flash drive and on debian and debian based distros i can only use 13.1 gigs of it but on fedora I can use all 16 gigs.
View 3 Replies View RelatedMy motherboard supports up to 8GB DDR2. I currently have 4GB installed. If I maxed out my RAM, and installed 10.10 without a swap partition, I've heard this would increase speeds significantly. Would it? This particular rig runs multiple servers including an Asterisk PBX with FreePBX, XBMC, and Boxee. XBMC and Boxee do not run at the same time, only one at a time. Would it be safe to run with 8GB ram, and no swap partition? Running FreePBX/asterisk, XBMC, playing videos or ....., and every other background processes, free shows on average 50% free. Opinions?
View 3 Replies View RelatedI am getting a new SSD for my laptop and I have been researching the different tweaks for an SSD. I still have a question regarding the swap partition: is it better to not have one for an SSD? (I have 4GB of RAM...)
If I don't, how would I specify it during the installation process for 10.04?
I have a small disk and I want to resize to 2 gb the swap partition, how I can do?
[root@server12 ~]# lvdisplay
--- Logical volume ---
LV Name /dev/vg_fedora11/lv_root
VG Name vg_fedora11
LV UUID Zwl9te-GQ1j-5Py3-Jiz0-JFAY-sy7n-iaV2TP
LV Write Access read/write
LV Status available
# open 1
LV Size 52.32 GB
Current LE 13393
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Logical volume ---
LV Name /dev/vg_fedora11/lv_swap
VG Name vg_fedora11
LV UUID k61vCI-YAdI-XgNX-xRaG-B7jY-CTMQ-LKOjwk
LV Write Access read/write
LV Status available
# open 1
LV Size 3.92 GB
Current LE 1004
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
I have the swap partition configured normally in fstab but it doesn't automount when I boot up. Not only that but I can't manually mount it either (ie with 'swapon -a', 'swapon -L /dev/sda7' etc). When I try I get this error -
Code:
[spoovy@kermitfed ~]$ sudo swapon -a
swapon: /dev/sda7: read swap header failed: Invalid argument
fstab -
Code:
/dev/sda7 swap swap defaults 0 0
The swap partition is used by another installation (Ubuntu dual-boot), which mounts it fine each boot.
Can Ubuntu swap partition go in an Extended partition (a logical partition within the extended) while Ubuntu is on a Primary partition?
View 9 Replies View RelatedI want to remove my swap partition. Probably one I would have to boot into a rescue cd and remove it, but aside from that is there any other consideration or commands that I need to be aware of?
View 3 Replies View RelatedI recently installed Ubuntu Server, the 8.04LTS release, on my dad's computer which, for the time being, has to dual-act as both a server and a desktop. Will be running solely as a server pretty soon, though. Anyway - since I was down on the budget and the project I put up the server for is still in a development phase and not worth to invest serious money in (at this stage), it has to run on a computer with the following hardware configuration (I left out the non-important parts):
Code:
Intel Celeron 2.2 Ghz
~500 MB of DDR 333MHz RAM
It has 80 or so GBs of disk space, so I went for the low-mem, high-disk scenario and created a swap partition of 1,5 GB. However, I can notice that is rarely even used! I have set the vm.swappiness parameter to 95 but my swap partition is still not being used, even when the memory usage goes up to 90%. I saw it being used once, but only when the needed memory size exceeded 500.
Does anybody know how to force Ubuntu Server to use the swap partition?
I read an article earlier that suggested the swap partition is encrypted by default if you select an encrypted /home folder during installation, is that true (for Lucid)? I am suspecting it isn't because my hibernation works, which I believe shouldn't be the case?
View 3 Replies View Related