Debian :: Dd Can't Copy /var Partition Correctly?

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


ADVERTISEMENT

Debian :: Copy Partition And / Or Convert Inode Size

Mar 1, 2016

I think I basically need to know whether it's possible to copy a partition whilst converting inode size, or if I need to create a new partition and copy the contents.

To give you the back story..

I have a system with 1 SSD and a raid array of 4 physical disks. One of the raid disks died, so I swapped it out, only to find the system wouldn't boot (had no bootloader?). I fired up a live session, and tried grub-install, but get an error like "The file /boot/grub/stage1 not read correctly". Looking into it, it looks like the problem discussed here which is basically something to do with the partition having an inode size of 256 instead of 128.

Taking a step back for a moment.. I can't really remember installing this system, but is it possible I partitioned the SSD to ext4, with a default inode size of 256, then when the installer tried to install grub, it basically refused to install it on the SSD, so offered to install it on one of the raid disks, which happens to be the disk that died? So until now, unbeknown to me, the bootloader has been on one of my raid disks, while the root (bootable?) partition is on the SSD. That's my best guess as to what's gone wrong anyway..

Anyhow, currently this system has the SSD with the small bootable partition with an inode size of 256. As luck would have it, the new raid disk is sitting there not doing anything yet, so I have the space needed to copy that partition or it's contents onto the new raid disk.

So the question is, can I convert the inode size whilst copying the partition? Or do I need to just clone the partition, then create a new one with the correct inode size, then copy the contents of the old partition to the new one? In the latter case, is there any hidden secret sauce that won't be copied with `cp -R` or so? I mean, if I just create a partition with the correct inode size, and flag it bootable, then `cp -R` from the old partition to this new one, will it be functionally the same? or is there something special I need to do because this is the root OS partition?

View 2 Replies View Related

General :: Partitioning - Copy GNU Installation From A Smaller Partition To A Bigger Partition?

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

Ubuntu :: Can Copy Laptop Partition To External HD Partition That Is Bigger?

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

Applications :: Copy Of A Partition Using Dd Gets Bigger Than The Original Partition?

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

OpenSUSE Install :: 11.2 - How To Partition Correctly

Dec 31, 2009

I want to intall openSuse 11.2 and I don't know how to do the partition correctly. My PC run with windows vista.
This is how I made the partition:
dev/sda1: windows
dev/sda2: linux /
dev/sda3: linux swap
After the installation openSuse don't boot!

View 9 Replies View Related

Debian :: Copy A Bootable CD To A Bootable Partition?

May 11, 2010

How can i copy my G4L bootable CD into a partition, so thar i can boot from it, and not use the CD anymore?The idea is based in the fact that i am so lazy ... that opening/closing the CD is getting on my nerves

View 5 Replies View Related

Ubuntu :: Partition Doesn't Mount Correctly At Startup?

Aug 1, 2011

my "places menu" references folders on a second partion, where I store all my personal files (ntfs, as I use it also from Windows). After boot those folders wouldn't show in Thunar. Some other programs, as Fontmatrix, wouldn't find databases stored there, what messes them up. Thunderbird has problems to recognize profiles etc.What is strange, the partition seems to be mounted at startup as I can see and select it from Thunar. Also, it appears on Desktop. After selecting the partition, closing and reopening Thunar everything works fine, places would show correctly and Fontmatrix database is ok

View 2 Replies View Related

Debian :: Copy Anything It Says Enough Space Memory To Copy?

Jul 5, 2010

I am using windows xp and debian linux.In windows xp I am having around 25 gb offree memory but in linux if i copy anything it says enough space memory to copy

View 4 Replies View Related

Debian :: Libgdu-WARNING : Partition /org/freedesktop/UDisks/devices/sdb7 Is A Logical Partition But No Extended Partition Exists

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

Ubuntu :: Way To Copy A Partition

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

Software :: How To Copy Partition With Dd

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

Ubuntu :: Copy Files From A Partition To Another?

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

Ubuntu :: Copy Existing Partition To 10.10?

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

General :: Copy Files From A Partition To Another?

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

Ubuntu Installation :: Copy OS Partition From One Disk To Another?

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

Ubuntu :: Copy Entire Partition To Another Machine?

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

Ubuntu :: Copy To Partition On Another Hard Drive?

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

General :: Copy A Partition To A Directory, Then Mount It?

Sep 4, 2009

i've been getting into problems trying to move around my partitions, by copying them to a directory on a partitions with alot of extra space, then mounting then with --bind. i think it's todo with the permissions, like i can run gdm for the gui but i can't login.startx doesn't work though, gives me some errors but i don't know alot about x windows. but like the partitions are mounted, but just the system doesn't work properly with them this way?this is my method

Code:
rsync -aHPvx /usr/ /store/usr_proxy
then in fstab
Code:
/store/usr_proxy /usr ext3 bind,defaults 0 0

View 2 Replies View Related

General :: Can Copy Entire Partition / Put It On New Drive

Jul 11, 2011

i am putting a larger drive in my laptop, i have linux mint 10 KDE setup with all the software i need and running just the way i like it. is it possible to actually copy the entire partition to a external drive then place the partition back into my laptop with the new drive in it, and still have it all setup the way i had it?

basically so i dont have to reinstall everything and set it up again.if this is possible could you please explain how i can do it in the simpliest terms at all please.

View 6 Replies View Related

Software :: Copy Partition Everyday To A Image?

Sep 1, 2009

