Software :: Determine USB Hard Drive Capacity In Sectors?

Mar 24, 2011

How would one determine the capacity in sectors or LBAs of a USB Hard Drive? If I know the USB device number, like from 'lsusb', is there someplace on the system to get other information about the drive? What I want to do is have a program go out and get this information just for the number of LBAs on the drive itself. Partition info doesn't matter for what I am doing.

View 2 Replies


ADVERTISEMENT

Ubuntu :: How To Fix A Hard Drive With Bad Sectors

Jan 20, 2010

I recently got a bad virus that wouldnt let me reinstall Windows so I figured I would install Ubuntu and give it a go, but now it says my hard drive has "many bad sectors" a quick Google search shows many ways to fix this in Windows, but how do I do it in Ubuntu?Easily since Im just getting the hang of things.

View 8 Replies View Related

Ubuntu :: How To Extend Capacity Of Hard Drive

Aug 17, 2010

I have window 7 and Ubuntu 10.04 on my laptop.As you know if I extend the capacity of my ubuntu partion in window, I will lose ubuntu and I should reinstall it.I want to know if there is a way for extending my ubuntu partition from 20 Gb to 30 Gb without loosing ubuntu and windows?

View 3 Replies View Related

Ubuntu :: Hard Drive Sectors Lead To A Really Sluggish System?

Jul 26, 2011

My sister's laptop (toshiba satellite l550 running lucid) often runs really, really slow, even after a fresh install. Going through the gnome main menu, everything just lags by several seconds. Closing applications often takes a while, etc. I've run top and iostat to determine what the problem is and it seems to be IO-related. User processes and system processes don't take up more than a few percent, but the average load is usually over 2 even when I'm barely doing anything. Top shows that, whenever everything slows down, the 'wait' criterion is pretty high.

Now, I've also tried installing lucid to an external USB hard drive and that works fine. I'm currently running the S.M.A.R.T. diagnostic and so far I've got the attached screenshot to show. Only the criterion shown and the 'current pending sector count' are showing warnings.Any thoughts? Could the performance issue be related to the hard drive warning? I'm not planning to replace the hard drive just yet, because this laptop still has a two-year warranty.

View 8 Replies View Related

General :: Gnome Disk Utility Warned That Hard Drive Had Numerous Bad Sectors / Fix It?

Feb 21, 2010

I recently tried Fedora on my laptop (previously Debian; I was bored one day) and gnome-disk-utility (palimpsest) warned me that my hard drive had numerous bad sectors. I re-installed Debian to find that this software was installed before so why had it not warned me?

When I load the disk utility, it says SMART is not available. I've got smartmontools installed, I can run a self-test with smartctl but I don't think this shows bad sectors. I've tried starting smartd on startup but the disk utility never changes from "SMART is not available". It is possible for it to work with this hardware as it works in Fedora on this laptop; any ideas?

View 3 Replies View Related

Ubuntu :: Command To Determine Memory Usage On Hard Drive?

Jan 8, 2010

When at the console, what is the command (if there is one) to determine memory usage (used/free) on the hard drive that is being used for one's OS?

View 2 Replies View Related

Ubuntu :: Create Ext Partitions It Reserves 10% Of Hard Capacity?

May 11, 2010

Why when I create ext partitions it reserves 10% of hard capacity?

View 1 Replies View Related

Debian :: Hard Disk / Reclaim Its Full Capacity Under Windows?

Dec 9, 2010

I have a single PC that has two hard disks in it. One is 250GB running Debian linux; the other 1TB running windows. I was switching between the two by going to the BIOS and changing the order of the hard disks to boot from. Both lived happily together in peaceful co-existance. Until....

Lately, I haven't been using Linux, so I decided to convert the 250GB to windows. So I put in the windows install CD, and it all started working fine, but when it came down to setting up a partition, Windows only recognized 130GB (out of the 250GB). I got confused so I decided to re-install linux. Linux recognizes the full 250GB; it recognized that there is a second hard disk running a different OS so the grub gave the option to boot from windows. So after a couple of reboots from both drives I decided to go ahead and install windows on the 250GB. Well again, windows only recognized 130GB, but this time, windows showed me another hard disk again with 130GB capacity. Apparently I stupid enough to proceed so now both hard disks - the 250GB and the 1TB - have capacity of 130GB each. And this is where I'm stuck.

I have tried fdisk, I have tried debug, but for some reason, windows can only recognize 130GB out of the entire disks; linux on the other hand recognizes the full capacity. I also used the seagate disk diagnostic tool (seatools for MS DOS) and it found no errors on either hard disk.

