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


ADVERTISEMENT

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 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

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

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

General :: Mount From The Old Hard Disk To The New Hard Disk

Jun 30, 2010

mount from the old hdd to the new hdd i mean (Hard disk)

View 2 Replies View Related

General :: Accessing Secondary Hard Drive With Knoppix

Apr 5, 2011

I am working on a computer that the hard drive crashed. Inititially they had a virus, reloaded windows, and had the computer up and running. When downloading software it crashed and will not boot. I have tried all the numerous routine fixes with no success including using the repair discs. The repair discs no longer work and they are unable to get a second set. As a last resort I am able to access the hard drive when booting from Knoppix from a CD. There are a couple things I would like to try from Knoppix, but do not know if it is possible. First, Is it possible to load the boot files from knoppix? Second, can you roll back the drivers from knoppix?

View 1 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

General :: Method To Find Time For Accessing A Block From Disk?

Nov 23, 2010

Is there any way to find the time required for accessing a block
from disk?

View 1 Replies View Related

Ubuntu Installation :: Copy Hard Disk Have 10.04 And Ext4 To 1000 Hard Disk?

Sep 23, 2010

I want to copy hard disk have ubuntu 10.04 and ext4 to 1000 hard disk for new 1000

View 2 Replies View Related

Hardware :: Adding Second Hard Disk With Windows To Boot With Grub On First Hard Disk

Jul 7, 2009

I have a sata 320 gb with mandriva linux 2009.1 on it.And it is what curently atached to my cpu. It is shown as 'sda' in the partition table.I also have another 40gb hard disk with windows xp installed on it.It is shown as 'hda' in the partition table . Now what i want to do is attach this 40gb hard disk to my pc and configure grub on my 320gb hard disk('sda') so as to boot windows xp(which is residing on the second hard disk,'hda')Can anyone tell me if what im doing is feasible or not? If it is feasible,can anyone suggest me how to get it working. I know i just need to add 2-3 lines to my grub.conf, but dont know what exactly i need to write.

View 3 Replies View Related

Hardware :: Check Hard Disk For Errors. Possible Hard Disk Failure?

Jun 21, 2011

I was using Terminal and browsing a directory in my home folder. My "home" directory is located on "/dev/sdb1". When in Terminal I typed "ls" in one of my directories and the output was garbage. The output didn't show the files in the directory. I think it said something like, "input/output error". Unfortunately, I didn't write the exact error down. Instead I rebooted.The hard disk with the problem is:

Code:
$ sudo hdparm -I /dev/sdb
[sudo] password for brian:

[code]...

View 6 Replies View Related

Fedora Servers :: Web Interface For Accessing Files

Jan 18, 2010

I've set up a FTP server, but now I would also give the ability to users to access file through a web interface, like the ones you can find in many NAS.I there anyone that knows a software that do this? I can't find nothing useful.

View 5 Replies View Related

Networking :: Accessing Low Level Network Interface

Jul 7, 2010

I would like be able to access packets coming off the network with the hopes of coding a primitive packet sniffer for learning purposes. I would also like to be able to piece together my own packets and send them out on my network. Eventually, I would also like to write a simple firewall so I want the capability to drop packets as well as let them pass. I assume I will have to access the kernel with some system calls to do this, any one have any information or resources that could help me on this project?

View 1 Replies View Related

Fedora :: Stale File Handle - Accessing WLAN0 Interface?

Mar 22, 2010

I've got a problem while accessing the /etc/sysconfig/network-scripts/ifcfg-wlan0 file, CLI's throwing: "Stale File Handle" - there's no access to this file. Problem is the same regardless wlan0 interface is up or down.

View 2 Replies View Related

General :: Finding A Tool That Will Detect Whether Having A SATA Or A PATA Hard Drive Interface?

May 18, 2010

Is there a tool for Ubuntu that will detect whether I have a SATA or a PATA hard drive interface, even if there's no hard drive inserted?

View 3 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

General :: Best Way To Shutdown Hard Disk?

Oct 6, 2010

Right Now I'm using hdparm command in unix to shut down the hard disk but there are few issues with it.

when it wakes back up it consumes
lots power. Is there any other way
to do it?
Many times when I put my
hard disk to sleep, I can see few
bursts at the beginning and then
after a while it goes to sleep. I
think its because of the journaling
system in ubuntu (which I use) Have
anybody encountered that?
What would
be the best linux/unix operating
system (eg: ubuntu/centos/redhat) to
work on extensive hard disk
operations?

View 3 Replies View Related

General :: Use ATA Security On A Hard Disk?

Oct 28, 2010

My SSD HD supports ATA Security. Does Macbook EFI and linux support it? I know hdparm does. Who will do the unlock at each bootup? Can I still set a password without erasing the disk?

Update: removed "SED full hard disk encryption" from the title based on comment by @ataboy. Some might still refer to this ATA security incorrectly as "encryption" however.

View 2 Replies View Related

General :: Hard Disk Imaging ?

