Ubuntu :: Copy Active Partition From 80G To 160G By Using Dd Command ?
May 21, 2011
I have 2 IDE HDDs, 80Gb and 160Gb. I am trying to copy active partition from 80G to 160G by using dd command as
Code:
After some time with output
Code:
View 9 Replies
ADVERTISEMENT
Mar 1, 2011
How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).
More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.
View 1 Replies
View Related
Feb 27, 2010
I can take apart my computer and fix a problem and then re-install the partitions. Hopefully I won't have to re-install, but I want to make backups just in case
-HP laptop with a windows (NTFS) and an Ubuntu (ext3) partition ~ 500GB total
-Iomega 1TB external hard drive partitioned into a 500GB NTFS storage, 250GH BLANK ext3 Linux Backup, and 250GB BLANK NTFS Windows Backup.
I want to copy my windows and linux to their respective 250GB spaces on the External HD.
1.) Can you direct me to places on the net that describes this in detail?
2.) Can I copy a partition while running that partition?
3.) Will copying C:/ in windows over to the external HD copy entire partition?
4.) Can I copy a Laptop partition to a external HD partition that is bigger?
5.) Do I have to use partition manager software or can I do this from terminal/cmd prompt?
View 2 Replies
View Related
Sep 22, 2010
I am using Ubuntu Live CD. I want to set a partition as active partition in my laptop which is not booting up right now. How can i set a partitoion as active through Ubuntu Live CD?
View 1 Replies
View Related
May 4, 2011
I got a new hard disk for my laptop and I want to move my Gentoo installation from old HDD to new.
Most simple guides recommend use of dd to copy the whole partition byte by byte.
I'm moving to the new drive because I don't have enough space on the old drive, so I don't want to simply clone the partition. Instead I need the destination partition to be bigger. Would dd work well in that case?
Assuming that I use same partition types on the new drive, would I be able to use simple cp with appropriate settings?
View 1 Replies
View Related
Aug 20, 2009
I'm a linux user for some time now and most stuff I can figure out myself. Though, this one drives me crazy and I did not find any information on the internet.I have a partition, say, Code: /dev/sda1 , which is 128MB big. When I copy it using Code: dd if=/dev/sda1 of=/home/me/backup_sda1.img , the resulting file is 134MB big. Now my problem is that I want to copy that partition as-is to a CF card, which does not work because the image is bigger than the partition on the CF card.Why does dd create bigger files? Shouldn't it be exactly same sized like the source?
View 7 Replies
View Related
Sep 9, 2010
I decided to have my laptop with dual boot. Already having Win7, I tried installing Ubuntu on another partition. While installation was in progress, during the step where we manually choose partitions to install ubuntu on, I was asked to provide a swap area for ease of operation. I provided another active partition for this supposing that this "swap area" is needed only during the installation. Unfortunately, as I found out later that this makes that important active partition to be unavailable to work upon both in windows as well as Ubuntu. I need to use this partition again.
I tried the "disc utility" in System--->Administration section to change the partition type to "hpfs/ntfs". After a longtime it showed me error (Unable to perform the operation). What could have gone wrong? I absolutely need that drive back, as it contains valuable media files.
View 9 Replies
View Related
May 2, 2010
This thread is not so much looking for a 'solution' as it is looking for some 'reason why', as I now have it working.I have just inherited a Gateway 509GE - P4 3.0GHZ / 1GB RAM / 200GB SATA WD2000JD HD. It is circa 2005 hardware. The previous owner had tried to install Mandriva after windows began to choke on accumulated garbage, then tried to revert to XP, both of which appeared to install but neither would boot. He decided to just get a new box and gave me this one.I ran Memtest86 and found a bad DIMM and replaced it.
I repartitioned and formatted, a single ext4 root partition plus 2GB for swap. I completely removed existing partitions including the hidden M$ restore partition and checked disk - all using Gparted Live CD.I put a full Slackware 13 on it, installed with LILO to MBR, rebooted... nothing... "No bootable device found".I booted to install CD and played with Gparted Live CD and everything was there and LILO configured correctly...I tried several times and looked at MBR sector directly - all OK as far as I could tell.
Long story short - as far as I can tell after trying a few things, I finally set the 'active' flag on the extended partition (sda1) and it now boots.But Linux does not care whether a partition is active and I have several boxes - including another with SATA drive that do not have any 'active' partitions. So I conclude this must be a BIOS thing looking for an active partition, but see nothing settable in the BIOS config (in fact very little useful in this machine's BIOS config).Anyway, it is now working but I would like to solicit any useful comments from others. Is it a Gateway thing? (This is my only Gateway box). Is it an SATA thing? Anyone else had to set a Linux partition active to boot
View 9 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
Apr 6, 2011
A few days ago my Laptop wouldn't hibernate in Windows 7, I managed to fix this problem by going into Windows' Disk Management tool and setting the C:/ Partition as the active partition, this fixed my hibernation issue, however I have just noticed that now when I boot my laptop my GRUB menu no longer appears, instead it just loads Windows straight away as if it was the only OS on my laptop.
I've confirmed it's something to do with my recent Disk Management change as I booted up GParted, removed the boot flag from Windows and when a rebooted my GRUB menu reappeared.
Not sure on how I can both have Windows as the active partition while being able to keep GRUB working also.
My Partition Setup is as follows:
/dev/sda1 C:/ Windows 7 (NTFS) (Boot Flag Set)
/dev/sda2 D:/ DATA (Documents and stuff) (NTFS)
Unallocated 1 MB
/dev/sda3 Extended 146.49 GB (LBA Flag Set)
/dev/sda5 Linux Swap 2.01 GB
/dev/sda6 ext4 20.00 GB
/dev/sda7 ext4 124.46 GB
Unallocated 10.00 MB
I'm running openSUSE 11.4
View 3 Replies
View Related
Jul 13, 2010
Is there any way to make a disk image of an active partition? I have to get a complete backup (partitions, MBR, all data files) of my server without bringing it down to do it. I want to have a backup that, in the event of a system failure of any sort, I can quickly restore onto a new, bare hard disk and have the system back up and running. The windows equivalent of this would be something like Drive Image XML, this is the functionality I am looking for.
View 4 Replies
View Related
May 21, 2010
I have just installed the 32bit and 64bit versions of CentOS 5.5 and was wondering how I can add these machines to Active Directory for authentication. I've done this in the past with CentOS 5.4 using the GUI and everything worked just fine but now need to do everything from the command line.
View 1 Replies
View Related
Mar 28, 2010
I need a script that would continuously monitor one port and when it is active (not listening or waiting) execute a series of commands to standard output.I am familiar with netstat but am not good with scripting so
View 15 Replies
View Related
Oct 12, 2010
When I typed netstat -lna, the output:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:580 0.0.0.0:* LISTEN
...
...
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node
unix 2 [ ACC ] STREAM LISTENING 23581
...
...
Can anyone explain to me:
1. What is "Active Internet connections" & "Active UNIX domain sockets"?
2. What is unix Proto?
3. Difference between LISTEN and LISTENING state.
View 8 Replies
View Related
Mar 11, 2011
how to setup an Active/Active Load Balanced and High Available (If one of the nodes is down the system still runs) MySQL cluster. I have found quite a few howto's but I have some things unclear in my mind. I found a few solutions like this one: [URL] or this: [URK] Those are using two or four MySQL nodes, two Load Balancers to avoid a single point of failure but only one MySQL cluster management server. What happens if the MySQL cluster management fails?
I have also found a "MySQL Master-Master Circular Replication" technique but from what I read, with this option there is a chance that conflicts will arise if node A and node B both insert an auto-incrementing key on the same table.
View 1 Replies
View Related
Aug 19, 2011
Is there anyway to copy a drive that has a working Ubuntu OS such as on sda1 and put it on sda 7 or 8 of the same hard drive
What I want to copy is my first of 4 primary partitions sda1 and put it on a logical drive on my extended drive and be able to boot from them
My hard drive has 2 15 gig primary partitions set up for ubuntu and kubuntu on sda1 and sda2. sda3 is a 2gig swap, while the last partition sda4 is extended it has several 15 gig logical partitions for more ubuntus
View 4 Replies
View Related
Dec 10, 2010
Now I have learned creating partition in linux (ubuntu), well that's an achievement for a newbie.
The next thing that I want to know is, how can I copy the contents of a partition to another partition. Like if I want to backup its content to a new partition that Im going to create.
View 5 Replies
View Related
May 7, 2011
I am running ubuntu 10.10 on a drive with 3 partitions. 1 windows and 2 ubuntu partitions.
The ubuntu that I am running right now is on a partition that is too small. I need to either expand it to include the other ubuntu partition or reinstall 10.10 and copy my existing partition to it. Can this be down?
I have this version working the way I like it and have tried 11.04 and am holding of for now. Still the fact remains that my working copy is on a partition that is really too small I only have 2 gig free space on a drive that is a 500gig.
View 3 Replies
View Related
Jul 17, 2010
I spend the vast majority of my time in Ubuntu, but every so often I still encounter the odd errand that requires a free copy of Windows that came with my hardware.
So I have Windows 7 on my laptop which I like slightly better than XP and a whole lot better than Vista. I am not in there a lot besides that its required for a web design class and sometimes for a few stubborn games, but I would very much like to copy my Windows 7 partition to a 100gb partition on my TB HDD.
How do I do it? Keep in mind, I am barely two tiers above noob on a scale of 1 to 20. I am working on it though.
I also want this partition to be bootable. I dont care if I lose the rest of the data on the disk. I want to redo everything anyway. I definitely want it to boot though, not just for the data to exist.
View 9 Replies
View Related
Sep 24, 2010
I would like to copy an entire unmounted partition from one machine to another on my LAN. This is basically to perform a very direct backup of the partition.
View 1 Replies
View Related
Jan 9, 2011
I want to copy my ubuntu install to a bigger hard drive, and am not quite sure what to do. According to my google searches, I need to run ubuntu from a live cd, then in a partitioning program copy the ubuntu partition to the new one, then resize it. Is that all? Do I need a linuxswap partition on the new hard drive? I have been using kde partition manager to arrange my new partitions. On one hard drive I have the partition I want to install ubuntu on(what type should this be? ext4?) and a partition to share between ubuntu and windows, and then will use my old ubuntu partition for installing windows xp.
View 2 Replies
View Related
Oct 29, 2010
I have hdd with sda1(windows xp)(4gb) and sda2(my files)(10gb)I have conected usb memory which apperas as sdb1 (4gb)What I want is to copy sda1 to sdb1.I did it this way:Code:
dd if=/dev/sda1 of=/dev/sdb1When I check what there are in sdb1 and disk was full but no files and folders were stored there.
View 11 Replies
View Related
Jul 21, 2010
I'm trying to write a small script that will run as root, but launch a command with sudo as another user. I want that user to be whichever user is active user. That is, the user that is using GDM right now, or the one that is logged into the current console. (by current console, I don't mean the user running the script, but rather the user logged into the console currently displayed on the screen.)How can this be done?
Code:
ACTIVE_USER=`somecommand`
test `id -u pulse` -ge 1000 && sudo -u $ACTIVE_USER $*
What can I use for "somecommand"?
View 5 Replies
View Related
Jan 26, 2011
I just installed a new HD on my system with multiple HD's already. I have a drive with two versions of Ubuntu & would like to copy the complete drive to the new drive along with all the contents & partitions of the Ubuntu drive.
1 - Could I partition the new drive & just copy the contents using rsync?
2 -If I copy all the contents over could I just reinstall Grub & edit fstab & be good to go?
View 3 Replies
View Related
Dec 14, 2010
I'm looking for a way to copy files with a certain file extension over to another folder. For exampleSource Folder: /home/user/downloadsFile Type: *.epubDestination Folder: /home/user/epubs/The downloads folder has several folders that may go as deep as 2 or 3 levels.I tried this but it didn't seem to work (and I'm not really sure what to do to modify it to get it to work).Quote:find . -maxdepth 1 -type f -exec grep -q "pattern" '{}' ';' -exec cp '{}' /path/to/destination
View 4 Replies
View Related
Jun 6, 2011
I started to copy a directory using Nautilus. I dragged and dropped a directory from my hosted server to my home drive. It got hung up, and wouldn't download. I clicked the red "stop operation" button, but I have a lingering icon in my upper panel saying that I still have file operations going on, even though it has supposedly stopped. How do I determine from the command line what this process is named and how do I kill it to remove the icon
View 4 Replies
View Related
Jun 19, 2010
Yesterday I decided to install Fedora 13, having heard good reports about it. I started with linux back in the RH 5.2 days on which I cut my teeth. Since then I've used many distros and versions, openSUSE, RedHat, Ubuntu, Gentoo, Slack ... After the installation completed (without error), I rebooted at which time I got the following message at the grub screen: Quote: Error No Active Partition
[Code]....
View 4 Replies
View Related
Jan 7, 2010
I am trying to mirror partitions from one harddisk to another.dd if=/dev/sda7 of=/dev/sdb7 bs=4k conv=noerror 2Strangely, it refuses to copy anything inside the www directory. I've tried many times with the same result - /var/www is empty in the target harddisk.I do this all the time without any problem on Etch. On this Lenny box, mirroring other partitions seems fine except for /var.
View 4 Replies
View Related
Dec 10, 2010
Now I have learned creating partition in linux (ubuntu), well that's an achievement for a newbie. The next thing that I want to know is, how can I copy the contents of a partition to another partition. Like if I want to backup its content to a new partition that Im going to create.
View 11 Replies
View Related
Apr 10, 2015
Consider two directories, a and b. b has stuff in it, includling sub-directories and files that begin with ".". For the sake of making this post clear, there is a file named "1" in b. My goal is to copy all of b into a, such that a "diff --brief --recursive a b" indicates that a and b's contents are identical. a is empty.
Code: Select allcp -pr b a
The above copies b (and all contents) to a/, so that b/1 is copied to a/b/1. Our goal is to have a/1, not a/b/1.
Code: Select allcp -pr b a/
The above does the same as "cp -pr b a".
Code: Select allcp -pr b/ a
The above does the same as "cp -pr b a". Unexpected.
Code: Select allcp -pr b/ a/
The above does the same as "cp -pr b a".
Let's try something different, in a different way:
Code: Select allcp -pr b/* a
The above copies inside of b to inside of a, such that a file a/1 gets copied as b/1.
Good: this is the goal.
Problem: it skips hidden (starts with a dot) files.How can one copy the entire contents of a given directory ("b" in my examples) into a second directory ("a" in my examples) in such a way that everything in b is copied to a, but that another b directory is not made inside a, and such that all hidden (starts with a dot) files are copied in?
View 2 Replies
View Related