How can I reclaim the full capacity under windows?

View 4 Replies View Related

Hardware :: Scan And Fix Bad Sectors On Hard Disk Without Damaging Data?

Dec 19, 2010

How to scan and fix Bad Sectors on Hard Disk without damaging data?

View 5 Replies View Related

CentOS 5 Hardware :: Partitioning Hard Drives With 4K Sectors (WD20EARS)?

Jun 10, 2010

would anyone here happen have gotten one of these successfully up, running &, aligned on 5.5? i only want two partitions. one 2gig for swap and the rest mounted @ /. i've googled myself into complete and utter confusion.[Moderator edit: changed the title to something more informative

View 4 Replies View Related

General :: How To Extend Ubuntu Linux Hard Disk Size To Use Full Capacity

Dec 23, 2010

I wonder if this is possible to extend or regrow the Linux hard disk partition from 8 GB to 20 GB without losing the existing data on the partition ?at the moment this Ubuntu Linux is deployed on top of VMware and I've just regrow the hard drive from 8 GB into 20 GB but can't see the effect immediately.can anyone suggest how to do this without losing the data ?

View 9 Replies View Related

Ubuntu :: Code To Access Hard Disk Sectors (LoopBack Device)

Jan 26, 2011

I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it has the following configuration.

Code: $> sudo fdisk -l /dev/loop0
Disk /dev/loop0: 10 MB, 10977280 bytes
255 heads, 63 sectors/track, 1 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

Disk /dev/loop0 doesn't contain a valid partition table Now what I want to do is develop a c++ program to read & write files to this loop back device,which I'm using to simulate an actual hard disk,at the blocks & sectors level. So far I've come up with the following code. But I'm still unable to read files from the hard disk one block at a time.

Code: #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
char block[512]; int length=0;
cout<<"Implementation of the File Handler Read Method..."<<endl;
FILE *f = fopen("/dev/loop0", "r");
if(f == NULL) {
cout<<"Error In Opening the HardDisk File Retuning Error..."<<endl; return -1; }
//Read One Block of Data to Buffer length = fread(block, 1, sizeof(block), f);
/* Do something with the data */ cout<<"Length : "<<length<<endl;
return 0; }

When I run this Program All what I get is the message for NULL. "Error In Opening the HardDisk File Retuning Error...". So I could open the loopback device as a file an access it at the sectors & block level.

View 1 Replies View Related

Ubuntu :: 8gb Flash Drive Stuck At 3.8gb Capacity?

Sep 25, 2010

I have an 8gb sandisk cruzer flash drive that I wanted to remove the U3 software from. I used with this:and ran it on my windows machine because wine didn't work for itbut after it removed U3 my card only had 3.8gb. Is there any way to restore it back to 8gigs?I've already tried reformatting with the disk utility and it just doesn't give me the option to format higher than 3.8gb.

View 4 Replies View Related

Ubuntu :: Capacity Of /home In SAMBA Drive Not Showing?

Jul 8, 2010

I have a Lucid Lynx server running with a 6 GB for /home and a data partition of 400 GB mounted inside home (/home/user/data). The data partition is shared through SAMBA for access by other windows machines on the network. However, the capacity of the samba share shows up only as 6 GB (or less) while the actual capacity is 400 GB. I am assuming that this because it is mounted within the home partition. I understand that 400 GB is still available even though the SAMBA drive shows only 6 GB (or less) capacity.

The problem is, I am trying to setup Windows 7 Backup and Restore on one of my laptop. The backup stops with an error that the network drive does not have enough disk space. I think that this is because the samba drive only shows up as 6 GB or less capacity even though it can store more.

How do I fix this problem? How can see the actual size of the SAMBA drive (in my case 400 GB) in stead of the remaining space in /home partition? I know I can reformat my drive and make my /home 400 GB. But I am not sure if this will fix the problem. However, I will prefer to this without formatting.

View 1 Replies View Related

General :: Software For Finding Bad Sectors On A Usb Drive?

Aug 6, 2010

I can't seem to find any programs or applications for linux that will find bad sectors of a usb drive. I have seen plenty for Windows, but I was wondering if there are any for linux.

View 8 Replies View Related

CentOS 5 Hardware :: 4k Sectors (Advanced Drive Format In WD Lingo) And RAID1

Dec 29, 2010

I have 2 WD20EARS hard drives on the way (2 TB green WD disks with 4k sectors) and I'll be installing Centos 5.5 in RAID1 on them (2 partitions, one 16 GB / at the beginning and the rest in its own partition). I read the following thread: [URL]

and it seems that I might be having problems with the 4k sectors (Advanced Drive Format in WD lingo). I'm confused as to what exactly to do. I was thinking of downloading Fedora 14 Live CD and partitioning there and then switching to Centos 5.5 to install. Will that work? Seems I want the md 0.9 metadata because it doesn't have the space limit for me (2 TB) and it's stored at the end of the partition so it avoids alignment issues. Will I be able to make that happen with Fedora 14?

View 2 Replies View Related

General :: Upgrade Internal 2.5" Hard Drive Vs External Usb Hard Drive For An Old Laptop?

Jan 25, 2010

I got a dell inspiron 1501 laptop with a 80Gb sata drive what is the best solution to add data storage space for someone that love to have multiples operating systems at hand Note: I use mostly linux so I won't need to change my laptop for many years maybe ...

View 2 Replies View Related

General :: Move Smaller Hard Drive To Partition On A Larger Hard Drive?

Mar 16, 2010

My parents bought a new hard drive for a laptop that I've owned for several years. It's much larger than the current one, so I plan on splitting it up to dual boot it with Ubuntu.I have no problem with partitioning a drive (I always keep a LiveCD handy), but my question is this: how can I go about moving the existing partition to the new drive? This is a laptop, so I can't simply plug the new drive into another slot.

Also, even if I manage to move it, will Windows still work on the new drive in a larger partition? I've had this laptop for quite a while, and I've lost the recovery discs that came with it a long time ago. I also have a lot of software without CDs to reinstall them with. This makes not reinstalling Windows a high priority.

View 3 Replies View Related

General :: How Does Du Determine Which Hard Link To Disregard

Nov 16, 2010

We have two directories:

$ ls -l
total 8
drwxr-x--- 2 nimmy nimmy 4096 Nov 15 19:42 jeter
drwxr-x--- 2 nimmy nimmy 4096 Nov 15 19:42 mariano

I create one file in the first folder:

$ dd if=/dev/zero of=jeter/zero_file.1 bs=512000 count=1
1+0 records in
1+0 records out
512000 bytes (512 kB) copied, 0.268523 s, 1.9 MB/s

This is the output of du:

$ du -sh *
504K jeter
4.0K mariano

As expected, if I place a hard link of the zero_file. in the other folder du output does not change:

$ ln jeter/zero_file.1 mariano/zero_file.2
$ du -sh *
504K jeter
4.0K mariano

there is nothing in the filesystem that points to zero_file.1 as the original file. So how does du know to count zero_file.1 but not zero_file.2?It cannot be a timestamp comparison because all hard links share one inode; they'll have the same timestamp data correct?

View 3 Replies View Related

Fedora Installation :: EIDE Hard Drive Recognized As Sda Hard Drive

May 1, 2010

Trying to install Fedora 12 using the 6 CDs. Trying to install on an older x86 box.Problem is that when detecting my hard drive, Fedora 12 recognizes it as a sda hard drive instead of hda hard drive. I have no SCSI connected to my computer what so ever. It's an old fashion PATA Western Digital hard drive.If I proceed with the install, Fedora 12 only installs 200MB of the OS from the first CD only. No options for additional software or anything.

View 1 Replies View Related

CentOS 5 :: Crashing And What Appears To Be Hard Drive Errors / Bad Hard Drive?

Mar 21, 2009

Sometimes when I do anything write heavy such as transferring backup or downloading large files from the net, the machine crashes almost completely.

View 8 Replies View Related

Debian :: Determine Amount Of Unused Hard Disk Space?

Jan 1, 2011

I am using LVM2 and have shrinked my /home partition and extended my / partition but I'm not sure if I used all the free space when growing my / partition. How can I find out? I prefer using the terminal if there is a graphical way to do this but I would like to know both ways if there are two ways.

View 3 Replies View Related

Ubuntu :: Use External Hard Drive For Virtual Box Hard Drive?

Jun 3, 2011

I have a laptop with only 30GB storage and I want to install Lubuntu in virtual box but Lubuntu needs 5GB of storage space which i dont have. Could i use an external 160GB hard drive to act as the hard drive for the virtual machine without affecting the files that are already on the external hard drive

View 6 Replies View Related

Ubuntu :: MDADM - How To Determine Which Drive Has Failed

Aug 7, 2011

I know this is probably a very generic linux question, but since I am using ubuntu - I thought it safer to ask here. I have jumped into the deep end of linux - and I am afraid that I will be forced to swim sooner rather than later.

Let me start at the beginning - I am and probably will be a windows fan for a long time - let me not list the reasons - or else you guys will probably hang met out to dry - the one thing I have discovered - is that windows sucks in generating a software RAID - especially the RAID 5 that i was looking for any case - after loosing plenty data via windose - I decided to attempt linux/ ubuntu. I must say - so far so good.

I used this excellent guide: [URL] and must say that the raid is performing admirably - I am currently busy adding/growing the 12th 1Tb drive onto the RAID, and no issues so far(some other major WOW advantages i have noticed... like speed writing too and reading from the RAID.. )

See below MDstat outputcat proc mdstat:
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md0 : active raid5 sdl1[11] sdj1[10] sdb1[1] sdm1[6] sdk1[2] sdi1[8] sdh1[0] sdg1[3] sdf1[4] sde1[9] sdd1[5] sdc1[7]
9767599360 blocks super 0.91 level 5, 64k chunk, algorithm 2 [12/12] [UUUUUUUUUUUU]
[==========>..........] reshape = 50.7% (495864576/976759936) finish=1482.0min speed=5407K/sec
unused devices: <none>

My questions :
If one drive fails on the array(for example SDK1) - how the heck do i determine which physical hardware device it is that has failed? (without compromising the other data - yes unfortunately I cant afford to backup 11TB of data - personal server). I don't have space in the box for a mouse - not even talking about a hot spare drive - thus adding the backup drive before removing the faulty drive is rather difficult - but if that's the only option I will have to keep with that as everybody know RAID5 is only 1 drive backup - so partly I would like to solve the issue as quick as possible -without having to resort to disconnecting one drive at a time to determine which is which. If the drive assignments ( SDA/SDB/SDC) is constant

What is the most intuitive/fast way to determine that a faulty drive exist in the array? - i.e. is there some sort of GUI solution for MDADM that will tell me the moment that a drive has turned faulty? - The box is currently not on the internet -meaning notification via email is not possible. Is there a non-destructible way to convert the RAID-5 to RAID-6? (I would rather sacrifice 1TB of free space - for peace of mind) - and RAID6 will make troubleshooting a bit easier since 3 drives will have to fail before data-loss.

View 9 Replies View Related

Software :: Ubuntu Installed On External Hard Drive, Can't Startup Without External Hard Drive?

Jan 14, 2009

I have 2 ubuntu's: 1 on my ineternal hard drive, 1 on my external

When I startup without my ext drive =>GRUB error 21.

And when I plug it in I can choose: the standard ubuntu kernel is the one on my external, and the original one is listed under other...

I'd like to be able to startup without external hard drive and make the ubuntu on my internal drve the standard.

View 14 Replies View Related

Ubuntu :: External Hard Disk /Hard Drive Mounts As Read Only (Suddenly)?

Jan 17, 2011

I recently bought 320 GB Trancend external hard disk and working fine days back.Earlier i could copy from and to the hard disk with out any issue. I dont know what happened after that now i am not able to write any files in to the external hard disk. This is not NTFS formatted device. here is some of the out put from terminal.

Code:
sundar@sundar-sundar:~$ fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes

[code]...

View 7 Replies View Related

CentOS 5 Server :: Partitioning Hard On Hp Proliant Dl380 Doesn't Detect Hard Drive

Sep 11, 2010

I have been trying to install centos on my hp servers and when i get to partitions my hard drives the OS does not detect any harddrives. I have 4 scsi drives and i believe a intergrated smart array controller.

View 1 Replies View Related

Software :: Write / Unpack .qcow2 Hard Disk Image Directly To Real Hard Drive

May 22, 2011

is there a way to write/unpack .qcow2 hard disk image directly to real hard drive in Linux?(I know it's possible to unpack .qcow2 to .raw and then dd to drive, but I'd like to skip .raw since its large)

View 2 Replies View Related

General :: Hard Drive Malfunctions When Other Hard Drives Are Connected?

Aug 23, 2010

I have a SATA drive that worked fine. Then I installed two more hard drives into my system. When these hard drives are installed, if I try to access the SATA drive in Linux, it will start lightly clicking and then the drive will become unavailable. If I power on the machine without the other two hard drives then it works fine. What could be causing this to happen? I don't think it's heat because the two hard drives are far away from the SATA drive.

View 1 Replies View Related

General :: Copying A Partition From One Hard Drive To The Same Partition On Another Hard Drive

Mar 23, 2010

I am trying to move a whole bunch of files from one partition on one hard drive to the same partition on another hard drive. Can I mount the same partition (same name, different drives, i.e. /data on /dev/hda1 and /data on /dev/hdb1)and copy those files? Shutdown the server, take out /dev/hda1 and boot up with the new drive and it's /data contents.

View 1 Replies View Related







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