LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-17-2012, 07:54 PM   #46
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0

Hey ok I tryed to raid0 them 2TB drives into a 4tb one

Code:
mount
/dev/sda1 on / type ext4 (rw,grpquota,errors=remount-ro,usrquota)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sdc1 on /backups type ext4 (rw)
/dev/md0p1 on /space type ext4 (rw)
I get this when using "mount"
now to me that looks right but than again am no expert

The thing is when am on my webmin page it says this

Code:
Local disk space	1.81 TB total, 289.67 GB used
and this is for all 4 drives

150gb main drive
74gb backup drive
2x 2TB drives

here is the fdisk

Code:
fdisk -l

Disk /dev/sda: 150.0 GB, 150038863360 bytes
255 heads, 63 sectors/track, 18241 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000131a3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       17498   140546048   83  Linux
/dev/sda2           17498       18242     5974017    5  Extended
/dev/sda5           17498       18242     5974016   82  Linux swap / Solaris

Disk /dev/sdc: 74.4 GB, 74354687488 bytes
255 heads, 63 sectors/track, 9039 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001a1c6

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1        9040    72610816   83  Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdd: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd361950d

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1      243202  1953514583+  ee  GPT

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      243202  1953514583+  ee  GPT

Disk /dev/md0: 4000.8 GB, 4000795590656 bytes
2 heads, 4 sectors/track, 976756736 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 524288 bytes / 1048576 bytes
Disk identifier: 0x00000000

    Device Boot      Start         End      Blocks   Id  System
/dev/md0p1               1   439885824  1759543294   83  Linux
Partition 1 does not start on physical sector boundary.
Now this is saying "Partition 1 does not start on physical sector boundary." not sure what this means but am guessing this is where the problem is

so could anyone help me out with this problem

Thanks alot
Mike
 
Old 07-17-2012, 08:05 PM   #47
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
/dev/md0 doesn't have a GPT partition table, so the partition size will be limited to 2TB. You need to use parted to switch /dev/md0 to GPT, then recreate the partition and ext4 filesystem to use the full size.
 
1 members found this post helpful.
Old 07-17-2012, 08:10 PM   #48
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
/dev/md0 doesn't have a GPT partition table, so the partition size will be limited to 2TB. You need to use parted to switch /dev/md0 to GPT, then recreate the partition and ext4 filesystem to use the full size.
Hey thanks for the reply, can I ask how I would go about doing that? also well I lose all my saved data on the drive?

Cheers
 
Old 07-17-2012, 08:28 PM   #49
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
There might be a way to do it without losing your data, but I would definitely back everything up first. Always a good idea before modifying the partition table.

I've never tried to do it without losing the data on the drive, so I can't help there. The following are instructions to do it while definitely wiping what's on the drive:
Code:
umount /dev/md0p1
parted /dev/md0

# use print to print the current partition table, and use rm to remove partitions until there are none left

mklabel gpt
mkpart primary ext4 0 -1
quit
If you get a warning about the partition not starting on a cylinder boundary, try
Code:
mkpart primary ext4 2048s -1
instead

Last edited by suicidaleggroll; 07-17-2012 at 08:33 PM.
 
1 members found this post helpful.
Old 07-17-2012, 08:31 PM   #50
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
There might be a way to do it without losing your data, but I would definitely back everything up first. Always a good idea before modifying the partition table.

I've never tried to do it without losing the data on the drive, so the following are instructions to do it while definitely wiping what's on the drive:
Code:
parted /dev/md0

# use print to print the current partition table, and use rm to remove partitions until there are none left

mklabel gpt
mkpart primary ext4 0 -1
quit
Thanks leggroll, I'll back it all up just to be safe should only take a few hours ^^
I'll report back tomorrow with the results :3

Thanks again
 
Old 07-17-2012, 08:32 PM   #51
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by Vodkaholic1983 View Post
Thanks leggroll, I'll back it all up just to be safe should only take a few hours ^^
I'll report back tomorrow with the results :3

Thanks again
Forgot to mention, make sure you unmount the drive before doing any of those steps.
 
Old 07-17-2012, 08:58 PM   #52
Vodkaholic1983
Member
 
Registered: May 2010
Distribution: Windows / Debian
Posts: 163

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by suicidaleggroll View Post
Forgot to mention, make sure you unmount the drive before doing any of those steps.
Thanks ive done it

Shows this now

3.71 TB total, 197.58 GB used

still abit low tho no?

2x 2tb
150gb
74gb

I know some gets taken of but this is down 500gb + is this right?

Cheers
 
Old 07-17-2012, 09:07 PM   #53
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
That's normal. TB vs TiB (base 10 vs base 2)

Hard drives are rated in 1 TB = 1,000 GB = 1,000,000 MB = 1,000,000,000 kB = 1,000,000,000,000 B
Capacity is generally given in TiB, where 1 TiB = 1,024 GiB = 1,048,576 MiB = 1,073,741,824 kiB = 1,099,511,627,776 B
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy "new files found" on my debain (Server) to windows 7 (Home PC) Vodkaholic1983 Linux - Newbie 6 05-13-2012 12:09 AM
[SOLVED] how to simulate "mkdir -p /home/blah1/blah2/blah3" in "c" where only /home exist platinumedge Linux - Newbie 4 10-04-2009 06:28 PM
LDAP login and "/home" server in one. Idea's and help 4 a charity's network peterlowrie Linux - Networking 4 05-18-2009 12:20 AM
How might I restore kmail folders/mail/settings from a "badly" saved "home"? deh6 Linux - Software 5 03-08-2008 09:25 PM
"cp -p" fails with "cp: setting permissions for `/home/svbld/t': Invalid argument" mkhesin Red Hat 1 02-28-2007 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration