Ubuntu :: Changing Filesystem - Using Partimage To Make Copy Of Data
Feb 22, 2010
I have my / partition on an SSD that I formatted in ext3 but I now realise that, in order to use TRIM, I need to be ext4. Can I use Partimage to make and image of the partition, format it (using GParted) and then restore the image? Basically, do Partimage files survive a filesystem change?
View 1 Replies
ADVERTISEMENT
Feb 4, 2011
In my system around 73gb(pc-desktop) i have,1 primary partition(windows)-25gb, 1-extended partition(remaining gb) 3 logical partitions were there in (under) extended partition in one of the logical partition is d:drive. in my hard disk d: drive is -/dev/sda5
previosly i was fat -file system , (d:drive-/dev/sda5), i remember i changed the d: drive(d:drive-/dev/sda5) file system to ext4file system ,with following command using terminal
After doing(changing the file system)this one ,i couldnt see the d:drive data
By doing that
1q) Did i reformatted the partition? i think the new filesystem(ext4) has no knowledge of the data that was on it when it had a FAT filesystem.
2q) How to do undo operation,i tried to change the filesystem type to fat/ntfs in terminal using command --sudo mkfs -t FAT /dev/sda5.
Result:its showing text message-'mkfs.FAT: No such file or directory'(not in single quote)
I had very imp data in d:drive
View 1 Replies
View Related
Jan 17, 2011
I've been using Excel from OpenOffice with moderate success for the last year. Now I've just tried to open a new spreadsheet and I'm suddenly getting a highly condensed view. The cells are about 1mm X 4mm. If I expand them by selecting and dragging, then try to copy data from another spreadsheet onto the new one, the data shrinks to the small scale -- unreadable.
View 4 Replies
View Related
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
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
and:
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
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
Jun 7, 2011
I boot up a Linux appliance entirely in RAM, ie. the image has a Linux kernel and an attached ext2 root filesystem.
Now that it's working, I would like to copy the root filesystem from RAM to a NAND flash memory.
Can I just mount the NAND, run "cp -a /* /mnt/nand", reboot with the kernel command line "root=/dev/mtdblock2 rw", and expect Linux to be happy... or is it more involved than this?
View 9 Replies
View Related
May 5, 2011
Using redhat linux el5, when I had booted I had pbm repairing filesystem. So I run following commands
1. fsck -l
2. fsck
But I cannot solve the pbm. My pbm is I had important folder "backup" in root folder just I want to copy it in pendrive how to do it.
View 2 Replies
View Related
Jun 12, 2011
I have opensuse 11.3 installed, and my motherboard has the intel i845 chipset,
one day windows had enough of the intel graphics chip and would not let me have anything but 640x480 pixels, well you cant do much with that so I put an ati card in and disabled the intenal graphics. windows was happy enough but suse could not boot - more specifically could not mount the root filesystem, saying it had errors (did a very quick fsck), could not find the journal, and I had a bad superblock. the "failsafe kernel" was no better. If I take the ati card out suse boots fine. however I do swap frequently between windows and linux and changing graphics cards between boots is somewhat irritating.
View 3 Replies
View Related
Sep 1, 2010
120 GB HDD. All ext4. Wanted to partition it into 60 gig ntfs, and 60 gig ext4 for dual install. Booted up the LiveCD. Clicked on the partition to modify. Selected /windows as mount point. Change took place. Now, my disk shows up as 57 GB FAT (almost all of which is free) and 60 GB of unallocated space. Any way to recover it? I'm sue the data is in the 60 GB of unallocated space. While I have a back up of some of the data, I'm going to be losing quite a bit if I can't recover this...
View 1 Replies
View Related
Dec 1, 2010
Recently I was forced to hard reset my computer a couple of times (mostly out of frustration) and due to my idiocy i was confronted with the standard Kernel Panic message at bootup. I tried running an fsck from live cd which corrected a bunch of errors but to no avail (as far as getting rid of the Kernel Panic msg). I then tried to mount the filesystem by accessing it from live cd (and later even installed ubuntu on a small leftover partition to get rid of the annoying live cd lag) but it says that I don't have access to my home or root folder. Mounting from command line gave the same issue.
So now to the question. Is there a general procedure to access data in my corrupt filesystem if it is encrypted?
View 7 Replies
View Related
Jan 14, 2010
I am going to be involved with a massive filesystem copy from a local to a remote server in the next couple of weeks. There are ten filesystems in involved in this process. All, except one, are one hundred gigabytes in size, with the remaining one at twenty gigabytes.The cp command with the -pr options will be used to copy the directories to their new location. A speed test, involving ten directories, was done to determine the average amount of time it would take to complete the process. The ten directories used in this test ranged in size from 2.3 gigabytes to 4.3 gigabytes. The results indicated the average amount time to complete the copy was around one minute and thirty seconds.
The question I have is the following: Is it better to interactively go to each filesystem and run the cp -pr command there, or should I write a script that will automatically go to each filesystem and run the copy?
View 1 Replies
View Related
Mar 17, 2010
Whenever i copy ELF or BIN files from the filesystem of linux i must get permission denied. For this case i have gone through the linux security module but didn't get much help regarding the permission denied only in case of copy of ELF and BIN files from filesystem. how can i proceed in this. WORK DONE:
1. Downloaded linux-2.6.25.14
WORK NEEDS TO BE DONE:
1. compile the kernel with some modifications in linux security module to get the desired results but this time i am unaware of that.
View 5 Replies
View Related
Jul 29, 2011
I am trying to put Ubuntu on my USB.
I use the tool here (as recomended by Ubuntu) to put it on my USB. It seems to work well up until it says "Data error in 'casper/filesystem.squashfs'. File is broken".
I tried to install it anyways (I know how to work the BIOS and everything) and the installation just stops with an error message.
View 2 Replies
View Related
Dec 20, 2010
I'm running Ubuntu 10.04 and I'm upgrading to a new hard drive i have an 80GB and I'm going to a 250GB and I need to how can I transfer everything of the 80GB to the 250GB
View 6 Replies
View Related
Jun 30, 2010
I'm about to have a web server at home for the first time. I've always missed having full control and not having to contact my hosting company when I need to do some specific changes - and some changes they won't do for you at all.I've chosen the non-GUI Ubuntu Server with LAMP, and nothing more is installed really except for a couple of command line tools from the repository. The LAMP software has been locked down as good as I can by following some guides on the net and using common sense. Like Apache 2 don't have access to the file system except for the www folder, and setting the headers to Prod. MySQL has skip-networking and I've commented out the listen string to localhost. PHP has a truckload of functions that I've disabled in the php.ini, also by following some guides on the net, among some other security enhancing php.ini editing.
The only thing the server will serve is a well known PHP forum and some html docs, and that's all. Nothing advanced or complicated stuff, and I'm definitely not programming PHP myself or letting anyone do it for me.But I do want to sleep well at night knowing that my server is always on and sitting on the edge of my home network! And can I do that? I've heard that you don't need to be worried about getting your Linux server box hacked, but you should be worried about anyone getting root access to it. But is it really that simple? Ubuntu is shipped without root account and you must have the sudo password, right? What's the odds for anyone to get full access to my system?An issue: I've heard that Apache never must run as root. When I do a ps -ef, I see that there are several www-data processes running apache, but there's one root process running apache too. Is this normal and is it safe?An issue: I've heard that PHP can fail pretty easily. But isn't PHP running under apache 2 and limited by the www-data filesystem access?An issue: MySQL is running as a MySQL user, and I guess that's an unprivileged user right?
View 9 Replies
View Related
May 6, 2011
I am running a dual boot system with Win7 on /dev/sda and Ubuntu 10.10 on /dev/sdb
I also have a 250 GB disk I use for storing backup data, /dev/sdc
The two logical partitions on /dev/sdc (/dev/sdc2 and /dev/sdc5) each take up 2.86 GB and I would like to free up that space if possible.
Since the filesystem on /dev/sdc doesn't have an OS on it, does it still require that those two logical partitions exist?
View 8 Replies
View Related
Aug 5, 2011
On my drive I had 2 partitions for an Ubuntu 9.04 (swap, /) and one partition for Windows. I figured out that I should upgrade my Ubuntu, so I deleted the "/" partition and in its place created 2 new partitions (/, /home) .
After installing the latest Ubuntu 11.04, I realised that although I had backuped everything I needed in a 2nd disk and I could access those folders and their data from my Ubuntu 9.04, both my Windows and the 11.04 can locate neither the folders nor the data now. I have no idea why this happened (perhaps some issue with the mounting?) I have tried the trial version of Stellar Phoenix linux data recovery tool, but it cannot locate the old partitions.
View 2 Replies
View Related
Apr 25, 2010
Recently, I started protecting all user-accessible filesystems on my Sidux desktop machine with LUKS. Before that, I would regularly erase traces of deleted data, and I wonder if this is still necessary.
It would be most valuable to me to be pointed towards a good introductory article on the underlying mechanics of LUKS and cryptsetup, as there are a few more minor questions to be answered. Unfortunately, I lack the necessary mathematic and cryptographic background to understand scientific papers.
View 2 Replies
View Related
Feb 3, 2011
I have directory a and directory b. They are big. b is almost identical to a. "almost" means that 4-5 files differ, and I don't know which they are. I want to copy b over a, but only the files that differ. i'm in bash.(no, I can't simply delete a and replace it with b, because 1) a is version-controlled 2) a full copy (or a mv) would take too much. I want to copy only the files that differ).
View 4 Replies
View Related
Feb 17, 2011
I want to copy data from my ubuntu 10.04 to Virtual box , which is Windows XP. How can I do it ?
View 3 Replies
View Related
Jan 20, 2010
At boot time, before entering Runlevel 3 the HDD will go mad when mounting tmpfs on /dev/shm...
Code:
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
INIT:Entering runlevel 3
It will go on and on at the tmpfs on /dev/shm type tmpfs (rw) until i press ctrl-C...then I will stop whatever it is doing, let the hdd rest a bit, and resume normal boot..
View 13 Replies
View Related
Feb 28, 2010
Been trying for a few days now to get a workable image from partimage. I've been using Physocats tutorial as my basis, however there is one item that seem odd: after the fdisk -l, a mkdir /backup is created; then the mount of hda5 where the backup will reside. To me, this seems backwards.
In any respect, what I'm trying to accomplish is to backup my main drive (sda1) to another (sdc1). After coming from Ghost and Windows, I've forgotten much of my limited command line knowledge. This mounting,unmount, fstab and mtab has me ready to go back to pen and paper!!
View 2 Replies
View Related
Feb 7, 2011
I am looking for a way to see if it is possible to copy the system state of a system to another system.Is it possible to simply move the folder structure over to another machine, and have it work? Do I need any special partitions for /var, /home, etc?My machine is dying slowly, and I really want the quickest way to migrate the system over to the new system.
View 7 Replies
View Related
Nov 18, 2010
I have a 16gb flash drive with system rescue cd installed, I boot to it and run partimage. I'm trying to image an NTFS HDD. I would like to save it to the empty space on the flash drive but I'm unable to locate it in the file manager.
It's not under /dev/sdb1 or /livemnt/boot. The entire flash drive has been partitioned to be used by sysrescueCD.
View 1 Replies
View Related
Jun 6, 2010
I currently have Zarafa and I am going to install MythWeb for MythTV.To solve the permission problem for installing amportal (FreePBX), I have to change Apache's user and group to Asterisk instead of this, which I've commented out:User ${APACHE_RUN_USER}Group ${APACHE_RUN_GROUP}Once FreePBX is installed completely, I checked to make sure FreePBX is working and it worked. I used the latest version of Asterisk from the SVN trunk, so I used ./install_amp --my-svn-is-correct.However, I want to use Zarafa AND FreePBX, I just don't like having to change the Apache User and Group to asterisk.Here is a couple of examples of instructions when installing FreePBX:Is there a workaround? I really want to change it back to what it was before while FreePBX can still access their own directories.
I did not know if this question has been asked, but I thought I'd ask here. I've added "zarafa" and "mythweb" to the tags list my thread.Update: I changed my apache configuration file back to www-data for User and Group and I do have /var/lib/asterisk/agi-bin and /var/www/asterisk (where FreePBX PHP pages are installed in /var/www/asterisk) owned by asterisk:asterisk. But I get this:
Code:
Retrieve conf failed to copy file(s) from a module's agi-bin dir: copy(/var/lib/asterisk/agi-bin/directory): failed to open stream: Permission denied
[co0de]...
View 1 Replies
View Related
Dec 5, 2010
i currently have both xubuntu 10.10 32-bit and windows 7 64-bit installed on my laptop which i use mostly for college work and basic programming (i'm still learning to program).i have a 150gb partition with win7 installed, a 20gb partition with xubuntu installed and a 15gb partition with my linux home folder on, the rest of the space is unused because i thought i may need it for something else in the future.the home folder partition is formatted to etc4, i now have a need to access this data from win7 for college work, i know that windows doesn't support mounting of etc file systems so i have hit a problem.
i thought about changing the type of partition from a ect4 to fat32 but will this delete my data? or ,are there any third party software packages for windows that will allow me to mount ect4?
View 1 Replies
View Related
Jun 16, 2011
I want to copy about 40GB - to a partiton. There are two hard drives in my box one won't boot but I can aaccess it and mount partitions and I aim to move data from it to a new bootable hard drive. Doing a simple cp copy command may not be the best way to copy and paste such a large chunk? Also I want to backup the data I plan to copy/paste using a USB hard drive to backup. But I could also paste data from the backup to the new drive instead of from old internal hd to new hd. - that's another option.
View 1 Replies
View Related
Jul 17, 2011
I have two HDDs in computer, one with ntfs and windows on it and second with btrfs. I want to get data on that btrfs disk. I boot with bootable USB stick with ubuntu on it but I found out that I cannot copy anzthing. I dont have permissions. How to change that. I am logged in as nobody here in USB stick, and files are probably locked as mz previous username when I create them.
View 1 Replies
View Related
Jan 28, 2011
On a previous thread, I explained how I installed Fedora 14 from the live image disk onto a HP 2140 netbook only to find I was missing the development files. Stoat helped me use the more complete install DVD from Fedora 14 to install the development tools (rather than doing a complete reinstall -- which I would do if it made this work).
Unfortunately, I'm still unable to make PartImage 0.6.9 install. When I try, configure says that the bzip2 library (libbz2) is not found or too old. Apparently, this is because it can't get it to respond to BX2_bzopen from within the library. I think because it can't find the library. Inside the config.log file it seems to indicate that from an -lbz2 not found. Now I'm guessing that there is some trick to this, maybe some way of setting the library path to include the location of this and possibly other libraries under Fedora 14. I've checked the library's location and it seems to be in /lib as far as I can tell and bz2 does work, so it's somewhere. Of course it's possible since PartImage is pre-version 1 but doesn't have much if any activity on its forum that something has changed position in Fedora and the install isn't looking for it in the right place.
I've seen one blurb in the PartImage files that indicates that maybe using env to set environment variables on entrance to configure might work, but I'm not sure what variable to set or how to make it find the bz2 library. Note that I've been a UNIX user and administrator in the past, but that was in the System 7 days so that's rusty and I have no prior experience with LINUX of any kind.
View 4 Replies
View Related