General :: Hard Disk Data Transfer Accessing Error

Jun 28, 2010

I am using an embedded platform in which I have connected an external harddisk (/dev/sda). The SCSI driver is present and I am using the SG_IO interface for performing the SMART commands with the Hard Disk. (Unfortunately not all the HDIO ioclts are present. So I opted for the SG_IO ioctl). But the data transfer (reading/write data from/to sector) is not working with the SG_IO ioctls. So I searched for some other options. Later in one of the places, I found that we can actually mount the /dev/sda to some mount point in /mnt and then make a XFS file system (mkfs.xfs) of this.

And then we can create the directories and do file operations on this mounted directory. Here the simple read/write systems calls can be used for this. I was thinking about this implementation. But I am confused how I can map the actual LBA (Logical Block Address) to the device file offset. I mean if I want to write to the sector 5, there will be a LBA for it. So I can do lseek on my device and then write the data there. So how the mapping between LBA and device file offset can be calculated.

View 4 Replies


ADVERTISEMENT

General :: Accessing The Hard Disk Using The /dev/sda Interface?

Mar 25, 2010

I am developing a program which can access the SATA-hard disk. I have to use the /dev/sda interface for accessing the hard disk. What are all the commands i can use to perform the sector read, write (Both DMA and PIO), sending the smart commands etc. Or is there any easier way?

I saw that i can make use of hdparm call for getting some of the attributes.

View 7 Replies View Related

General :: Scsi RAID Jbod And Arrays - Disk Utilization And The Corresponding Low Data Transfer

Jul 6, 2010

So I have a system that is about 6 years old running Redhat 7.2 that is supporting a very old app that cannot be replaced at the moment. The jbod has 7 Raid1 arrays in it, 6 of which are for database storage and another for the OS storage. We've recently run into some bad slowdowns and drive failures causing nearly a week in downtime. Apparently none of the people involved, including the so-called hardware experts could really shed any light on the matter. Out of curiosity I ran iostat one day for a while and saw numbers similar to below:

[Code]...

Some of these kinda weird me out, especially the disk utilization and the corresponding low data transfer. I'm not a disk IO expert so if there are any gurus out there willing to help explain what it is I'm seeing here. As a side note, the system is back up and running it just runs sluggish and neither the database folks nor the hardware guys can make heads or tails of it. Ive sent them the same graphs from iostat but so far no response.

View 1 Replies View Related

General :: ERROR - 15 Hard Drive Transfer

Apr 4, 2010

This is my first even moderately successful venture with linux, I had a virus ridden HD which I formatted, and then installed Mint distro. I then shut down, removed the HD and turned my desktop back on. I then receive the Error 15 notification while booting, and don't know how to solve this problem. I've tried sudo update-grub, but I get a notification that the terminal can't find it. Would it be safe to delete anything concerning the GRUB from my primary OS system files?

View 2 Replies View Related

General :: Protect Hard Disk Data From A Live Cd?

Aug 9, 2010

Risk to native OS from Live CD?

when booted from linux live cd, all partitions of hard disk become accessible without any restriction. How to block this?

View 2 Replies View Related

General :: Compress And Backup Data In Hard Disk

Apr 30, 2011

My hard disk is failing and I amnot able to boot into the system! Currently I have logged into the system uing Live CD! Any way to compress and back up the data in my hard disk in an efficient way!

View 6 Replies View Related

General :: Mount 2nd Hard Disk Without Erasing Data?

Jan 26, 2010

Is it possible to mount a 2nd hard disk without erasing the data that is already on it? If so, what command must I enter. The system recognizes that the disk is there, I just can't access the data because it hasn't been mounted.

View 5 Replies View Related

General :: Retrieve Windows Data From Hard Disk

Sep 29, 2010

I have 2 hard disks and all together I created 6 partion in it.On primary I installed Windows XP and REST 5 partions were having data.From Second hard disk ,I copied all the first partion data to another partions and installed Red Hat 7.It took only 3 GB all togethr for Linux Distribution.Now I need to fetch my Windows data back.I logged from the Windows XP disk and I could see the second disk through disk managemnt .But it was showing "Unhelathy".But I will not be able to retrive the data.So can Anyone give soln for this.

View 2 Replies View Related

Hardware :: Transfer Data From One Hard Drive To Another?

Oct 3, 2009

Im using rhl 5 on my new hard drive,i want to transfer data from my older hardrive (which has windows xp installed,one partition has fat32 and another has ntfs filesystem) to the new hardrive...

View 3 Replies View Related

Ubuntu Installation :: Transfer All The Data From Old Hard Drive To The New One?

Aug 30, 2010

i have a 200gb hard drive and im upgrading to a 1tb hard drive and i want all my stuff like settings and files on my new hard drive whats the best and easiest way to transfer all my stuff from the old hard drive to the new one

View 9 Replies View Related

Hardware :: Master Hard Disk Error After Installing Ubuntu 8.10 / Hard Disk Died

Apr 8, 2009

after installing Ubuntu on one WD 500 GB hard disk and after making mistake and pasting wrong code into Terminal:my OTHER WD 500 GB hard disk that was also in the system (I guess it was "hd1") - died.The problem must be, I guess, I typed wrong code: "hd1,1" instead of "hd0,0".)500 GB (NTFS) of data was on that other (non-Ubuntu) hard disk, and now I can not access it anymore. While booting, system gives "Hard Disk Error" warning and stops.One again: I installed Ubuntu od one hard disk and at the end of instalation I pasted wrong code for GRUB, giving address of another hard disk. Now that other hard disk has error and will not work

View 3 Replies View Related

Fedora :: Requires Root Password When Accessing Second Windows Hard Disk?

Aug 28, 2010

I have a second hard disk which has windows and C and D drives partitions. When I boot fedora 13, fedora automatically mounts them as 53 Gb Filessytem and 200 GB Filessytem. But when i try to browse to these filesystem, fedora ask me root password. How I can configure fedora so that it does not ask me root password and this change should be permanent ( surving computer shutdown and restart) ? I want these windows partitions to be reachable by me as the non-root user.Also given /dev/sdb (the windows disk) what is the command line to find out the filesytem path to which various paritions on /dev/sdb are mapped to?

View 2 Replies View Related

Server :: Copy Of IBM Server Hard Disk Data To Another USB External Hard Disk?

Sep 1, 2009

Copy of IBM Server hard disk data to Another USB External Hard disk?

View 2 Replies View Related

Ubuntu :: 10.04 64bit And Hard Disk Transfer Rate On A Toshiba Satellite P300-19F Laptop

Aug 17, 2010

I would like to know if it is normal to experience 10MB/s data transfer rates during copying between partitions on my local hard drives (Toshiba 250GB 5400rpm SATA) while having three times faster (30MB/s) transfer rates between local partitions and USB drives (Kingston 8GB).

View 9 Replies View Related

General :: Changing GRUB From An External Hard Disk To The Internal Hard Disk?

May 14, 2010

I had a dual boot (windows 7 + debian), both of them installed in my internal hard disk, with the GRUB in it. I have recently installed a second linux distro (mint), but I put it in an external hard disk. Now the GRUB allows me to boot any of the three operating systems, but I need the external disk to do it. It seems that after the mint installation the GRUB is now working from the external disk (if the external disk is not connected, the machine does not boot.) �Is there a way to change the location of the GRUB, to the internal hard disk of my laptop?

View 2 Replies View Related

Fedora :: Hard Disk Data Form?

Jul 1, 2010

When we copy a sector to a file like using dd command, the data in the file is of which format? and of which type of conversion is nesessary to see the data in read able formate. i have tryed the ASCII conversion in dd command but still the data is in un-readable format. and also tell that if i access hard disk sector's data using c language program and copy data to a file then which type of conversion should i do ?

View 7 Replies View Related

Ubuntu :: Transferring Data From Hard Disk?

May 30, 2011

I was dual booting Ubuntu 8.10 and Windows Vista on a Acer Aspire 5920. My laptop went for service and the company said they will give me a fresh laptop instead of the one I am using now for they cannot set it right.

When I plugged in my hard disk through an external cable onto a windows machine it detected only the data present (which is almost negligible in my case) in the vista partition. I would like to transfer all the data I have from hard disk at least the one in the Ubuntu 8.10 to my new laptop on which I plan to run Ubuntu. Can someone guide me on how to go about doing it? Also is it possible to transfer all the installed softwares so that they start running in the new laptop without any extra effort?

View 9 Replies View Related

Hardware :: Recovering Data From A Fried Hard Disk

Jul 16, 2010

I learned a couple of days ago why you should do regular backups. Left my laptop working for the day in hot weather. When I came back it had crashed. On reboot it no longer booted up. I could still access the BIOS and boot from alternative media but not from the hard drive. The laptop tried to access the hard disk for a couple of minutes (hard drive light was blinking) and then failed. I made an ubuntu live usb stick and am currently working from there, trying to access my hard drive so I could image my data on another disk before sending the laptop for repairs. All my data is on that disk including my passwords and the password for this site conveniently so I had to register a new account to post this thread.

The laptop is IBM Thinkpad X41. The hard drive is accessed during when boot options are presented, again when the live cd boots up and determines the hardware available and also when manually probing for hard disks using the script below. The hard disk however does not show up in dev. If I could get so far to get it there, I could use dd_rescue to image it away. My hope lies in that the drive still spins up and is accessed producing error messages, however indicating that the system still knows it exists. Excerpt from dmesg concerning the drive:

[Code].....

View 5 Replies View Related

Fedora :: Hard Disk Data Recovery Of Ext2 And Ext3

Jul 1, 2010

I am student of MCS and working on final project. I am the user of windows xp. I am new in Linux. I am working on a project that titles "Hard disk data Recovery of ext2 and ext3 in linux". In windows, including dos.h and bios.h header files in program of c language I can send interrupt to bios and access most of the devices like parallel port, hard disks etc. But problem is that there is no bios.h and dos.h files in gcc. Now how can I access my hard drive using c program. How can I call int13h interrupt in linux or there is any other function in the linux to access the hard disk. In fact I want to access sectors of my hard disk using c language program. How can I do it?

View 2 Replies View Related

Ubuntu Installation :: Partition Second Hard Disk For Use As Backup Data

Sep 29, 2010

My primary drive is 250GB and has the root, home and var (I'd read it's good to put var on a separate partition for MythTV which I'm planning on doing) on separate partitions. I have a second 1TB drive that I'll be using to backup the 250GB drive and also host less critical data. I've created two partitions on this drive, one 250GB and the other covering the rest of the drive. I'd like to move the Videos directory out of Home on the 250GB onto the 1TB drive but can't find a definitive way of doing this. Should I just follow this guide for moving the home folder to a new partition? Next question is when performing a backup of the 250GB drive how do I make sure it's going to the 250GB partition on the 1TB drive? Can the different partitions be mounted separately?

View 2 Replies View Related

Ubuntu Servers :: Hard Disk Filling Up \ Mount /var/log/data To New HDD?

Mar 16, 2011

I have a directory /var/log/data its about 80 GB,It filling up quit rapidly.I don't have much space left in the system them So i will attaching another External HDD.My question is that i need to mount /var/log/data to new HDD.So i have old data and pulse new coming up.I don't want to copy data from /var/log/data then mount new HDD to /var/log/data you know what i am taking about is there a simple way like linking or any other.

View 4 Replies View Related

Red Hat / Fedora :: Retrieve Data From Hard Disk After Installation On The System?

Aug 17, 2009

I have never used Linux before and know nothing about it . But my cousin installed a Fedoro linux CD on my laptop which previously had Lotus symphony . Unfortunately my laptop had single partition and so Linux overrode the old OS ,ie lotus symphony .

I have some critical data on my hard disk but I have no clue how to take backup this data using Linux . I desparately need this data .

Could somebody let me know how I can access this data and take the backup ?

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

Fedora :: 13 Windows 7 Dualboot And Hard Disk - Complete Loss Of All My Data

Oct 11, 2010

Last time I installed Ubuntu in a dualboot configuration with Win7 on one of my machines, my entire boot sector and Windows install got corrupted, resulting in a complete loss of all my data and requiring a fresh install of Windows.

I looked into this a bit after the fact, and it seemed to me it was due to conflicting hard disk geometry between Linux and Windows.

My question is, how likely is this to happen with Fedora? Is this because of Ubuntu? A bad install? Is there someway I can avoid this from happening when I install Fedora if it will happen?

View 1 Replies View Related

OpenSUSE Install :: Ubuntu In Dualboot Without Losing Any Data On Hard Disk?

Jul 2, 2010

How to install openSUSE with Ubuntu in dualboot? I have Ubuntu 10.04 and i want to install openSUSE 11.2 without losing any data on hard disk.

View 4 Replies View Related

General :: Use Hard Disk Image Like A Regular Hard Disk?

Apr 6, 2010

If you have a hard disk image (including partition table, multiple partitions,...), is it possible to let Linux treat it as a regular hard disk?

By "regular hard disk" I mean I would like to have the image show up as, for instance, /dev/hdx and its partitions as /dev/hdx1,...

(I know I can mount one of the partitions in the image using "mount -o loop,offset=x ..." but I don't really like this option.)

View 2 Replies View Related

Ubuntu :: 10GB Of Data Overwritten In NTFS Partition - Hard Disk Safe

Jul 22, 2011

So the first 10Gb of a 450GB NTFS partition have just accidently been written over with an Ext4 filesystem that spans the entire partition instead. all foolishness asside, what can be repaired. Now I know Ext4 likes to jot bits of meta-data down (inodes blocks) along the way, and this can be about 5% of drive capacity, that said, there's alot of small text files and stuff, coe files so forth that can surely be recovered

I've looked into magicrescue and testdisk, but they fall into the only two groups to exist:
1) Filesystem independent, that is search almost like a patern - well exactly like a pattern match, to find the header and footer of files.
2) Filesystem recovery tools, like, damaged bootsector, so forth

I need one, that will be able to extract files, Iunderstand this will be a hard task, but.... text files; surely that'll be easy, anyway. This is my backup drive, they''re both WD you see, anyway. This is important, given the coding is ASCII surely.

View 4 Replies View Related

CentOS 5 Hardware :: Hard Disk Crash / Data Recovery In RAID1 Webhosting Server

Feb 1, 2011

We have had a hardisk crash in our RAID1 webhosting server running CentOS5 and Plesk. We first realized something was wrong when our main site didn't load but showed MySQL errors. We then found out that the system was in read-only state. Something that also happened the day before yesterday, but we could fix with a FSCK. Then the system worked well til around 18 hours later when it crashed with the same sympoms. So, we rebooted the server and wanted to do a filesystem check again. But the HDD wouldnt even load. It was gone. Unfortunatelly it was not realized that the second disk in the system was also not working any more for some time now. Fortunatelly we had our main site backed up externally though. So we could re-install a fresh box and mounted the two drives to the system. We checked the harddisk. One is practically empty (the older one), the other has almost only files in 'lost + found' but these are all "numbered", no real filenames or so.

View 2 Replies View Related

General :: Accessing Data Under A Mount Point?

Apr 10, 2010

I'm using ext3 and I have my / partition on sda3. This is a full install, it has /bin /home etc etc on it, the only thing I have is sda1 is /boot and sda2 is swap.

I've configured my system to mount sda4 as /home/user as the system boots up, which puts all of my data on sda4.

My question is this. How do I access any data left in (sda3) /home/user? (Because trying that won't work). Is there some way to use a direct path? Like /device/sda3/home/user?

View 1 Replies View Related

General :: Data Transfers After The Transfer Is Completed?

Jul 30, 2010

For example I am copying data to USB-flash drive using some file manager. When the file manager shows that transfer is complete, flash drive indicator continues to light. As far as I know this is some kind of caching system...

1. Is it OK to close file manager when transfer window is closed but the flash drive indicator continues to light (data is still being copied)?

2. Is it better if I turn off this caching technology?

View 1 Replies View Related







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