Author |
Message |
Lat
|
|
Post subject: Upgrade Harddisk
Posted: 03.03.2013, 05:19
|
|
Joined: 2010-09-19
Posts: 205
Status: Offline
|
|
Is there a safe way to move the content of a harddisk (MBR and partitions) to a bigger one?
If so,What harddrive will you recommend. This is my current one:Western Digital RE3 Enterprise 250GB SATA/300 7200RPM 16MB Hard Drive
Code:
hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: WDC WD2502ABYS-18B7A0
Serial Number: WD-WCAT-------
Firmware Revision: 02.03B04
Transport: Serial, SATA 1.0a, SATA II Extensions, SATA Rev 2.5
Standards:
Supported: 8 7 6 5
Likely used: 8
Configuration:
Logical max current
cylinders 16383 16383
heads 16 16
sectors/track 63 63
--
CHS current addressable sectors: 16514064
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 488281250
Logical/Physical Sector size: 512 bytes
device size with M = 1024*1024: 238418 MBytes
device size with M = 1000*1000: 250000 MBytes (250 GB)
cache/buffer size = 16384 KBytes
Nominal Media Rotation Rate: 7200
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, with device specific minimum
R/W multiple sector transfer: Max = 16 Current = 8
Recommended acoustic management value: 128, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
Power-Up In Standby feature set
* SET_FEATURES required to spinup after power up
SET_MAX security extension
Automatic Acoustic Management feature set
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* 64-bit World wide name
* WRITE_UNCORRECTABLE_EXT command
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Native Command Queueing (NCQ)
* Phy event counters
DMA Setup Auto-Activate optimization
* Software settings preservation
* SMART Command Transport (SCT) feature set
* SCT Read/Write Long (AC1), obsolete
* SCT Write Same (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
unknown 206[12] (vendor specific)
unknown 206[13] (vendor specific)
This harddrive host the operating system of a 24/7 home server.
Thank you |
|
|
|
|
|
kenyee
|
|
Post subject: RE: Upgrade Harddisk
Posted: 03.03.2013, 23:28
|
|
Joined: 2010-09-29
Posts: 100
Status: Offline
|
|
you could set up mdadm, RAID1 the drives, add new drive, sync, remove old drive, then expand sizes. I've done this before, but I also use LVM which makes it a bit easier... |
|
|
|
|
|
piper
|
|
Post subject: RE: Upgrade Harddisk
Posted: 04.03.2013, 15:37
|
|
Moderator
Joined: 2010-09-11
Posts: 481
Location: cheektowaga, ny
Status: Offline
|
|
IMHO, I would start from scratch, it can save headaches later, but you can also wait for more replies |
_________________ debian sid | apt-get into it
|
|
|
|
|
bfree
|
|
Post subject: RE: Upgrade Harddisk
Posted: 04.03.2013, 18:51
|
|
Team Member
Joined: 2010-08-26
Posts: 267
Status: Offline
|
|
Boot a live cd/usb, with both disks connected. Partition the new disk and create the filesystems.
For each partition (e.g. you may have a seperate /home or /usr or whatever) mount the old and new targets (e.g. the old and new / partitions) and "cp -a" or "rsync -a" the files from the old disk to the new one.
Fix the uuid's in the new /etc/fstab so they have the new values (you can "ls -l /dev/disk/by-uuid" to see them). umount the old systems disks and follow the manual guide to chroot and re-install grub to/from the new disk.
Hopefully I've remembered everything |
|
|
|
|
|
Lat
|
|
Post subject: RE: Upgrade Harddisk
Posted: 05.03.2013, 02:00
|
|
Joined: 2010-09-19
Posts: 205
Status: Offline
|
|
Thank you guys, but will any of these methods copy MBR?
See, I have legacy GRUB in MBR, and GRUB2 in the aptosid root partition.
Otherwise, bfree method will be the solution and dig out a sidux live cd for legacy GRUB
Also, I feel nowdays harddisks are big disappointment and WD doesn't carry the enterprise line anymore(or they've hidden from me). What brand/model are you satisfied with?
In order of importance: Reliability > Speed > Noise |
|
|
|
|
|
piper
|
|
Post subject: RE: Upgrade Harddisk
Posted: 05.03.2013, 17:25
|
|
Moderator
Joined: 2010-09-11
Posts: 481
Location: cheektowaga, ny
Status: Offline
|
|
Is there a special reason you are using legacy grub in MBR ?
To backup the MBR you can use
sfdisk or dd |
_________________ debian sid | apt-get into it
|
|
|
|
|
|