General :: Debian System Drive Upgrade: Copy Filesystems From MBR Partitions To GPT?

Jan 23, 2010

My home server runs Debian Lenny, and I'm about to upgrade the system drive to a larger drive.In the process, I want to take the opportunity to reorganize the partitions and resize them. For learning purposes, I'm planning to migrate from an MBR partition table to GPT.Because of those two changes, I can't just run "dd if=/old/drive of=/new/drive" (well, not without lots more work afterwards). I could use the debootstrap process to get a fresh installation on the new system drive, but I used that technique during the last system upgrade and it's probably overkill for this.Can I just copy the partitions from the old drive to the new?Will "dd if=/dev/hda1 of=/dev/hdb2" work, assuming /dev/hdb2 is larger than /dev/hda1? (If so, the filesystem can be resized to take advantage of the new larger partition, right?)Would parted (or gparted) be a better tool for copying the contents of the partitions?

View 3 Replies


General :: Filesystems - Write Files To HFS+ Drive From System?

Aug 22, 2011

Is it possible to write/edit files on HFS+ drive from Linux? Yes I need to disable journaling but how can I disable journaling from Linux? I dont have access to mac.

Or any tool available for doing this?

View 2 Replies View Related

Ubuntu :: New Hard Drive - Copy The Partitions On My 175 GB Disk To The New One?

May 17, 2010

I just bought a new 2 TB hard disk to replace my old 175 gig one. I currently am dual-booting Lucid Lynx and Windows 7, and rather than go through the process of reinstalling both, then reinstalling all my programs, settings, and everything, I was wondering if there's a way I can just copy the partitions on my 175 GB disk to the new one, grow them to fill up the rest of the free space on the new 2 TB disk, and then plug that HD into the primary master plug on my motherboard... will that work?

View 4 Replies View Related

General :: Copy Entire File System Hierarchy From One Drive To Another?

Jul 7, 2011

I would like to copy the entire file system hierarchy from one drive to another..i.e contents of each directory as well as regular files in Linux platform. Would be gratefull to know the best way to do that with possibly Linuxes in-built functions. The file system is a ext family.

View 3 Replies View Related

Ubuntu Installation :: General Error Mounting Filesystems After Interrupted Upgrade From 10.04 To 10.10

Oct 13, 2010

