And no, the data is just copied into these disks as a test to see if the result will not damage it, as I have CRC's of all files I put in there.
and last... you should NOT say you're sorry, you're DA MAN
I will try this and see what'll happen.

Partition number (1-4): 1
First cylinder (1-72915, default 1):
[root@ftp ~]# parted /dev/sdb
GNU Parted 1.8.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra
390463488 blocks) or continue with the current setting?
Fix/Ignore? I
Model: HPT DISK_2_0 (scsi)
Disk /dev/sdb: 600GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 400GB 400GB ext3 primary
(parted)
[root@ftp ~]# parted /dev/sdb
GNU Parted 1.8.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Warning: Not all of the space available to /dev/sdb appears to be used, you can fix the GPT to use all of the space (an extra
390463488 blocks) or continue with the current setting?
Fix/Ignore? Fix
Model: HPT DISK_2_0 (scsi)
Disk /dev/sdb: 600GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 400GB 400GB ext3 primary
(parted) p
Model: HPT DISK_2_0 (scsi)
Disk /dev/sdb: 600GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 400GB 400GB ext3 primary
(parted) q
Information: Don't forget to update /etc/fstab, if necessary.
[root@ftp ~]# parted /dev/sdb
GNU Parted 1.8.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: HPT DISK_2_0 (scsi)
Disk /dev/sdb: 600GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 400GB 400GB ext3 primary
(parted)
[root@ftp ~]# parted /dev/sdb
GNU Parted 1.8.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: HPT DISK_2_0 (scsi)
Disk /dev/sdb: 600GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 400GB 400GB ext3 primary
(parted)

Model: SanDisk U3 Cruzer Micro (scsi)
Disk /dev/sda: 1027MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 100MB 100MB ext3
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sda: 1027 MB, 1027416576 bytes
255 heads, 63 sectors/track, 124 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 125 1003336 ee EFI GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 1) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(124, 231, 60)
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 93M 5.6M 83M 7% /mnt
(parted) p
Model: SanDisk U3 Cruzer Micro (scsi)
Disk /dev/sda: 1027MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 100MB 100MB ext3
(parted) rm 1
(parted) mkpart
Partition name? []?
File system type? [ext2]? ext3
Start? 0
End? 1027MB
(parted) p
Model: SanDisk U3 Cruzer Micro (scsi)
Disk /dev/sda: 1027MB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 17.4kB 1027MB 1027MB ext3
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 93M 5.6M 83M 7% /mnt
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/sda1 is mounted on /media/disk; on-line resizing required
Performing an on-line resize of /dev/sda1 to 1003300 (1k) blocks.
The filesystem on /dev/sda1 is now 1003300 blocks long.
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 949M 6.6M 894M 1% /mnt
(parted) rm 1
(parted) mkpart
Partition name? []?
File system type? [ext2]? ext3
Start? 0
End? 600GB
(parted) p
(parted) q
#
# resize2fs /dev/sdb1

/dev/sdb1 550G 1.6G 549G 1%

14.4 Nonproblem: fdisk sees much more room than df?
fdisk will tell you how many blocks there are on the disk. If you make a filesystem on the disk, say with mke2fs, then this filesystem needs some space for bookkeeping - typically something like 4% of the filesystem size, more if you ask for a lot of inodes during mke2fs. For example:
# sfdisk -s /dev/hda9
4095976
# mke2fs -i 1024 /dev/hda9
mke2fs 1.12, 9-Jul-98 for EXT2 FS 0.5b, 95/08/09
...
204798 blocks (5.00%) reserved for the super user
...
# mount /dev/hda9 /somewhere
# df /somewhere
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda9 3574475 13 3369664 0% /mnt
# df -i /somewhere
Filesystem Inodes IUsed IFree %IUsed Mounted on
/dev/hda9 4096000 11 4095989 0% /mnt
#
We have a partition with 4095976 blocks, make an ext2 filesystem on it, mount it somewhere and find that it only has 3574475 blocks - 521501 blocks (12%) was lost to inodes and other bookkeeping. Note that the difference between the total 3574475 and the 3369664 available to the user are the 13 blocks in use plus the 204798 blocks reserved for root. This latter number can be changed by tune2fs. This `-i 1024' is only reasonable for news spools and the like, with lots and lots of small files. The default would be:
# mke2fs /dev/hda9
# mount /dev/hda9 /somewhere
# df /somewhere
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/hda9 3958475 13 3753664 0% /mnt
# df -i /somewhere
Filesystem Inodes IUsed IFree %IUsed Mounted on
/dev/hda9 1024000 11 1023989 0% /mnt
#
Now only 137501 blocks (3.3%) are used for inodes, so that we have 384 MB more than before. (Apparently, each inode takes 128 bytes.) On the other hand, this filesystem can have at most 1024000 files (more than enough), against 4096000 (too much) earlier.
# tune2fs -l /dev/sdb1

[root@ftp ~]# tune2fs -l /dev/sdb1
tune2fs 1.39 (29-May-2006)
Filesystem volume name: <none>
Last mounted on: <not available>
Filesystem UUID: 7799ea73-ae17-4a09-9abb-953869be7e26
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal resize_inode dir_index filetype needs_recovery sparse_super large_file
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 73220096
Block count: 146423799
Reserved block count: 0
Free blocks: 143718725
Free inodes: 73219977
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 989
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 16384
Inode blocks per group: 512
Filesystem created: Tue Apr 3 13:59:32 2007
Last mount time: Thu Apr 5 06:14:29 2007
Last write time: Thu Apr 5 06:14:29 2007
Mount count: 3
Maximum mount count: 26
Last checked: Tue Apr 3 13:59:32 2007
Check interval: 15552000 (6 months)
Next check after: Sun Sep 30 13:59:32 2007
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: 5ed7e8b1-d9e9-4c8b-8ff3-0ea2f753d0dd
Journal backup: inode blocks
[root@ftp ~]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sdb1 73220096 119 73219977 1% /root/test

(parted) unit B
5 16860888576B 37917573119B 21056684544B logical ext3
5 16.9GB 37.9GB 21.1GB logical ext3



-T fs-type
Specify how the filesystem is going to be used, so that mke2fs can chose optimal filesystem parameters for that use. The supported filesystem types are:
news
one inode per 4kb block
largefile
one inode per megabyte
largefile4
one inode per 4 megabytes
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 550G 198M 522G 1% /root/test
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 550G 1.6G 549G 1% /root/test




Users browsing this forum: No registered users and 1 guest