Jan 27, 2011

I need to take an image from my laptop hard disk which has Linux SUSE installed , and I want to restore the image to another laptop (which is the same as mine). how can I do this ? in Windows environment , many programs can do this easily , but I don't know how to do this in Linux .

View 5 Replies View Related

General :: Cannot Write Into Hard Disk

Mar 17, 2010

Well appears to be that i have two partitions..one of 300gb i did on windows time ago and one of 100gb where i place my DEBIAN LENNY 5.0, the problem is that i cannot write into it..only i can copy stuff from it.

View 13 Replies View Related

General :: How To See Partitioned Hard Disk

Nov 18, 2010

I have just installed linux mint. original os was win vista and 3 hard disk partitions but after installing the partitions cant be seen and neither can be accessed.

View 2 Replies View Related

CentOS 5 :: Accessing USB Hard Drive Via VNC?

Aug 8, 2010

I have set up VNC on my Centos5 Server via the instructions here:

[URL]

I am able to log in via VNC through a browser (on my Window laptop), however when I try to access my USB hard drive on the Centos Server, it says:

Error org.freedesktop.DBus.Error.AccessDenied

Does anyone know of any step by step instructions so that I can be able to access my USB Hard drive?

I have found a few posts on the internet about this, however the fixes are either vague/hard to understand etc?

View 2 Replies View Related

General :: Make PHP Script Use The Second Hard-disk?

May 9, 2011

I have two SATA hard-disk drives attached to my server as shown in the following :

[root@cl-185 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 222G 166G 45G 79% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
[root@cl-185 /]# fdisk -l | grep Disk
Disk /dev/sda: 250.0 GB, 250000000000 bytes
Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes

Now, being a linux noob I need help on two questions :

1). Why only 'sda1' is shown when using df -h to get disk space usage, and what else needs to be done to check stats for 'sdb' ?

2). My PHP script needs to save a lot of 'cache' files, how to make the script use the second disk for saving the files - I mean what path should I edit in my script (current is '/var/www/html/tmp')

View 2 Replies View Related

General :: Make The Partitions On The Hard Disk?

Jan 4, 2010

I want to make the transition from windows (sick of it). Im using Lenovo G530 Laptop and was wondering which would be the best Linux Os (meaning Ubuntu, fedora or something else). Keep in mind that I mostly use my laptop for college work and a lot of video and audio editing. I also want to be able to run Dual operating system (meaning that I wanna run both Linux and Windows) from the same computer as it might be easier for me to make the transition a little bit more easier. That being said I need someone to give me tutorials (video preferred) on how to make the partitions on the hard disk and step by step instruction on how to install both the two OS in my laptop.

View 3 Replies View Related

General :: Creating Image Of Hard Disk

Jul 28, 2010

I am new to the Linux world and I am not sure if what I am trying to do is achievable or not. I am trying to make an image of my existing drives running Linux on a USB and I want to use the same image off the USB to clone more bootable hard drives. Something like what Ghost does in windows. The problem is using 'dd' the image is too big ( I have 1tb drives ) and then I am not sure how to convert these images back on to new drives so that they boot in the OS as well. i am not sure if there is a utility that would let you do that?

View 2 Replies View Related

General :: Dual Booting From 2nd Hard Disk

Apr 28, 2010

I have 2 IDE drives, Windows XP is on the Master drive & Fedora 12 is on a partition the other drive. I purposely installed the Linux boot loader on the same drive as Fedora because want to use NTLDR as the primary boot loader. According to a guide I found [URL], I should be able to copy the Linux boot sector to a file & put that copy on the Windows drive & then modify boot.ini, so I am prompted to with an OS choice a startup.

The problem is the command the guide gives to copy the Linux boot sector (dd if=/dev/hdb1 of=bootsect.lnx size=512 count=1) has outdated syntax and does not work. What syntax would make this command work in Fedora 12? Another guide I found ([URL]-vista-already) suggested using: Grub4Dos & modifying boot.ini. This method almost worked until grub gave an error that there was no kernel loaded. What would I type into the grub prompt to load the kernel? How would I automate the loading of the kernel, so I don't have to specify the kernel each time?

View 6 Replies View Related

General :: Boot Iso Image From Hard Disk?

May 17, 2010

How to boot an iso image from hard disk. I have created a linux live cd with remastersys. I want to test it. So I want to boot it from my hard disk.

View 3 Replies View Related

General :: Can Install Puppy From Hard Disk

Aug 31, 2010

My old laptop has no cdrom, no usb,no floppy unit...is it possible to install puppy linux?

View 3 Replies View Related

General :: Dual Boot PC With Two Hard Disk?

Aug 17, 2010

I am having 2 Hard Disk 1 is having RHEL 5 Installed And 2nd is having Windows XP, now i want to dual boot my PC with the help of this two Hard Disk? Can i Dual Boot with RHEL & Win XP having Installed in 2 different HD? what is the Procedure?

View 4 Replies View Related







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