I have 2 partitions on my hard disk1. sda1 is ext3 partitoins with MINT linux2. sda2 ntfs partitions with my files and movies I want to copy, make backup of my sda1 partitions and store it to file (image) in some folder in sda2.In windows I have made that many times with Acronis and ghost, but I dont know how to make it in MINT.Is there some manual that explain that.

View 13 Replies View Related

Ubuntu :: Partition The New Drive & Just Copy The Contents Using Rsync?

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

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 View Related

General :: Can't Copy The Disk Image Over To Ext3 Partition

Jan 6, 2011

I recently installed Linux to run a few Linux based tools on a disk images I have, and I can't seem to copy the disk image over to my ext3 partition.

The particular distibution I'm using is BackTrack 4 r2, which is Ubuntu based. I can't seem to find specifically which version of Ubuntu is being used. The disk image is 108GB. It is currently located on a NTFS partition on a SATA hard drive connected directly to the computer. The ext3 partition is located on a second SATA hard drive connected to the same computer. It has 200GB total. I do not remember exactly how much free space it had but "df -h" showed a lot more than 108GB. The computer has 4GB of RAM and I gave it 8GB of swap space.

At this point it has been running for more than 12 hours. This is far longer than I would expect it to take had I been copying the file under Windows. How ever I do not have much experience with Linux, so if it's supose to take this long please let me know. I am planning on letting it run until I wake up tomorrow.

"cp -v" hasn't been very verbose at all. The only sign I have that indicates the computer is still trying to do something is the HDD light on my chasis that has stayed lit this whole time.

View 4 Replies View Related

General :: Cannot Copy File Over 16,843,020 Kb On Ext2 Or Ext3 Partition

Aug 26, 2010

i m not able to copy a file over 16 gigs on an EXT2 or EXT3 partition. Is there a way to do this. I even tried to split my iso file too. I splitted my iso file in 4 files then copy them on the ext2 or ext3 partition. But as soon as I was trying to join the files together it never went over 16 gigs. Actually it stops at 16,843,020 kb exactly. is there a limit for those partitions or is there an another way to see my 20gigs iso file in one piece?

View 1 Replies View Related

Debian :: Aptitude Not Playing Correctly ?

Apr 3, 2011

Just today saw that for some reason aptitude seems broken. Dunno the reason. I don't know if its do with aptitude or some other update which introduced the issue. The issue is simple.

Before I could do something like $sudo aptitude purge linux-image [TAB]

Putting down the tab it would autocomplete or/and give other options if there were multiple options (it would do some kinda grep)

Now after the update of aptitude few days ago and other things I get something like this : sudo aptitude purge linux-image [TAB]grep-status: /var/lib/dpkg/status:14651: expected a colon

View 5 Replies View Related

Debian :: Correctly Installing ATI Drivers

Oct 17, 2015

I have two monitors, a primary crt which I usually run at 100-160hz depending on the resolution, and a secondary lcd which I run at 144hz. I can't set either to anything above 60hz or any respectable resolution.

I'm running debian 8 with gnome. Apparently I can't use propietary drivers with gnome because it isn't supported and I have to use the open source ones. So I used this website as a guide to install drivers: [URL] ....

I tried:

1. Code: Select all# Debian 8 "Jessie"
deb http://http.debian.net/debian/ jessie main contrib non-free

Which gave me nothing. First line didn't do anything at all, second one didn't work because 'deb' isn't a valid command.

2. Code: Select all# apt-get update
Worked as per usual.

3. Code: Select all# apt-get install firmware-linux-nonfree libgl1-mesa-dri xserver-xorg-video-ati
Only one installed, and that was xserver.The other ones failed (werent found or something?). Anyway as per instructions i rebooted and ofcourse nothing happened. I am pretty sure since step 1 was probably meant to add to the repository, step 3 wasnt able to complete.

But my concerns are...
1. How am I meant to do step 1 if it isn't a real command
2. Should I (or can I) change to something other than gnome, because I don't think its worth missing out on propietary drivers just to use gnome.

My card is a hd7970.

View 7 Replies View Related

Debian :: Chromium Not Installing Correctly?

Dec 22, 2010

I'm having an issue where Chromium doesn't seem to be installing the main binary, and possibly more.I installed the Chromium package through aptitude, and everything seem to go through without errors.When I attempt to run chromium either through 'chromium-browser' or 'chromium', bash says the command is unrecognized.I did a search, and browsed through the 'usr/bin' folder. I found nothing that could possibly be the binary.

View 5 Replies View Related

Debian :: Can't Get Snapshot To Work Correctly?

Dec 22, 2010

I started to use Debian Live about three months ago. I can't get snapshot to work correctly. Each time the system boots or shutdown, the system over-writes the persistent file. I'm currently have to use the live-snapshot command to make a snapshot. Make a copy of the file for a backup. Then I have to boot my system and make a copy of the backup and rename the file the correctly. Turn off my laptop (not shutdown). then restart it for the persistent to work. Must be a easier way.I have three partitions: debian-live (/dev/sdb1), live-sn(/dev/sdb2), and home-rw (/dev/sdb3) on a 8 gig usb flash drive.

View 1 Replies View Related

General :: Copy DVD ISO To Empty Hard Disk / Partition And Boot As If It Is A DVD?

Sep 10, 2011

I have a broken DVD drive and no others available right now to burn a DVD iso to so I'd like to use a empty hard disk instead.

I've tried Unetbootin but that only copies a few megabytes of files - the rest of the image data in the ISO is ignored.

I have verified the ISO is valid and working with VirtualBox. It's MD5 hash is also as expected. But I need to boot at the real bios not an emulated one.

I've also tried things like:

sudo cat /disk/image.iso > /dev/sdb1

and that got "Permission denied" -

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved