Ubuntu Servers :: FDisk - GParted Report Wrong Sizes On Disks

Aug 31, 2010

I have some WD20EARS drives that I am trying to format into a pair of Linux software RAID1 devices. The problem is that at seemingly random steps during the process, the operating system decides the disk is a size much smaller than it actually is (2 TB, or as reported by the OS when it is acting normal, 1.82 TB). I follow this general layout of steps: first, I do fdisk -u /dev/sd[x], create a primary partition spanning the whole disk starting from sector 64 (to align the advanced format blocks properly). I set the partition type to fd (software RAID autodetect). Then, I assemble the arrays with mdadm:

Code:
mdadm --create /dev/md[z] --level=raid1 --raid-devices=2 /dev/sd[x]1 dev/sd[y]1
And then I create an ext4 filesystem:
Code:
mkfs.ext4 /dev/md[z]

For reasons I can't understand, fdisk, parted, and gparted (basically, everything) decides at any random point in that process that my disks are not 1.82 TB, but instead something like 172 GB or 500 GB. Once that happens, nothing I do to try to get my disks back seems to work. I've tried using expert mode in fdisk to manually reset the number of cylinders to the correct amount, but this hasn't worked either. Nothing short of reinstalling the system seems to work (but when I boot the installer, it seems to recognize the correct size of the disks).

View 6 Replies


ADVERTISEMENT

General :: Partition Gparted Fdisk / When Reduced The Size Of Some Linux Partitions Using Gparted?

Sep 18, 2009

I have 3 Ubuntu installations & a PCLINUXOS, plus Windows XP installed on one hard disk. I still can boot to each one of them and can mount each one using Ubuntu.

The problem "may" have occurred when I reduced the size of some linux partitions using gparted. I still have plenty of space in each of those partitions.

When I started gparted all of the HD was unallocated. I did that from each ubuntu installation and the PCLINUX installation, plus LIVECDs. All indicated the space was unallocated.

When I did an fdisk -l from a Puppy Linux LiveCD I got a normal start and ends of each partition.

When I tried it from Ubuntu installation or live cd, I received the following types of responses:

Code:
ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda5

Disk /dev/sda5: 28.5 GB, 28566397440 bytes
255 heads, 63 sectors/track, 3473 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
ubuntu@ubuntu:~$ sudo fdisk -u /dev/sda5

The number of cylinders for this disk is set to 3473.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Plus the Windows partition seems to go over its limits.

Since all of my OS installations are still working, I don't know how critical this is. From reading another post, I understand this might be able to be fixed by making some changes in fstab.

View 2 Replies View Related

OpenSUSE Install :: DF Reports Completely Different Sizes From FDisk

Sep 13, 2011

