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


ADVERTISEMENT

Red Hat / Fedora :: Inode Table Size And File System Size

Dec 14, 2010

How can we find the maximum size of the inode table and what decides it, and how the maximum size of volume of file system is decided ?

View 4 Replies View Related

Debian :: Error (device Hde1): Ext3_get_inode_loc: Unable To Read Inode Block - Inode=2375715

Mar 25, 2010

I decided to take an old Gateway that I bought off a guy cheaply and turn it into a file and web server.I purchased copies of Debian 5.0.4 i386 disks (31 in all) on the advice of a friend, the disks weren't expensive, but now that Ive installed all the disks, I'm having a variety of errors

[443.110940 end request: I/O error, dev hde, sector 76021855
[443.111074] EXT3-fs error (device hde1): ext3_get_inode_loc: unable to read inode block - inode=2375715, block=9502724
INIT: cannot execute "/sbin/getty"

[Code]..

View 2 Replies View Related

Debian :: Best Size For Each Partition?

Mar 19, 2010

I need install a debian server that will function as a domain controller, file server, webserver (PHP + MySQL) for an internal application. The number of users are 5 but I'm predicting an increase of more than five. I mirror 2 disks 160GB and want to create separate logical partitions for / usr, / opt, / var, / tmp and logically the primary /, / boot and SWAP. What is the best size for each partition? Time: ASUS P5VD2-VM Proc 1.6GHz 4GB RAM 2x SATA 160 GB.

View 1 Replies View Related

Debian :: Change The Partition Size ?

Apr 21, 2010

I want to make a new partion,my home is /dev/hda9,so I use the Partion Editor(Gparted) ,frist umount the device(umount -l /dev/hda9),then change the size,everyone thing works well until I clicked the Apply,the error occurred:

View 1 Replies View Related

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

Hardware :: Partition Size Detected By Testdisk Bigger Than Disk Size

Mar 17, 2011

a client brought in an 160GB external HDD and wanted to get the files off it, there appeared to be no partitions on the disk but i thought it may have been formatted to use the whole disk. I tried to mount it as the various FS types the client thought it may have been to no avail.

I ran testdisk on it which told me that it previously had a mac partition table and a 210GB partition on it (which is larger than the disk) could anyone enlighten me as to whether or not this is even possible, and if so how could i retrieve the data?

View 2 Replies View Related

Ubuntu :: Resize2fs: "inode Is From A Bad Block In The Inode Table"?

Jul 9, 2010

I was using gparted from a live usb to resize an ext4 partition and it failed while running resize2fs. The error it gave was

Code:
resize2fs: The inode is from a bad block in the inode table while trying to resize /dev/sda5
please run 'e2fsck -fy /dev/sda5' to fix the filesystem after the aborted resize operation.

[code]...

View 1 Replies View Related

Software :: Convert Primary Partition To Logical (ie Move It Inside The Extended Partition)?

Nov 29, 2010

Around 2008 i seem to remember PartEd on the command-line was able to rescue deleted partitions and gave a choice of whether to recover the partition as a Primary or Logical Partition. I have tried testdisk but didn't really grok what i was doing. I successfully moved a "Windows Recovery" partition to the end of my hard-drive, immediately after the drive's Extended Partition.

View 3 Replies View Related

Debian :: Recover A Deleted File From Its Inode?

Aug 8, 2010

I was wondering if it was possible to display inodes of deleted files using a command. If yes, is it possible to recover the deleted files from their inodes?

View 1 Replies View Related

General :: Convert Document From Size A4 To Letter

May 12, 2010

Want to format document from size A4 to letter.I need to format some documents from A4 to print on letter size paper. The documents are Word documents and pdf.

View 4 Replies View Related

General :: Convert A Logical Partition To A Primary Partition?

Dec 30, 2010

Fedora 14 xfce

I have the following partition setup. I would like to know how can I convert the logical partition sda6 to a primary partition.

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

[Code].....

I would like to convert sda6 to a primary partition, the reason for this it to install windows 7 starter.

View 3 Replies View Related

Ubuntu Servers :: Size Of A Mounted Partition Is Smaller Than The Partition Itself?

Mar 23, 2010

I have Ubuntu server 8.04. I have 4 hard drives of 149Go each. Size of a mounted partition is smaller thant the partition itself :

- first drive is the system

- I mounted the 2nd drive (ext3) on a folder, but the Size is 941.89 MB instead of 149Go

- same for drive 3 monted on another folder, but the Size is 941.89 MB instead of 149Go

View 2 Replies View Related

Server :: Increasing Size Of Extended Partition To Allow Creation Of New Partition

May 18, 2010

I've got a server that needs more space. To achieve this we added space (by extending the VMware disk attached to it).Normally this isn't an issue, because we just add an new partition and LVM it from there, but this host predates our deployment of LVM everywhere.

Our current theory is that the unallocated sectors can not be assigned because they aren't part of the extended partition, and thus ... we go in a circle.So what i believe the way forward is to extend sda4 so that i can then create an sda10 inside of it. Anyone have any ideas on how to do this? I was thinking gparted may do the trick ... but being a server i'm in runlevel3, with no X...

View 5 Replies View Related

SUSE / Novell :: Change Partition Size On Root Partition?

Aug 2, 2009

I am relatively new to Linux and Opensuse. I created the / root partition and now it is growing and maxing out. I have partitioner available to me but how do I change the partition size when the root partition is mounted. Do I login as root and then umount or modify fstab and restart and change from command line or do I format and reinstall everything? I have room to expand but not sure how to manage this?

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

General :: Different File Size After Copy

Feb 27, 2010

Firstly, I did perform a search on this problem in these forums, but didn't quite get what I was looking for. So I hope I don't yelled at for making a duplicate post. So I used rsync to backup my webroot to another nix machine. du -hs gave me 1.3 G on the source machine and 1.1 G on the backup machine. I tried to compare the individual files and noticed a trend. The files on backup machine were always smaller than the files on source machine. The source uses SATA drive, destination uses IDE. So this time I rsynced locally to another folder on the source machine. Same size anomaly. So i did a simple cp file ~/file and same size anomaly. So it's not a rsync issue.

I took a file and ran md5sum on both, the source file and destination file. To my surprise, even though the file size was different, they had the same md5sum. Now, let it be known that the source machine is a production server and the dir i rsynced was being used, serving pages to the web. I googled about this and came up with stuff like open descriptors and holes. I don't understand this stuff and was wondering if this was really the case. What are those if it is the case? And my backup copy is 100% identical right? There are thousands of files and I ran md5sum only on couple. Can I take comfort that when time comes, I can restore using my backup without any problems?

View 3 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 :: Kde Partition Manager - How To Size Up A Partition

Sep 17, 2010

I just looked at the "posting permissions" and unfortunately I'm unable to insert the screen copy of the kde manager's representation of the goal I want to hit.I got a dual boot system with 4 hard disks and grub installed on /dev/sdd1. Windows xp sp2 (only used for professional audio tools, don't whip me ^^) is installed on /dev/sdc1. The disk sdc is partitioned with the following settings:

Code:

/dev/sdc1 * 1 498 4000153+ b W95 FAT32
/dev/sdc2 499 18922 147990780 f W95 Ext'd (LBA)
/dev/sdc5 499 1494 8000338+ b W95 FAT32
/dev/sdc6 1495 18922 139990378+ 7 HPFS/NTFS

When I partitioned the disk I was believing 4 Go were sufficient for windows xp but after years I realized that many applications were using the C: by default (no way to change it thru regedit or another workaround, hard-coding probably) installing stuffs and under windows this is impossible to use such blessed things like the unix's symbolic links !So right now I'm a little tight with the remaining space to work with windows xp. (Of course the swap file has been moved to another partition since the first day I installed xp...)

I have is to use the 7Go of unused space on this disk to size up the /dev/sdc1 partition. When using kde partition manager I noticed that there is no way to use the unused disk space to size up /dev/sdc1 directly.Do you think if I create a partition with the 7 Go of unused space that there is a way to size up /dev/sdc1 without messing up the bootloader ? I don't think GRUB matters about the new partition, it should get the /dev/sdc7 entry. For the backup there is no problem this partition is completely backed up every two weeks (as an image) so the datas may not be lost as a real catastrophic... but if there is danger for the other partitions... that's will be more annoying... but solvable ^^

Once partitioned I believe that there will be a way to "merge" the /dev/sdc1 and /dev/sdc7 partitions and then I would enjoy a new xp partition with 7Gb of free space (it would change from my actual 300Mb !!).Technically it would be possible this is just a question of chaining the different blocks each others and refer to the new space added.The last block in /dev/sdc1 would point to the first block that starts /dev/sdc7 and "that's all"... and /dev/sdc7 would disappear as a partition.

View 7 Replies View Related

General :: Using DD To Transfer One Partition To Another Different Size Partition

Jul 24, 2011

i have got an old computer with some partition and one have linux slackware installed; it is all included there (root and a swap file); its size is almost 4 gb. Now i have a new laptop and i do not really want to reinstall linux on it; simply i want to transfer all things from old on new computer. The size of new hd is almost 12 Gb and i want to use entire with linux slackware. I will recompile new kernel on old computer for the new. Now, i think to use dd to make one image, this follow command may be good, i think:"dd if=/dev/hda3 of=./linux_slackaware.img bs=4096 conv=noerror"I use zipslack on msdos partition (hda2) to run this command; it will make a 4 gb file image partition;Now i ask you:it is possible to transfer and to adapt this image partition on a different size image partition?The new is 12 gb size.what are the right dd command parametres?

View 7 Replies View Related

Debian Multimedia :: How To Change Icons Size And Gaps Size

Oct 22, 2015

today I upgraded via official testing repository Gnome to version 3.18. After this, icons on desktop and nautilus are bigger, than before. Next thing, gaps between icons are smaller than before. I tried change theme to default (Adwaita), then run gtk-update-icon-cache, but without result.

Normal view - icons are big for this view. URL....

Small view - icons are still big for this view. URL...

How can I change icons size and gaps size? Or is it bug for this version?

View 2 Replies View Related

Ubuntu :: Unable To Use K9 Copy When Try To Convert A DVD To MPEG Files Using The Method Without Encoding

Jan 15, 2010

I have been having a problem with K9 Copy whenever I try to convert a DVD to MPEG files using the method without encoding, but for some reason lately it seems to be splitting each episode I am trying to rip into about 6 or 7 pieces instead of just one.

I never usually have a problem with this, but for some reason it seems to be doing this whenever I try to rip something. I am running on Obuntu 9.10 and have K9Copy version 2.3.0 installed. I have tried installing several other versions, but it does the same thing with each.

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

General :: Break Copy Process When Folder Size Reaches Its Maximum?

Mar 19, 2011

I have written a script.

#/bin/bash
a=`du -sh /root/samplefolder | cut -f1`
echo $a > testfile

[code]....

The aim of this script is, when the folder reaches 20M then attributes will be set to that particular folder so that no newfiles and folders cannot be created or copied to that samplefolder. whenever i copy a file morethan 20M to that folder its getting copied fully and then the attributes were applied. But i dont want this to happen, when the folder reaches its maximum current write operation to that folder should be stopped automatically with a error.

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

Ubuntu :: Convert Logical Partition To Primary?

Feb 8, 2010

This is my partition table....(in the image) Now I would like to install windows in the unpartitioned space after a long time..... I tried but could not do that. I understood that Windows needs only primary partitions!

So I tried to convert this logical one into primary, but of no use... Is it possible to convert that unpartitioned space which is under logical drive to a primary one!

View 7 Replies View Related

Ubuntu Installation :: Convert Wubi U10.04 To A Partition?

Aug 26, 2010

I have been using ubuntu 10.04 through wubi installation and would like to now convert it to a dedicated partition .
On searching I found LVPM does that. It converts the wubi install to a dedicated partition including all the softwares and settings.
Unfortunately it doesn't support ubuntu 10.04 currently .
Can anyone suggest any alternate way to achieve the same or a patch for LVPM .

View 1 Replies View Related

Software :: Add / Convert Memory From NTFS Partition?

Jun 6, 2010

I've removed all the data I need from my windows partition (accessible via Linux SUSE's ability to see my windows drive) and would like to free up some space by essentially deleting the windows drive and adding that memory to my linux drive so I've more room to play with.

View 4 Replies View Related

Fedora :: Convert Ext4 Primary Partition To Logical?

Oct 17, 2010

I'm trying to convert big ext4 partition to logical. I was able to do that with Arconis Disk Director Home 11 with swap and ext3 partition, but it doesn't recognize ext4.

Unfortunately I can't copy 2TB data to another HD Now I have:

Pri /boot ext3
Log / ext3
Log swap swap
Pri /media/X ext4 <- 2TB

View 2 Replies View Related







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