Ubuntu :: Merging 2 Partitions Of HDD
May 25, 2011I have 2 partitions on my 50 GB HDD. 1st 20GB (ubuntu), 2nd 30 GB (Data). I want to merge data partition to the first one. How can I do that?
View 9 RepliesI have 2 partitions on my 50 GB HDD. 1st 20GB (ubuntu), 2nd 30 GB (Data). I want to merge data partition to the first one. How can I do that?
View 9 RepliesSoon after I installed F12 I realized that I mixed / and /home partitions during the installation, resulting having an enormous / and a relatively small /home.
Since I want to avoid resizing the partitions*, is there any way to make Fedora use a certain amount of disk space on / as part of /home. Is this possible? And if it is, are there any drawbacks?
*I actually tried using a live usb but gparted wouldn't let me do any modifications. The volumes were unmounted though...
I was following a tutorial about installing ubuntu on a pendrive and in the process I split the pen drive in two partitions. Now I want to merge both the partitions.
View 5 Replies View RelatedI had two ext4 partitions; one had data and another didn't. I wanted to merge them using Gparted, but couldn't find the option. So, I deleted the second partition making it unallocated and used the 'resize' option to merge both the partition. Now, the partitions are merged but I LOST THE DATA..
I am seriously f**ked up.... What can I do to get those data back. I haven't done anything to the partitions after data: no adding data, no formatting.
i am totally new to terminal!!! i extracted both the audio and video from an mkv file. both can be played back without any problem, yet i can't merge them into a single one
View 9 Replies View RelatedI want to make a little script/program/something that can organize my TV show collection. I'm italian, so I store for each episode the .mkv file and the .srt file. To let VLC automatic recognize the .srt file, I use the same name for the .mkv and the .srt.
That solution is quite optimal, but we can do better: a program that watches a directory and it's subdirectories and automatically runs mkvmerge if it detects files with the same name in the same folder.
I'm a Java programmer, so I can easily make a program that finds files with the same name and runs mkvmerge.... My problem is the directory listener. I found incron, but the problem is that it don't add the listeners to the subfolders of a folder.
I recently popped in the CD that came with one of my textbooks from school and figured I would be able to rip it pretty easily, but guess what? Too my surprise I find that each chapter of the textbook has it's own PDF file and that each one is encrypted. Is there anyway I can decrypt the PDFs and merge them all into one?
View 5 Replies View Relatedhow to split two files like
big.zip.1
big.zip.2
then, my second is how to merge them like windows
in windows, i can use copy /b
in linux,
cat big.zip.1 > big.zip
cat big.zip.2 >> big.zip
I'm totally new to Linux and this website. I was wondering if anyone had or could help me create a shell script that would merge two files from two different directories and then have that new merged file in a third differnt directory.The merged file would need to eliminate duplicates and sort the contents.
View 6 Replies View RelatedI have three files with the following structure:
file1
1 2 3 4
5 6 7 8
[code]...
During the past eight years I've used a number of computers with different operating systems and browsers. On each one I made a habit of using the bookmark utility of each browser and saving the bookmarks file. I never ensured the continuity of the bookmark file - with each new computer I started a new bookmark file. Even when I was reinstalling the operating system I didn't import the old bookmark file in the newly installed browser: I've always started a new bookmark file. As a result I have tens of bookmark files for Firefox (json format - some kind of xml?) and IE (html file format?) each one containing hundreds or thousands of saved links. I have also some files containing links in text format (created usually when I was using someone else computer).
I would like to be able to manage this bookmarks files by using some sort of "bookmark manager" software. The "bookmark manager" should be able to merge the bookmark files into a single collection/file. It should be able to identify and remove the duplicate entries (I have timely versions of the same bookmark file) and also it should be able to group the entries/links on categories (for example the bookmarked articles on codeproject.com should be grouped under the codeproject category). Not to mention that it should provide a search facility to quickly locate the interesting bookmarks. I couldn't find such software in ubuntu software center. Do you know something that even comes close to what I need?
I would like to know which software can merge different videofiles (mpg, avi) into 1 file.
Kino makes a DV-file, which is to big.So I search the equivalent of Microsoft Movie Maker.
I used to have 5 drives on my 120GB Hard disk. I had Windows XP and Kubuntu 9.10 installed.today I started merging the drives after I have finished the process I found that grub menu is not loading instead I get something like thisgrub rescue>I am currently using Mepis 7.0 Live CD how can I restore the grub menu so I can boot to Linux or WindowsThe current HardDisk configuration is
Code:
# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
[code]...
Does anyone have a solution for merging files if the number of rows in the two (or more) files is non-equivalent.To exemplify, how about merging the following 3 files:
file1:
1
2
[code]...
"Merging" may not be quite the right word but that is the desired end result.
Scenario: many Solaris 10 servers, each with various local users. We want to set up LDAP for all for all of them. LDAP server is set up, procedure for getting other servers to use it for user authentication is documented and tested. The question is how to handle users that are in LDAP who also exist as a local user on a given machine.
It appears that the usernames on both sides follow a convention and therefore match but obviously the userids will not match. Local user joe has userid 1234, LDAP user joe has userid 56789.
The way I see it we'll have to:
1. move local user joe's home directory to the path that LDAP user joe will want
2. change local user joe's userid to that of LDAP user joe
3. change joe's files' owner to his new userid
4. remove local user joe
5. finally configure LDAP
Is this a rational procedure? Is there a more effective method? I'm not looking forward to this as there are many servers and each of them have a different set of local users, each with different userids which will have to be handled manually and individually therefore not even scriptable much.
How does coalescing of requests takes place during merging if the following scenario occurs.. say request for sector number 3 and 5 already exists...and a new request for sector 4 arrives, then if it front merges with 5, will it also back merge (i.e coalesce in this case) with 3 ? if it happens ..which functions are called? and how do we get to know whether a single merge or multiple merges have taken place?
references : blk-core.c, elevator.c, deadline_iosched.c all under /block.
I have multiple strings (eg. say two, firstLIST=(0 1 2) and secondLIST=(2 3)) and want to create a single string composed of their unique sorted elements. For the sample strings above, I'd like to build masterLIST=(0 1 2 3).I suppose I could write the elements of firstLIST and secondLIST to files
Code:
echo ${firstLIST[@]} > firstFILE
echo ${secondLIST[@]} > secondFILE
then use
Code:
sort firstFILE secondFILE | uniq > masterFILE
as this gives me a file populated with the elements I'm after, but I'm not sure how to read the elements back into masterLIST... and it doesn't seem "right" to create files to accomplish this. Is there a way to do this by manipulating the strings ${firstLIST[@]} and ${secondLIST[@]} directly? The closest I've come (not close at all) is
Code:
masterLIST=${firstLIST[@]}" "${secondLIST[@]}
but masterLIST built this way has only one element
Code:
$echo ${masterLIST[@]}
0 1 2 2 3
$echo ${#masterLIST[@]}
1
and I don't have access to the individual digits to then try to figure out how to remove duplicates.
I have a latex code file which links itself to many other latex files. The syntax is as follows:input{*path of file to be inputed*}The path is relative to the current working directory, so if my file is stored in /home/kevin/mybook.tex and I want to include a file in /home/kevin/latexstuff/copyleft.tex I simply write:input{latexstuff/copyleft.tex}
The latex compiler includes these files just as if they had been copied and pasted into the main latex file at the point specified. My problem is that I have a document which depends on quite a bit of these input commands,ut I am trying to use a latex preprocessor (ratexdb, adds database fields to your latex documentshich does not support input commands, leaving my file only half processed.So I was wondering: is there any easy way to parse through my main file, detect only the input commands, interpret the syntax and include the files specified (where specified)nd produce a second, populated file, which can then be processed by ratexdb?
I am very new to LVM, as well as not especially experienced at linux, and have some questions about how lvm works. A few months back I set up a server running FC10 and tried creating Logical Groups during the the initial setup. We've realized that we are not using all the available space on the physical drive, and I realized that for some reason (I'm thinking this might have been the default?), we initially created two Logical Groups (VolGroup00 and VolGroup01) and it appears two Logical volumes in each (LogVol00 and LogVol01). LogVol00 in VolGroup00 is mapped to /, and the other Group was actually unused. I figure that it would be simplest to just use all this space mapped to /, so I thought the thing to do would be to simply merge VolGroup01 to VolGroup00. I tried this:
[root@office mapper]# vgmerge VolGroup00 VolGroup01
Logical volumes in "VolGroup01" must be inactive
So after a bit of research, I tried this:
[root@office mapper]# vgchange -a n VolGroup01
Can't deactivate volume group "VolGroup01" with 1 open logical volume(s)
So apparently There's an open volume, but I don't know how to go about closing it. I removed the LogVol00 from that group, but LogVol01 won't budge.
[root@office mapper]# lvremove VolGroup01
Can't remove open logical volume "LogVol01"
So how do I go about closing this Volume? At one point, there was some output that told me LogVol01 was being used as swap space. How do I handle that?
What i am trying to do is i want to add numbers from 1 to 100. but that too using multiprocessing. So i made a c programme and using fork() command made two child processes. Now in one child process i am adding from 1 to 50. and in another i am adding 51 to 100. and then in the parent process adding the two results to get the final one. Now the result from the two function i am getting correctly. But after the wait() call the value returned is lost : See the programme below for reference
# include<stdio.h>
# include<unistd.h>
# include<sys/wait.h>
# include<stdlib.h>
[code].....
I used Ubuntu before, without problems but since the 10.04 version it won't recognize my partitions. I formated my laptop and partitioned it, installed Windows 7 64bit, which I need for my work, and wanted now to install Ubuntu 10.04/10. I then used GParted to check my Harddisk and it is having troubles to recognize my partitions, too while Windows finds them. GParted is giving me an error message saying my partitions are oversized. I am still in the beginning of my Linux experiences and so I don't know what to do. I have two 250GB harddisks (how Windows recognizes them),
[Code]....
Xubuntu 9.04 installation CD not detecting any of the current partitions. This all started when I reinstalled windows XP a few days ago.After, the computer wouldn't boot into GRUB and would boot directly into windows.Other threads have dealt with a similar issue, that of overlapping partitions causing libparted/parted/gparted to detect the whole drive as unallocated space. The problem in these threads seemed to be a corrupted partition table, in which the partitions overlapped with each other. So of course I checked the output of fdisk -l for overlapping partitions, but I don't see any obvious overlapping partitions. I've noticed that the partition that used to be linux swap isn't showing up in the partition table at all. I might just be missing something simple here and would like another set of eyes to help me figure this one out. Does the problem have anything to do with the partition table being out of order (ie. not in order of what regions they cover on the drive)? From the liveCD I've run
Code:
sudo fdisk -lu
sudo sfdisk -d
sudo parted /dev/sda print
and have received the following output:
Code:
ubuntu@ubuntu:/mnt$ sudo fdisk -lu
omitting empty partition (5)
Disk /dev/sda: 60.0 GB, 60011642880 bytes
[code]....
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?
View 1 Replies View RelatedI have vista and opensuse 11.2 on my computer, the problem is i can't open ext3 partitions from vista but i can the other way. I tried Ext2fsd but the linux partition is always in a read only mood even when i change this option. Also, all folders are empty I downloaded the program as admin and compatable with XP SP2.
View 3 Replies View RelatedI've installed Arch Linux onto my Western Digital SATA drive.I love it, best ever, however, I need the fglrx proprietry driver for better 3-d performace, and decided to create a new partition. I decided to install Linux Mint.Sadly, in all my noobishness, I forgot about the 4 primary partition limit (oops!) and as I have /, /home, swap, and /boot partitions (all primary) already installed, I have run into a bit of a problem.I resized my /home partition (almost 500GB) to about 225, and was then told I have over 200GB unusable space. Is it possible for me to change at least 1 of my primary partitions to logical partitions AND keep all the data intact (AND edit the arch configuration so that it'll still work) so I can install a second linux? I sincerely doubt it
View 10 Replies View RelatedI have two seperated video clips, that captured same event from two cameras. i would like to create one clip, that will show one on the left side, the second on the right side, and play together.
View 8 Replies View RelatedI have problem with XEN Citrix server I can not understand ; what is sda2 and sda3 partitions ?
Code:
root@cl-500 ~]# fdisk -l
Disk /dev/sda: 2000.4 GB, 2000407625728 bytes
64 heads, 32 sectors/track, 1907737 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
[Code]...
I have a bunch of text logfiles in the following format:
ID (17 characters)
Timestamp (14 characters YYYYmmddHHMMSS e.g. "20060210100040" -> 2006/02/10 10:00:40)
Random data (? characters)
end of line
The files are already sorted by timestamp.I need to get 1 log file with all the logs from multiple logs files, sorted by timestamp. Note that the log files are really huge, around 3-4G each (and there are dozens of them) I tried the following command:
sort -s -m -t '|' -k1n,1n +17 -o data_sort.txt *.TXT
Here is how I ended up with this command:
-s : don't bother with tie results
-m : merge all logs files
-t '|' : there is no | in my logs, so the whole line should be field 1
[code]....
Actually... it fails miserably. The output file data_sort.txt is just the concatenation of all files, not sorted at all.
When we install a linux OS, we've an option to create partitions. In my laptop I've create partition for /opt, /home, / and /tmp. Are these partitions the same type of partitions as the partitions created by LVM?
View 1 Replies View RelatedI have a file and it has some content . Now I want to check for some text in that file and if does not exist I want to append it . So I need to first grep and then do "echo "content" >> s.txt" . Is there any way to execute this two commands in a single command .
View 3 Replies View Related