Ubuntu :: Cloning To Advanced Format Drive With 4096 Bytes From 512 Byte Drive
Jun 27, 2011
I am getting a new 4kb sector HDD for my laptop, WD scorpio black 750gb, I would like to image existing partitions on 512bytes sector HDD and move them to the new 4kb sector HDD, what's the best way to do this.
present config is as follows:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
[Code].....
I am planning to keep the same three partitions as the primary partitions on the new drive and add few more logical partitions. I would have liked to move to GPT but since I need Win 7, I am stuck with MBR partiotion table.
Now, I understand how to partition an Advanced format disk, what I want to know is how to move the existing partitions on the 80 Gb disk to the new disk?
I use Clonezilla to copy partitions but it is not compatible unless both the target and the source disks are already using 4096 sector size.
I can use Acronis True Image WD Edition to clone Win 7 but how do I clone Ubuntu?
Also my Laptop's chipset is limited to SATA 1.5, will it cause any issues, I know the bandwidth is not an issue.
View 7 Replies
ADVERTISEMENT
Apr 30, 2010
I'm going to replace damaged HDDs in my server with new drives, which have sector size of 4096 bytes instead of 512. Does CentOS natively support such drives? If yes, since which version? If no, what actions should I take to correctly prepare such a drive to work. How to check that such a drive is correctly recognized by OS?
View 3 Replies
View Related
Nov 24, 2010
So I finally bought an advanced format drive, the 2 TB Samsung f4. I will be using it on my slackware box, running slackware 12.2 with kernel 2.6.27-7. I intend to format the drive by hand with fdisk and start the first partition on sector 2048, or perhaps boot a livecd and format it with a newer version of fdisk or parted that will natively partition this drive correctly. My real question is, do I have to do anything special to add this drive to an existing LVM volume group? I'm thinking no, since LVM basically just breaks all your data into 4 MB chunks and spreads them across the pool of partitions you've defined, but I've found many conflicting opinions from searching google. To simplify things, I'm not using RAID of any sort, neither hardware nor mdraid.
View 2 Replies
View Related
Dec 29, 2010
I have 2 WD20EARS hard drives on the way (2 TB green WD disks with 4k sectors) and I'll be installing Centos 5.5 in RAID1 on them (2 partitions, one 16 GB / at the beginning and the rest in its own partition). I read the following thread: [URL]
and it seems that I might be having problems with the 4k sectors (Advanced Drive Format in WD lingo). I'm confused as to what exactly to do. I was thinking of downloading Fedora 14 Live CD and partitioning there and then switching to Centos 5.5 to install. Will that work? Seems I want the md 0.9 metadata because it doesn't have the space limit for me (2 TB) and it's stored at the end of the partition so it avoids alignment issues. Will I be able to make that happen with Fedora 14?
View 2 Replies
View Related
Oct 25, 2010
I have a Raid5 software partitioned using LVM (at centos 5.2 installation). Actually the raid is composed by 3 320Gb HDD. I would like to replace them with 3 2T hdd, but I'm worried about the alignment issues of the upgrade. I know it is easy to align the raid partition URL But what will happen to the LVM partition? Reformat and install everything is not an option
View 15 Replies
View Related
Aug 13, 2011
I want to find out how many 4096 byte blocks there are on my disk. I used df -B 4096 and it gave me a number but I'm not sure it's correct as I can use dd to read past what should be the final block.
So I do df -B 4096 and it reports this result:
Code:
Filesystem 4K-blocks Used Available Use% Mounted on
/dev/sda1 15618840 13190294 1635137 89% /
But when I use dd to go past that block, it doesn't report an error or anything. The command I'm using is
Code:
dd if=/dev/sda1 bs=4096 count=1 skip=15618841
How can I know that I'm really reading the very last block on the drive?
View 2 Replies
View Related
Feb 9, 2011
create a large buffer in my program so that I can send, and then receive on another pc, more than 4096 bytes (this seems to be the default for the serial port). I thought this might work:
[code]...
View 9 Replies
View Related
Jan 13, 2010
im trying to send pages of 4096 bytes from kernel layer of server to kernel layer of client over a network. previously i tried the foll. code , for data less than a 100 bytes it worked fine , but for something larger than that the computer hangs......(even the dmesg's wont say why) i also wanted to know how we could use the 'sendpage' function to solve this problem.
Code:
CLIENT'S KERNEL MODULE
struct iovec iov;
char buf[1024];
[code].....
View 1 Replies
View Related
Nov 1, 2010
I am trying to clone my internal drive on my laptop using the dd command after starting up my computer using the 10.10 installer CD. Nothing happens when I follow the instructions from this site: [URL] When I follow these instructions, it doesn't work. I know that I am not being specific here but all I can say is that nothing happens. What am I doing wrong. My internal drive is 250GB and the partition I created on my DOS formatted external drive is 250GB as well.
View 9 Replies
View Related
Mar 1, 2010
Is there a utility app that will allow 'ghosting' your current Linux harddrive to another. For example, my current drive is 40Gb, I'd like to ghost/clone it to a 320Gb harddrive. Using an app like this saves re-installing the O/S, software, configuration and allows making a disaster-recovery drive.
View 3 Replies
View Related
Apr 22, 2010
I'm trying to make an image of my whole hard drive (320 GB) to save on an external hard drive. I'm using Ubuntu Jaunty Live CD to do it, with this command
Code:
sudo dd if=/dev/sda | gzip -c > /media/ExpansionDrive/imagedd.img
At the beginning everything is going fine, but after few hours the transfer rate is incredibly low. After 1/2 hour, 20 Gb have been copied.
After 1 hour, 27 GB
After 2 hours, 40 GB
After 4 hours, 54 GB
After 8 hours, 71 GB
Is it normal? I've also tried to use ddrescue, but I have the same problem. Is there any other tool to clone hard drive with a constant transfer rate?
View 1 Replies
View Related
Oct 3, 2009
I have a rock solid server running CentOS 5.3 (probably 5.4 soon enough). Basic LAMP box with a few tweaks thrown in. Everything is running perfectly, with one problem - the drive is too small (I project it filling up to dangerous levels in 6-8 months). So, what I'm looking to do is basically clone the drive, store the image, pull the current drive and replace with a bigger drive (same number of heads and cylinders though), and install the image.
What I did do once, a million years ago, is put the new drive as a slave on the same IDE cable, and use dd (working from a live CD of the distro) to copy from the master (smaller) to slave (larger). Then, yank the smaller, change jumper on bigger drive from slave to master, and away I go. Next step as I recall was using gparted to get access to all the space on the new, bigger drive.
Is this more less still a reasonable way to go? I recall the issue was making sure the old smaller and new larger drive had the same number of heads/cylinders (although I don't remember exactly why).
View 7 Replies
View Related
Oct 2, 2010
I would like to replace my old 100gb boot drive in my server with a new SSD...for obvious reasons. So what is the best way to clone the existing installation (10.04 desktop) from the old boot drive onto the new SSD? I have read some guides online that suggest using the live CD and various software packages but most of them say it will only work if you are cloning to a disk of the same size or larger, nobody seems to address taking an installation from a larger volume down to a smaller one - in my case a 100gb IDE onto a 30gb SATA SSD.
As this is a datadump, the only drives I really care about are the various 1.0/1.5tb drives that actually store the data, the OS drive contains nothing more than the standard OS, samba/webmin and a few monitoring tools. So I guess it's not the end of the world for me to start fresh and install 10.10 next week, but I would like to know for the sake of this upgrade and future ones if anyone can be of assistance. basic specs if needed: Athlon64 X2 3800, 2gb DDR500, Asus A8N SLI Premium (Nforce 4/Silicon Image 3114R RAID controller). OS is on a 100gb IDE (WD1000BB-00C) and I would like to toss it on a Kingston 30gb SSD (SNV125-S2/30).
View 5 Replies
View Related
Dec 31, 2010
Code:
user01@ubuntu:~$ sudo gunzip -c /media/xbox/xbox_image.gz | dd of=/dev/sdc
dd: opening `/dev/sdc': Permission denied
[sudo] password for user01:
[Code]....
I'm getting Permission denied even though I'm putting sudo in front of the command but, instead of asking me for a pass word it just says Permission denied "then" it askes for a pass. I enter the pass and it just takes me to the
user01@ubuntu:~$
prompt. I enter the command a second time and it says Permission denied again.
View 4 Replies
View Related
Nov 26, 2010
I have a very very insane problem with my ssd sata harddisk. I did fill the harddisk, and Thunderbird complained about "no space left on device". But even if I delete some files from the harddisk, df will still say 0 blocks free. But it will decrease the number of used blocks. So it looks like it is freeing the blocks and deleting the files, but it don't put the blocks back to the free pool.
But here is where things get insane: If I log in with my normal user, I get a "No free space" when I try to write to the harddisk. But If i log in as root I can write to the file system, despite the fact that df is saying 0 blocks free. I did try to run fsck -f but it just run its test and then say that anything is fine. But it run for less then 10 seconds, is this expected on a 40GB ssd partition?.
[Code]...
View 3 Replies
View Related
Nov 27, 2010
Basically I got Windows 7 installed on my laptop and it's been doing nothing but slowing down more and more even though it isn't used for much more than basic internet use and I realized the hard drive was the cause, I did a bunch of stuff to try to fix it that I won't get into here, and in basic I'm to the point I'm just going to reinstall Windows 7, but this time with the help of Ubuntu's partitioning utilities.
I've already had the first ~5GB of the drive overwritten with zero's (thanks to DBAN) and now I'm booted on the Ubuntu LiveCD and trying to learn the command line stuff for formatting a drive. What I want to achieve is use the smallest amount of space possible for the MBR and that's also a point I don't quite understand.
After some research on Google I read that the MBR is on one sector only the very first one, yet the first partition on a hard drive starts anywhere from 63 to 4096. Why are they so far apart? And can I force the partition to be moved closer? I know I know their is pretty much no purpose to this but it bugs me knowing that their might be 31MB (64 512byte sectors minus 1 (MBR) and 64 (beginning of partition)) just going to waste when I could put the NTFS MFT there. Then the second and last part I want to understand is I want to make the NTFS partition have a 512byte allocation unit size and have it lined with the 512sectors on the hard drive so it can have the max performance. Does anyone know how to do this stuff or could find better info than I have on the internet?
View 6 Replies
View Related
Jul 28, 2011
When I first switched from windoze to Fedora I trimed a bit of space off the end of the HDD, formatted it to ext3 and installed Fedora 14 there. I have now completely rebuilt the machine and put a 2TB drive in. My intention was to upgrade to Fedora 15, but after a few weeks trying to get the new gnome to anything resembling useful, I gave up and decided to go back to the reliable 14.
I tried the old drive, and everything worked great, so I though no problem, clone that over to the new drive, and job done, no need to mess about for weeks getting all my settings back. I booted from the old drive with both connected and ran gparted, It sees both drives but won't let me copy the old partition. It complains about 'LMV is not yet supported' I tried booting from a gparted ISO with the same result.
How can I get this sorted? I've got work needing done, I don't have time to start from scratch (*AGAIN*),
View 10 Replies
View Related
Oct 3, 2010
My dad passed away 2 years ago and he had a toshibia laptop, and today I've decided to start using it. I would like to reformat it to Arch Linux from Windows XP.
He has a 80gb hdd with everything on one partition (thats how windows does it). I would like to create another partition (~20gb, and I know how to do this) and have clonezilla clone the main partition and save it to the 20gb partition. This is because you can't clone and save to the same drive unless its partitioned. (I'm saying partition lot).
Anyway my fathers computer is very important to me, and having it remain intact as he left it is very very important to me. I know the easiest and most sarcastic response is to tell me not to use it, but I want to use this computer.
Does anyone have experience with clonezilla? Will it back up the ENTIRE HDD like it says it will, without missing any important documents and files scattered throughout the disc? And when I do finish the cloning, format, and at a later date restore using the image I copied, will it be like I never touched it?
View 1 Replies
View Related
Jan 20, 2010
I have a Shuttle XPC with 3 drives. /dev/sda is a 320GB SATA drive with a basic installation. Two partitions, a swap and the rest is on /. The other two drives are 1.5TB SATA configured as a software mirror as /dev/md0.
I want to use dd to clone the 320GB boot/OS drive to a 750GB SATA I have at home. Last night I put the 750 in a USB enclosure and at about 6:00 PM fired off: dd if=/dev/sda of=/dev/sdd
It's now 7:16 AM and the dd is *STILL* going. Is this unusually long to clone the drive? Is there any way to check the progress or a way to launch dd with a progress indicator?
View 3 Replies
View Related
Nov 2, 2010
I want to move the entire contents of my backup HD to another HD. I could manually copy everything, but I was hoping to clone the entire backup hard drive. I tried to do it with Gparted, but as far as I can tell, I can't clone between drives, only between partitions on the same drive (I've done that before). So how can I do this in Linux? I think one of my drives came with a cloning utility on a CD, but I'm not sure I still have the CD.
View 2 Replies
View Related
May 30, 2010
I'm not sure what to do, but I just rescued photos and documents using ubuntu live cd, gddrescue and photorec. The data carving went fine and I was able to move all of my recovered jpg's into a recovery/jpg folder, as well as my word doc's into a recover/doc folder. I also have recovery/video and recovery/audio. Now here's my problem...
I used the right-click "safely remove drive" from the ubuntu interface and then unplugged my external drive. I then tried to view the recovered photos, etc on my windows 7 desktop, but when I plug in the external drive I get an error and a prompt to "format the drive" so that windows can use it.
I plugged the external drive back into my failed laptop and with the ubuntu live cd can see the drive, but none of the folders display. I can cd "change directories" to all of the folders using a terminal, but still can't see them outside of the terminal. That is, with the ubuntu interface. I'm just trying to finish up recoverying these photos, which I thought I had done.
View 4 Replies
View Related
May 8, 2009
This is sort of mixed between hardware and software but it seemed more appropriate to me here. I'm building a server for very fast disk access. We have 8x32GB SSD SATA drives and 4x300GB SSD SATA MFT drives. The 300GB SSD drives are the slow kind of flash that writes slowly, and strangely is limited to 10K writes per sector. Long term data integrity isn't a big deal because it is backed up continuously but fast access to data is desired. Additionally the filesystem that contains this data deletes about 2.5 - 4 gigs of data per day, and adds about 2.5-4 gigs of data per day.
My plan is to create a hybrid drive of sorts, where the smaller 32G drives, lined up in RAID0, create a fast "buffer" disk, and on some increment what is in the buffer is written in bulk to the slower writing 300GB SSDs. I had two thoughts on how to achieve this, but ultimately I think that LVM snapshots are the best way to achieve this, put the read only "snapshot" on the big SSD drive and the other "differencing" part of the snapshot on the faster raid0. I'd much prefer a simpler solution where there is one block device to mount and all this is handled in the background.
View 1 Replies
View Related
Nov 12, 2010
i am running ubuntu 10.10 and windows7 on a asus eee 1015. currently i have two partitions: 80GB for windows (NTFS) and 160Gb for Ubuntu (ext4).
I want to:
- shrink the windows partition (easy, no worries);
- Shrink the ubuntu partition
- join the space thus created in a third partition that i can use for storage, media etc accessible by both windows and ubuntu
The problem:
- i could not manage to get gparted live to run off USB stick (i get the unable to find medium.... error)
- even if i would get gparted to work and i succeed in shrinking the ubuntu partition as well, the two spaces reclaimed will be divided by the ubuntu partition, which means they cannot be joined in a third partition.
so here is what i want to do:
- shrink windows and create a new partition;
- format this new partition as ext4;
- somehow "clone" the data on my current ubuntu root into the new partition;
- format the current root as NTFS and use it as the storage partition
i am aware this may mean i would have to re-set grub etc but would the cloning of the partition be possible? that i would need to clone data from a 160G partition into a 40G partition.
BY THE WAY - forgot to mention that i have tried to load clonezilla off an USB drive and i get the same error: "unable to find medium..."
View 3 Replies
View Related
May 28, 2010
I've decided that I want to use another, smaller, hard drive for my OS and I'd like to clone /dev/sda onto /dev/sdc. I want it to be an exact clone except my partition for my "/home" will be smaller (since there's not room for it). I was gonna try with dd but I'm not sure if I should build the partition table and use dd-command on one partition at the time? Will this then include GRUB boot loader and will it be working properly?
Do I have to clone the disk completely for it to boot properly? I'm not sure how or where GRUB places itself on disks as you install it. Can I perhaps copy the partitions one by one and then install GRUB from CD afterwards? Should I leave some unallocated space somewhere in between the partitions as I build and clone them?
View 4 Replies
View Related
Aug 6, 2010
I have used GParted several times but I only know how to clone a single partition. I am looking for a way to clone and entire drive that has several partitions, along withthe MRB, unpartitioned space and everything else in one step. I have a 500 GB drive that is going out and I want to clone it to a 1 TB drive so I don't have to reinstall 3 different OSs and fix the GRUB. One of the other OSs is on anther drive so I'm not sure that it would work even if I can clone everything exactly. I'm not sure if the drive that is failing is the one with the MBR on it or not. how to do this in GParted or know another good program I can run from a live CD to do this?
View 2 Replies
View Related
Jan 13, 2010
Here's what i'm trying to do: i have a 300GB IDE hard drive that has a OpenSuse build. I am trying to replicate this HD so that i can have another box similar to the original one...my second drive is 500GB SATA.
So far, I just ran a 'dd' command to copy the 300GB to 500GB. Now, after having read on internet, i realized i need to change fstab & /boot/grub/menu.lst. specifically, we need to change for ex:/dev/disk/by-id/ata-Maxtor_7L300S0_L60LCJ0G-part1 to /dev/disk/by-id/sda1 i did use a Ubuntu LiveCD to access the fstab and changed the line as mentioned above. Now, how do i change the menu.lst?? right now, when i try booting up from this HD, i have issues. specifically, i get this error message: could not find /dev/VolGroup00/LogVol00
View 6 Replies
View Related
Sep 15, 2010
I need some assistance in trying to format a USB hard drive to vfat format but can't seem to do so. I am currently using RHEL 5.3. I have tried the following commands and they all come back as "command not found"
mke2fs vfat /dev/sc1
fdisk vfat /dev/sdc1
mkfs.vfat /dev/sdc1
What am I doing incorrectly?? Can someone please point me in the right direction??
View 6 Replies
View Related
Feb 7, 2011
I'm sniffing network packets in ubuntu, I need to write these packets as raw bytes to memory but libpcap give packets in its special format. how can i save and recover packets in byte format?
View 2 Replies
View Related
Aug 18, 2010
Visibly the 2 tb are not supported by Ubuntu. cfdisk does not like my harddisk not fdisk. I am bit stuck. I havent X11
View 9 Replies
View Related
Apr 2, 2010
How do I format a USB pen drive? It would be great if there was a GUI solution and not a CLI one.
View 5 Replies
View Related