Opensuse Linux (Linux sr-server 2.6.37.6-0.7-default #1 SMP 2011-07-21 02:17:24 +0200 i686 athlon i386 GNU/Linux). I have a very unusual problem where fdisk reports one size BUT df reports a TOTALLY different and unexpected size. Besides doing a full backup, repartition, reformat and restore, is there anything else I can try first??

Here are the outputs: (sda1 and sda2 sizes are completely different from fdisk!!)
df -v -h
Filesystem Size Used Avail Use% Mounted on
rootfs 22G 17G 4.2G 81% /
devtmpfs 369M 152K 368M 1% /dev
tmpfs 375M 648K 374M 1% /dev/shm
/dev/sda2 22G 17G 4.2G 81% /
/dev/sda1 15G 7.8G 6.6G 54% /windows/C

FDISK reports correctly (sda1, sda2, sda3 = 24Gb, 949Gb, 3.1gb) .....

View 1 Replies View Related

Ubuntu :: Fdisk And Disks Greater Then 1.5TB?

Dec 30, 2010

I just bought a 3TB drive to use for backups and I'm getting a strange message when I run fdisk to get a listing of the drives.Here's what fdisk says about the 3TB drive:

Code:
Disk /dev/sde: 3000.6 GB, 3000592977920 bytes
255 heads, 63 sectors/track, 45600 cylinders

[code]....

View 9 Replies View Related

Debian Configuration :: Duplicate Disks With Same Uuid Under Fdisk

Jan 19, 2016

I am running Debian 3.2.0-0.bpo.2-amd64 on hyper-v, my / volume ran out of space and is sitting at 100%, I have extended the disk size on hyper-v, however when I go to Fdisk I see duplicates of each disk.

I have total of 2 vhds on the vm, so I see 4 disks under fdisk. Here is the output of fdisk

root@apachevm:~# fdisk -l

Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0009bfe8

[CODE]....

View 2 Replies View Related

Debian Configuration :: Fdisk And System Disagree About Disks?

Dec 15, 2010

I have never seen this one before (see below) - note how /dev/sda1 is mounted from the first disk listed by fdisk, but /dev/sda2 comes from the second disk; what is going on here? This is what I did: I installed the latest debian "Testing", which went well - it found the disks in the order show by fdisk -l here. When it booted up after installation, it failed because it couldn't find /, which I repaired by editing the grub menu (I told it to start from the other disk), and it came up. But now I had to mount /u01 by hand from /dev/sda1; strange. I suppose I could just go and change the physical disks around, but I'd like to understand this. Any ideas?

# fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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

[Code]...

View 2 Replies View Related

General :: Wrong Free Space Report - Close To Full

Mar 4, 2010

So... I run df -h and I get this:

Filesystem Size Used Avail Use% Mounted on
/dev/root 293G 21G 258G 8% /
tmpfs 503M 0 503M 0% /dev/shm
/dev/hdd1 113G 12G 96G 11% /win1
/dev/hdc1 113G 109G 0 100% /win0

It's close to full, but not actually full. I can't run a lot of things on this drive because the programs complain that they have no space.

View 3 Replies View Related

General :: Untouchable Disks Via Disk Utility And GParted

May 26, 2011

I have what I think are hybrid GUID/MBR disks that I created by splitting already MBR/NTFS disks via GParted, leaving unallocated space, then creating HFS partitions within OS X from the unallocated space on them.I want to delete those HFS partitions and re-extend the NTFS on them, but I can't because GParted sees the disk as somehow unchangeable; I assume OS X has done something to them.I now can't extend or do anything to the disks via the OS X Disk Utility OR GParted. What can I do?

View 1 Replies View Related

Ubuntu Installation :: 9.10 Install - Partman Doesn't Detect Disks, But GParted Does?

Feb 21, 2010

Using install disc burned from ubuntu-9.10-desktop-amd64.iso ; disc verified. Could not install because installation hung during partman. Booted into LiveCD (using same disc), and GParted works, but partman does not.

I've searched Google and this Forum with no luck; but perhaps I'm just not asking correctly. Any help - even a workaround Is there a way to use something other than partman, or to mount the root, home, and swap in a way that makes partman skip it during install?

View 2 Replies View Related

Ubuntu :: GParted Deleted Wrong HDD Partition

Mar 17, 2011

Most times I use my brain but some how I really screwed up with deleting the wrong hdd's partition which was an 500GB NTFS with all of my custom programs, art, web design & so on which can not be replaced. Is there a way to reverse this process? Keep in mind I am not Linux friendly being I do not know the commands & so on so any copy paste commands with good detail on what it does would be greatly appreciated!

I used GParted to delete & already hit the accept but no other changes have been made on the HDD after that. I am currently running in Live mode as I was going to install on the 80GB which is the one I meant to delete but instead had a nice moment of insanity & deleted the 500 instead!

View 7 Replies View Related

Ubuntu Installation :: GParted Displaying Wrong Partitions?

Feb 24, 2011

I have installed ubuntu many times before and never encountered this problem. The installer shows partition sizes which do not match my current sizes at all. This occurs during LiveCD too, I have taken a screenshot of the problem. GParted seems to be showing incorrect partitions while the one the right is correct.

View 9 Replies View Related

Debian Hardware :: Servers Which Contain SATA Disks And SAS Disks?

Feb 25, 2010

I have servers which contain SATA disks and SAS disks. I was testing the speed of writing on these servers and I recognized that SAS 10.000 disks much more slowly than the SATA 7200. What do you think about this slowness? What are the reasons of this slowness?

I am giving the below rates (values) which I took from my test (from my comparisons between SAS 10.000 and SATA 7200);

dd if=/dev/zero of=bigfile.txt bs=1024 count=1000000 when this comment was run in SAS disk server, I took this output(10.000 rpm)

(a new server,2 CPU 8 core and 8 gb ram)

1000000+0 records in
1000000+0 records out
1024000000 bytes (1.0 GB) copied, 12.9662 s, 79.0 MB/s (I have not used this server yet) (hw raid1)

[Code].....

View 3 Replies View Related

Fedora :: Gparted - Kernel Unable To Reread Partition Table On Disks

Jan 22, 2010

When I start gparted, to see if I can add extra harddisk where all my data is, I get the next error:

Code:
[root# gparted
libparted : 1.9.0

The kernel was unable to re-read the partition table on /dev/sda (Device or resource busy). This means Linux won't know anything about the modifications you made until you reboot. You should reboot your computer before doing anything with /dev/sda. I can start fedora 12 x64 amd whitout any problem. My partition layout on a single disk (80 gb sata maxtor) for the system is:
Code:
/
/home
swap

When I try to mount one of the extra disks (samsung spinpoint 1 tb, I have 4) I get to next error:
Code:
root# mount /dev/sdb1 /media/sdb1
mount: you must specify the filesystem type

If I add the option with the filesystem I get:
Code:
root# mount -t ext3 /dev/sdb1 /media/sdb1
mount: special device /dev/sdb1 does not exist

In gparted, when I select just a flag option, and deselect, press ok, the disk is forced to be reread by the program. After that I can also mount it. When I use any of the programs linked in this post, I am able to mount the disks whitout any problem. Except after a reboot, I get the same problem. SO whit each reboot, or poweroff, I need to do a re-read of the disks. The system is fedora 12 x64 for amd, installed from a live cd, the rest whit yums groupinstall, the latest kernel.

View 6 Replies View Related

Fedora Servers :: RAID 6-like Setup With Dissimilar Disk Sizes?

Jun 7, 2010

I'm looking to set up a bit of a home server, and am wondering about storage. What I'd like is something like RAID 6, which has good redundancy built-in, but with this being a home server, I'd prefer to start a little smaller and leave room to build it up in future. I'd been looking at commercial products like the 'drobo', which seems fairly ideal, but I'd really like to see if I can do it myself. I understand that throwing the RAID into an LVM will allow for some expansion, but the last time I checked, most RAID setups called for the same sized disks, or at least limited the array by the size of the smallest disk present.

What I'd like is the ability to build a basic framework with a few cheap disks, and then as things start filling up, to be able to add larger ones (perhaps eventually pulling out smaller ones as though they'd failed and replacing them with big ones)

View 1 Replies View Related

Fedora Servers :: See Messages In Logwatch Report Then Cannot Find The Actual Log Entry?

Jan 23, 2010

I occasionally see messages in my logwatch report then cannot find the actual log entry. Is there any way I can have logwatch give a clearer report?an example:

vsftpd:
Unknown Entries:
authentication failure; logname= uid=0 euid=0 tty=ftp ruser=a-specific-user

[code]....

View 2 Replies View Related

Ubuntu Servers :: GParted Has Renamed MD Devices?

Jun 28, 2011

I am running a test installation of Ubuntu 10.04 Server on a Virtual Machine (VBox specifically) in order practice recovering RAID problems. When I initialy created the RAID arrays I created a MD Device named "md0" with an ext4 file system and "/" mount point. My other RAID array was called "md1" and was used for swap.When loading GParted off of a bootable disk I noticed that the devices were changed from md0 and md1 to md127 and md126. I shut down the VM and on reboot grub rescue shows up saying that disk can not be found and using "ls" lists the MD devices as they appeared in GParted (md127 and md126).

I rebuilt the OS via importing an backup Appliance and repeated the same thing. Boot into Ubuntu, success, then sudo shutdown, boot into GParted, note md device name change,shutdown, boot into Ubuntu, grub rescue.Is there anyway to stop this from happening(in the event that GParted must be used on a Physical Machine). Or a way to revert the problem after GParted messes the system up?Edit: I talked with one individual who suggested changing the md device names to md 127 and md126, but I am looking for a more robust solution than taking a shot in the dark that GParted will set the same names on other systems.

View 4 Replies View Related

Ubuntu Servers :: Can't See Full Capacity Disks

May 18, 2011

1 Areca controller 1222 divided into 2x250Gb in RAID 1 for my Ubuntu installationm6x 2Tb in RAID 5 for my data (mounted as logical drive) resulting in 8Tb of available space (also visible in the disk utility of Ubuntu) Ubuntu 10.04 LTS

Now the problem; when I check the capacity in the file browser on my mounted data drive, I only see 5,1 Tb of total space.

View 1 Replies View Related

Ubuntu Servers :: Mount 4 Internal Sata Disks Using Hal On Installation?

Jan 20, 2010

i currently try to mount 4 internal sata disks using hal on a server installation?

i did

apt-get install hal and copied a .fdi script to /usr/share/hal/fdi/policy/10osvendor/30-storage-all.fdi

as far is i understand now i need a hal/dbus client
gnome-volumen-manager seems to be one
apt-get install gnome-volume-manager

now im stuck there is no such executable like gnome-volumen-manager thus, how does it work? how can i start it? how do i know if and why the .fdi script works or fails?

since its a server edition and its purpose should be a very minimized server install i dont want a GUI like gnome fully installed

View 1 Replies View Related

Ubuntu Servers :: Replaced DVDRW Drive Not Reading Disks?

Feb 25, 2010

I just replaced a DVD-RAM drive in one HP server, The drive is recognized by the OS:

Code:
# lshw -class disk
*-cdrom UNCLAIMED
description: SCSI CD-ROM
product: DVDRAM GSA-T50L

[Code]...

Is there anything I should do when replacing a drive? Didnt think so, but this is going nowhere.

View 3 Replies View Related

Ubuntu Servers :: Mdadm Incoonsistent Status On Disks In Same Array

Jan 21, 2011

when I start my raid5, only 2 disks of 3 are active on md0. The 3rd disk is inactive on md_d0.When I do mdadm --examine, the two active disks report 2 active, 2 working, 1 failed. the inactive disk resports 3 active, 3 working, 0 failed.

View 2 Replies View Related

Ubuntu Servers :: Create A New Mdadm RAID 5 Device /dev/md0 Across Three Disks?

Feb 5, 2011

I am trying to create a new mdadm RAID 5 device /dev/md0 across three disks where such an array previously existed, but whenever I do it never recovers properly and tells me that I have a faulty spare in my array. More-specific details below. I recently installed Ubuntu Server 10.10 on a new box with the intent of using it as a NAS sorta-thing. I have 3 HDDs (2 TB each) and was hoping to use most of the available disk space as a RAID5 mdadm device (which gives me a bit less than 4TB.)

I configured /dev/md0 during OS installation across three partitions on the three disks - /dev/sda5, /dev/sdb5 and /dev/sdc5, which are all identical sizes. The OS, swap partition etc. are all on /dev/sda. Everything worked fine, and I was able to format the device as ext4 and mount it. Good so far.

Then I thought I should simulate a failure before I started keeping important stuff on the RAID array - no point having RAID 5 if it doesn't provide some redundancy that I actually know how to use, right? So I unplugged one of my drives, booted up, and was able to mount the device in a degraded state; test data I had put on there was still fine. Great. My trouble began when I plugged the third drive back in and re-booted. I re-added the removed drive to /dev/md0 and recovery began; things would look something like this:

Code:
user@guybrush:~$ cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdc5[3] sdb5[1] sda5[0]
3779096448 blocks level 5, 64k chunk, algorithm 2 [3/2] [UU_]

[Code]...

View 9 Replies View Related

Ubuntu Servers :: Simulate A Failed Raid Array On A Pair Of 2tb Disks?

Feb 26, 2011

Using a fresh copy of server 10.04 im trying to simulate a failed raid array on a pair of 2tb disks. Here is the procedure i have been following so far:

- Remove the dead disk partitions from each of the raid 1 arrays (substitute the correct md devices and partitions)
- mdadm /dev/md0 -r /dev/sdb2
- mdadm /dev/md1 -r /dev/sdb3

[code]....

I get an error here that sfdisk does not support gpt (guid partition table). I thought sfdisk did support gpt? It says to use parted, but i cant find a command that copies a partition table over from another disk in parted documentation. Any suggestions? I suppose i could make the partitions manually, but im writing a procedure for people who arent that technical and i need it to be simple enough to be run in my absence. manually building the partitions would be too hard for them.

View 2 Replies View Related

Fedora Servers :: How To Use Fdisk To Partition Hard Disk Into Two Partition

Jul 2, 2011

i had installed fedora 14 into my new hardisk(1500gb) as new server the problem is how can i use the fdisk to partition the hardisk into two partition.

View 10 Replies View Related

Ubuntu :: Wrong With The Update Servers?

Aug 21, 2010

The download speed in the last two days is very slow like 50/60/70kb when my download speed can reach 500kb.

View 2 Replies View Related

Ubuntu :: Firefox Is Recognised Wrong By The Servers?

Mar 9, 2011

my problem happened sinces a long time ago. Basically Firefox, when I try to download plugin from Google or from mozilla website or when I check my IP, the servers think that my Firefox is a 3.0.0 and Window XP.I use Ubuntu 10.04 and the Firefox version 3.16.15 - Mozilla Firefox for Ubuntu canonical - 1.0. I attached to this a pic of what I get from the website

View 3 Replies View Related

Ubuntu Installation :: Which Disks Can Be Main Boot Disks

Mar 31, 2010

I have/had a PC with several hard drives, and a mix of ubuntu and windows on multi boot.The old boot drive died screaming, and I need to start again. (But my data is safe! yay!)

Is there anything special about which drive can be the main drive to start booting from? Or to put it another way, can I install to any of the other 3 and expect it to work, or do I need to switch them around so a different drive is on the connections for the recently dead one?

View 2 Replies View Related

Ubuntu Servers :: Does Replacing Failed Disk On Raid5 Change Any Data On Other Disks In Raid

Jan 9, 2011

I've got a raid5 array of 4 disks with ubuntu 8.04 runing on it that is currently still working:

/dev/sda
/dev/sdb
/dev/sdc
/dev/sdd

Smartmontools for /dev/sdc tell that there are 9 sectors pending for reallocation:

Code:

197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 9
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 9
And /dev/sdd has increasing number of reallocated sectors (about 1 every couple of minutes):

Code:

5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 1735
/dev/sdc has failed a coulple of times this week (but I have always sucessfully readded it to raid5) . But the increasing number of reallocated sectores on /dev/sdd concerns me even more.

I'm affraid that during removal of /dev/sdd and adding new /devs/sdd disk, raid might fall appart. That's why I would try to do it in Ubuntu Live CD:If the raid falls appart (/dev/sdc fails) during the readding of new /dev/sdd disk, I might still remove the new /dev/sdd and return the previous one and assemble the raid with:

/dev/sda
/dev/sdb
/dev/sdd (old one that was previously removed)

Does assembling Raid in Ubuntu Live and adding new disk for /dev/sdd write anything on /dev/sda, /dev/sdb and /dev/sdc in the process of adding /dev/sdd into raid5?

View 2 Replies View Related

Ubuntu Servers :: Named Is Listening On The Wrong Port?

Jul 11, 2010

update:

Code:
luke@media:~$ sudo service bind9 restart
* Stopping domain name service...

[code]....

View 4 Replies View Related

Ubuntu Servers :: Freshclam Won't Fetch Updates - Uses Wrong DNS

May 16, 2011

On a new machine running Ubuntu 10.04.2, the freshclam program (in clamav-freshclam version 0.96.5+dfsg-1ubuntu1.10.04.2) won't do updates to the database. It fails on DNS queries. DNS works OK for other programs. The tcpdump command shows that it sends the queries to 127.0.0.1 instead of the correct DNS servers specified by /etc/resolv.conf. Of course it doesn't get an answer because it is asking the wrong IP address.

There is also a --no-dns option, but that didn't help/

Do I need to tell ot what the DNS servers are, somewhere?

Why would it query only 127.0.0.1 for DNS?

View 1 Replies View Related

Ubuntu Servers :: Sendmail Goes To Wrong Address When Triggerd By Cron?

Mar 17, 2010

I wrote/cobbled-together this nifty sendmail script to read some logs and take some disk stats. basically i'm reporting on rsnapshot. When I run it as

Code:
sudo /etc/rsnapshot/mailSta.sh
Everything works wonderful and the emails arrive as expected and fires off an email to two accounts at a remote server

View 1 Replies View Related







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