Originally posted in Launchpad yesterday [Question #129083]:

Quote: System froze in mid-upgrade from 10.04 to 10.10 and now fails to boot, giving a 'general error mounting filesystems' message when loading [in either normal or recovery mode.] However, the boot menu remains accessible with the F8 key and is functional.

While in the 10.10 Live CD, using the chroot method in the grub2 help proved unsuccessful and returned this pastebinned result. The system is 10.04 64-bit running an nvidia card and sporadically froze with increasing frequency. No resolution to the freezing could be found online, which seemed associated with any of nvidia, usb, flash or even firefox. Can someone suggest an alternative to restore to bootable condition and resume upgrade without having to reinstall and wipe the drive? I also followed the copy alternative to the chroot method in the grub2 help and still get the same core dump for chroot and device not found error for upgrade-grub as posted in pastebin. I'm still running off of the 64-bit 10.10 Live CD.

Skimming other "general error mounting filesystems" topics in this section, I realise I may have to bite the bullet and cut my losses, since those other users seemed to settle for a reinstall. Any final advice out there I can try out?

View 2 Replies View Related

General :: Filesystems - File System For Removable Storage?

Apr 7, 2011

I have a 500GB external drive I want to use on a couple of Linux systems, and looking for a filesystem for it. External drives are frequently formatted in FAT32, but I don't need to interoperate with Windows and would rather avoid the ugly limited kludge that is FAT.

Since I only need to use it on Linux, I would use ext4 or XFS, but they store ownership information. Ideally, I'd use a proper Unix file system that doesn't track ownership (files are owned by whoever mounts the device, like they are when mounting a FAT32 partition), but I do not know of any file system that does that.What would be a good file system for this disk?

View 2 Replies View Related

General :: Root File System Partitioning - Filesystems ?

Feb 12, 2010

I've been using *Unix systems for many years now, and I've always been led to believe that its best to partition certain dirs into separate FileSystems, off the main root FS.

For instance, /tmp /var /usr etc

Leaving as little as possible on the main / system.

Its so that you don't fill up the root system be accident, by some user putting in too bigger files in /tmp, for example.

I would presume that filling the / system would not be too good for Linux, as it would not be able to write logs and possibly other things that it needs to.

I believe that if root gets full, then there is something like a 5% amount saved for just 'root' to write to, so that it can do its stuff.

However, eventually, / will become full, and writes will fail.

On top of this, certain scripting tools, such as awk, use the /tmp/ system to store temp files in, and awk wont be able to write to /tmp/ as its full, so awk will fail.

However, I'm being advised that there is no need to put /tmp /var etc onto separate FSs, as there is no problem nowerdays with / filling up. So, /tmp /var /usr are all on the root FS.

I'm talking about large systems, with TBs of data (which is on a separate FS), and with a user populations of around 800-1000 users, and 24/7 system access.

View 2 Replies View Related

Ubuntu Servers :: Make SSD Root And Mount HD Partitions / Filesystems

Jun 28, 2011

I'm setting up an Ubuntu server to replace my aged Pentium IV Slackware box. It's a Dell Inspiron 560 with modest core-2 duo processor, 8 gigs of ram, and a pair of good sized hard disks. I came upon a good deal on a couple of 40gig Intel SSDs. I'd like to use one in the server. I'd like to use the SSD for the relatively invariant stuff, because they write slow, and are life-limited in the # of writes. So:

The best way IMHO to achieve this would be to make the SSD the root, and mount hard drive partitions/filesystems to it to places such as:
/media (Here you read and write giant files. Hard disks do this just fine. One will work especially fine if one particular hard drive is dedicated to this.)

A quick "df" yields a list of filesystems. There are four that are not tied to any device!

(df also discloses that the root filesystem is presently standing at 502megs. Guess it'll fit in a 40-gig SSD). These deviceless filesystems worry me. Are they created magically on boot? What's required to make the system magically create them on boot? If I copy the filesystem over to the SSD and redo the grub config, will it Just Work? Web searches reveal subtleties WRT mount points.

View 2 Replies View Related

General :: Filesystems - Where To Find A Description Of File System Mount Options

Aug 28, 2010

Is there some file in Linux that enumerates and describes mount options for file systems like /etc/services describes ports?

View 2 Replies View Related

General :: Commands To Find Type / MountPoint / File System Id For The Filesystems?

Jan 12, 2010

I need commands which five me the following details abt all the file systems mounted the linux box

mount pt
file system id

View 4 Replies View Related

General :: Copy / Clone Usb Stick That Have Several Partitions?

May 6, 2010

Is there a good way from the shell to copy/clone a usb stick that have several partitions?

View 5 Replies View Related

Fedora :: Copy Image Of System To Larger Drive?

Mar 3, 2009

I am running Fedora 10 and would like to move from my 40gb hard disk to a larger (320gb drive). I would like to take an exact image of the smaller drive and put this on the bigger drive.

View 3 Replies View Related

Fedora :: Copy System To Another Hard Drive - Without Starting From Scratch

Sep 21, 2010

Wondering if any know of a program that I can use to make an exact image of my fedora 13 operating system and transfer it to my new hard drive. I want to upgrade the hard drive and reinstall the exact system from the original drive to my new one, without starting from scratch. Just wondering if there's a program for Fedora 13 like Norton Ghost.

View 3 Replies View Related

Ubuntu :: Copy A Windows Operating System Dvd To A Usb Flash Drive?

May 2, 2011

I want to copy a windows operating system dvd to a usb flash drive. (I want the flash drive to be bootable under windows).

View 2 Replies View Related

Ubuntu :: How To Share A System (filesystems)

Mar 25, 2010

i need to install windows to my computer, but i don't want to loose my linux either.So what i wonder is, since my filesystem is ext4, which filesystem can be used for both operation systems.Do i need to have fat32 or ntfs or can i still use under windows ext4? I have a large collection of movies on my one partition and if i have to convert it, then it will be kinda pain.

View 1 Replies View Related

Fedora :: Back Up Filesystems Without System Dying?

Jun 7, 2010

I have a 2TB USB drive which I use as a backup device - I dump two filesystems onto it, totalling around 1TB. However, doing the dump trashes my F11 system, making it basically unusable, not only during the dump but also afterwards. I have 8GB of RAM, all of which is needed and normally in use, but when dumping, the system starts hogging huge amounts of it as buffer space - up to 1GB of RAM is reported to be allocated. And rather than using free memory for buffer space, it seems to aggressively swap processes out to get it. The system tends to melt down as a result, and just switching virtual desktops can take 5 minutes.

But after the dumps finish, the problems continue - the system is currently trying to keep around 700-800MB free, and continually swapping out processes to do so, even after the buffer space in use has gone back to about 100MB. This seems like strange behaviour for a fairly common type of activity. Presumably a lot of the buffer space is used to store what is being read from the filesystem (which will never be needed again), and some is used to cache the writes to the USB drive which is slower than the internal hard drives.

I have spent a lot of time trying changes to some of the kernel parameters, after reading articles about them. Of all the ones I've tried, setting vm.dirty_ratio to 1 instead of 5 helps a bit, and setting vm.dirty_background_ratio to 5 instead of 20 makes some improvement I think. Setting vm.swappiness to 0 doesn't seem to help at all.

So my question (at last!) is - how can I back up my filesystems without my system dying? In particular, can I limit the space used for buffers somehow, or turn off buffering for the dump process? And why does dumping result in the system artificially keeping huge amounts of space free afterwards, so I have to reboot to make the system usuable again?

View 5 Replies View Related

General :: Copy And Paste Between Local System And The Remote System When Using Rdesktop?

Dec 22, 2010

On Linux I do:

rdesktop remotepc

How do I copy and paste between my local system and the remote system?

View 1 Replies View Related

Debian :: Make System Ask Password For Encrypted Partitions Only Once Not For Each Of Them?

May 29, 2011

I have installed debian 6 on two of my laptops. During installation I chose to encrypt my partitions (swap, root and home). Now I find it annoying that during boot up I'm asked for password, for each of these partions seperately. I have given same password for all three of them. How can I make the system ask for the password only once. I know it can be done because on fedora it was like that before.

View 5 Replies View Related

Debian Configuration :: Copy Full System To Another Machine

Mar 31, 2016

I am setting up a mail server on debian. Once it's done, I'd like to have an indentical server on another machine, where debian will also be installed. The solution has to be hardware agnostic, so source machine is different than destination machine. I was reading on some wiki page that one can simply copy the root filesystem via rsync to the computer that he'd like to install the system on, then chroot to it and test if everything works. I'm guessing I'd have to change a couple things before, like :

- The network config
- The /etc/fstab file (disks and partitions may be different)

This article is about using rsync to transfer a copy of your "/" tree, excluding a few select folders. This approach is considered to be better than disk cloning with dd since it allows for a different size, partition table and filesystem to be used, and better than copying with cp -a as well, because it allows greater control over file permissions, attributes, Access Control Lists (ACLs) and extended attributes. [1]

View 13 Replies View Related

Debian :: Upgrade Failure - Message - Failed In Write On Buffer Copy For Backend Dpkg-deb

Jul 16, 2011

When I try to upgrade, I always get this message: "E: /var/cache/apt/archives/linux-image-2.6.32-5-amd64_2.6.32-35_i386.deb: failed in write on buffer copy for backend dpkg-deb during `./lib/modules/2.6.32-5-amd64/kernel/drivers/net/s2io.ko'"

View 14 Replies View Related

Ubuntu :: System Upgrade Woes - Wipe Drive?

Apr 29, 2011

I have a real love/hate relationship with Ubuntu. A few weeks back my Windows XP crashed and I had to take it to a tech to have my drive wiped and the operating system reinstalled. Just when I got XP back up and working perfectly someone told me to try Ubuntu. I made the Ubuntu 10.10 boot installation disc and installed it. Although I partitioned the drive during the install I was never able to reboot to Windows and thus lost all the files and programs I had just finished installing.

Okay. long story short: I got used to running Ubuntu and started to like it. Then this morning I was prompted to upgrade to Natty 11.04. After the install I got a message about being low on utilities and to boot in the Ubuntu Classic mode, which I was not able to do.

So now my machine is virtually non-functional. It won't run any programs but sometimes if I'm lucky I can get the computer to shut off without pulling the plug from the wall. I think I just need to wipe the drive and start over. Can someone tell me how to do this using DOS without having to make another long trip to my tech? Luckily I have a Windows XP laptop to use to access this forum.

View 1 Replies View Related

General :: Creating Image Of Drive Partitions

Jan 6, 2011

I have what I thought was a simple task of creating ISO images of my Windows 7 system partion and boot partiton (the C drive) on my physical hard drive that I could use to load Windows 7 onto a virtual machine. Anyway, I'm running Ubuntu off the CD drive and I can see my drive partions (checked using the fdisk -l command). I have tried many iterations of the mkisofs command, but no matter what I do I get the error message: unable to open disk image file 'dev/sdb/win7sys.iso'. I don't understand why it's trying to open an ISO file it is supposed to be creating. The -o FILE option sets the output file name, so the message makes no sense to me. Below is an example of a simple and longer version with more options that I have tried to create an image of my sytem partiton (sda1) and save it on an external drive (sdb) with the file name: win7sys.iso (the next step I think would be to create or merge both partition images as one iso file for the VM). But I can't get past this error.

Can anybody tell me what I'm doing wrong?

sudo mkisofs -o dev/sdb/win7sys.iso /dev/sda1

sudo sudo mkisofs -input-charset iso8859-1 -V win7sys -o dev/sdb/win7sys.iso /dev/sda1

* Note that the output after the -o parameter is the desired destination /dev/sdb (my external drive) for the image file and /dev/sda1 is my Windows 7 system or boot partition (sda2 is what Windows sees as the C drive).

View 14 Replies View Related

General :: Deleting Hidden Partitions On USB Drive

Feb 19, 2010

I recently bought a Buffalo 500GB ministation usb with "optional disk encryption". Turns out, I'm having one hell of a time trying to remove the "optional" from the drive. I figured I could just delete the program that is on the disk, and go on my way. That doesn't seem to be the case.

fdisk /dev/sdc1, then "p" showed that there were 4 partitions. So I deleted them one by one. "n" gave me a new partition. "t" I used 87 because I will be using it on windows. Then "w" to write everything.
mkfs -t ntfs /dev/sdc1 - all went well.
fsck -f -y /dev/sdc1 - all went well

Then I took the removed the drive and plugged into Windows only to find that the "optional" is still there. It actually creates a virtual drive with the "optional" software. So I tried it over again. I tried fdisk only to see that the partitions were back (as if they were never removed). I removed them again, and used primary partition as linux and wrote to disk. As a hunch, I checked permissions. Can't remember what it said, but I did change them.

chmod 777 /dev/sdc1

Then in a last hope of desperation, before coming to work today, I decided to dd the drive.
dd if=/dev/zero of=/dev/sdc1 bs=4k conv=notrunc
Is it possible that the "optional" stuff is actually hard coded onto a chip, or something inside the drive and I may never get rid of it?

View 14 Replies View Related

General :: Partitions Deleted From Machine And External Drive

Apr 15, 2010

I was installing Linux Debian on a machine and my usb external drive (320 GB) was attached with it (It was on NTFS that time). During installation I deleted all the partitions from machine and from my external drive. Can I recover the data from this drive?

View 3 Replies View Related

General :: Copy Most Of A Filesystem Onto A New Drive?

Apr 6, 2011

I am getting a SSD and I'd like it to become my new Linux boot drive. However, it is smaller than my current hard drive's root Linux partition, so I'd like to copy over the filesystem and exclude some directories (which I'll leave on another hard drive). So I can't just clone the partition with parted or similar because it is too big.

I want to make sure all the data, metadata, links and such are preserved. That seems to exclude "cp" because it doesn't preserve all the metadata and link information.

The two basic techniques I've been able to identify seem to be something like:

find / -xdev -print0 | cpio -pa0V /mnt/dst


rsync -avP -H -S --numeric-ids / /mnt/dst

Can anyone chime in with what they've used in the past, whether one of these or a different method, or if they see any flaws in these approaches.

View 2 Replies View Related

General :: Copy Whole Drive Sdb To Sda3?

Dec 2, 2010

I installed Debian squeeze to 40Gig pata hdd on my AMD 1090T desktop, with1Tb sata hdd.
Now that I'm quite comfortable with dual-booting, I'd like to transfer 40Gig Hd(sdb) to sda3. I viewed this thread, which is similar to my situation, but not quite the formula.


I intend on reading more on this 1 to see if what I'm looking for is include.


I've never done the dd command, so it's not like I'm going to do it today, but would like a little bit more documentation to get a further understanding of the dd command.

View 14 Replies View Related

General :: Ubuntu 9.10 Will Not Copy To Usb Drive Anything More Then 4GB

Mar 19, 2010

Trying to copy ISO images over to a external hard drive, when copying it reaches 4GB then stops.I have tried the same with a external usb thumb drive as well and the same thing happens so it is not the external drives running out of space. The error reads.Error Writing to file is to large.

View 9 Replies View Related

General :: Transfer A Copy Of Filesystem To Pen Drive?

Jul 21, 2010

I have a copy of Linux file system in /home/user/desktop/fs/how tp copy it to a usb drive preserving the links

View 2 Replies View Related

General :: Can't Just Copy A Bootable CD To USB Drive And Boot From It

Aug 15, 2011

I would like to understand the following:

I have a Debian installation CD that I can boot from. Now I copied that to an USB-stick using dd

dd if=/dev/sr0 of=/dev/sdc bs=1M

The CD-image should contain a boot-sector and everything else that is needed for booting, yet the USB stick does not boot.

What am I missing - why does the stick not boot?

PS: I am not interested in tips on how to create a bootable stick, I only want to understand why the above method does not work.

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

Copyrights 2005-15, All rights reserved