Software :: Using Command-line To Tell If A Drive Is 3.5/2.5 And Ide/sata/pata?

Jul 22, 2011

Anyone know if there is a way of detecting if a hard drive is 3.5/2.5 and ide/sata/pata from within a script?

View 3 Replies


ADVERTISEMENT

OpenSUSE Hardware :: Install Sata And Clone Pata Hard Drive?

May 20, 2010

I recognize the obvious need to back up the contents and follow a certain duty of care before attempting to clone my failing pata 250g HD to a 1 tera byte sata. What problems if any could come up when cloning from a failing pata to a sata HD? I'd like to make the switch to sata for many reasons if possible. It is indicated that the HP d530 sff here supports both types.

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

OpenSUSE Hardware :: DVD ROM - Switch From SATA To PATA?

Sep 3, 2010

I am out of SATA headers on my motherboard. The only way I can free one up is by switching my SATA DVD ROM to a PATA. How much trouble with this create with software that is linked to the DVD ROM? Will openSUSE 11.3 handle this gracefully or will I just be creating problems?

View 2 Replies View Related

Ubuntu :: Jumper Settings For PATA CD And DVD And And SATA HDD?

Oct 30, 2010

A friend wants to dump his Windows XP system so that I can install Ubuntu 10.04. His PC has a PATA CD R/W drive and a PATA DVD R/W drive on the only single channel. It has a SATA HDD. The PC BIOS will not allow me to change the order of drives to boot from, only shows the CD R/W drive first then the SATA HDD and will only boot from the HDD. I tried getting the PC to boot from the CD or DVD drive so that I could install Ubuntu from a live Ubuntu CD by disconnecting the power to the HDD, This did not work.

With a live Ubuntu flash drive connected the BIOS does not allow me to change the boot order to boot from the flash drive. I was able to boot from a live Ubuntu flash drive by disconnecting the HDD power. I then quickly hot plugged the power to the HDD so that the Ubuntu installation process could use it. But the installation of Ubuntu did not proceed, probably because it was too late to have the HDD recognised. I suspect that the jumper settings on the CD and DVD drive are such that they are unbootable.

View 2 Replies View Related

Ubuntu Servers :: SATA/PATA - Permission Denied

Apr 18, 2010

I'm currently running Karmic on a old Dell Pentium 4, and I am having trouble copying files to this box from my laptop which is running Linux Mint Helena. I am able to see and connect to the shared directory on the Dell, copy and execute files from there, but cannot write to it. The permissions have been set to 777 on the shared directory and sub directories within that. The older Dell has a PATA hard disk, 300gb, while my newer laptop has a SATA hard disk. I've read that this can be a problem, and permissions may not be recognized? I'm not able to connect to the laptop from the Dell, neither of the administrator logins work, though I maybe need to do this as root?

Here is the smb.conf file I am running on both machines:

I want to be able to write to my server, not just read and execute. I am also not able to write to the server when logged on to a windows machine on the same network.

View 2 Replies View Related

Hardware :: SATA And PATA Devices In Same Desktop Tower?

Nov 1, 2010

My IBM IntelliStation M Pro desktop tower has IDE hardware: CD burner and CD player. My computer (which is ~ 6 years old I think) has an unused SATA power plug end and an unused SATA data transfer port so I thought I'd buy a SATA DVD burner/CD burner combo to replace the PATA CD burner. But I read the following line at Wikipedia and wonder exactly what it means:

en.wikipedia.org/wiki/Serial_ATA "Backward and forward compatibility- SATA and PATA At the device level, SATA and PATA (Parallel AT Attachment) devices remain completely incompatible�they cannot be interconnected......" What does that 'interconnected' really mean? Can I have my 2 IDE hard drives and my IDE CD player play nicely with a SATA DVD burner/CD combo burner? [My OS is MEPIS 8.5]

View 8 Replies View Related

CentOS 5 Hardware :: Marvell 88SE6121 SATA II / PATA Controller

Sep 29, 2009

On an Asus P5Q motherboard, CentOS 5.3 x64. (Separate thread as the other one has turned into just a discussion on my lm_sensors issue). The motherboard's primary SATA controller is the Intel P45 chipset. 6 ports, set to AHCI in BIOS, and all works a charm. Attached are 6 x SATA drives (2 x OS, 3 x data RAID5, 1 x backup). There is also a Marvell chip that provides PATA and also an underlying SATA chip (2 ports) that can do what Asus call Drive Xpert (stripe or mirror RAID) or be set to just standard SATA ports.

It's a SIL5723 behind what CentOS sees as "03:00.0 IDE interface: Marvell Technology Group Ltd. 88SE6121 SATA II Controller (rev b2)". Physically the Marvell has only a single optical drive attached to its PATA interface. CentOS has loaded marvell_pata (I assume for the PATA side of it) but I have no /dev/cdrom or /dev/dvd so no optical drive CentOS is trying to use 'ahci' for the Marvell's SATA ports. Dmesg tells me that when it 'sees' them as it boots:

scsi6 : ahci
scsi7 : ahci
scsi8 : ahci
ata7: SATA max UDMA/133 abar m1024@0xfeaffc00 port 0xfeaffd00 irq 16
ata8: SATA max UDMA/133 abar m1024@0xfeaffc00 port 0xfeaffd80 irq 16
ata9: DUMMY

It attempts to read SATA drives attached to it, but it just errors trying to access them on boot (e.g. "ata7: failed to recover some devices, retrying in 5 secs" etc). I need the extra SATA ports, and I could really do with having a usable CDROM drive. I found a driver for the Marvell 88SE6121 from Asus. But the latest driver in that is for what it calls "RHEL 50.2" and the script fails with a "Generic Protection Error". That driver looks for kernel "2.6.18-92.el5" in its base_ver variable in the script. Changing the base ver to -128 doesn't help. I have uploaded the driver for if [URL]. Is that modifiable to work on 5.3 / soon to be 5.4?

View 12 Replies View Related

OpenSUSE :: KDE-new & Recent Devices-widget-bad Behavior After Optical PATA-SATA Swap

Feb 2, 2011

openSUSE 11.3, 2.6.34.7-0.7-desktop, KDE 4.4.x, 3.0-P4, 2.5g mem. I replaced PATA-OEM optical drive with SATA-OEM works fine with all apps outside of and except with this widget. No problems until the swap. I have performed some updates and I have not put the PATA drive back in to see if the behavior changed because it was failing. It could be an update but the optical drive swap is my first suspect. This now. If I hover cursor over notifier widget icon "last plugged in device" will pop up with accurate last device until a click on the widget icon and selection of action for the recently plugged in device. Selected actions work fine ... once.

Then it no longer updates the new or retains the previous DVD/CD (or any USB external drive when connected) entry. Closing after viewing but with out selecting an action results in an empty list also. The menu remains empty there after and only removal of the widget and reinstall makes the devices appear again ... once. Then the behavior repeats if the widget is removed and reinstalled. I was wondering if this is likely to be a udev/rules.d problem related to the swap of the optical drives? The 70-persistant-cd.rules file shows two cd's after the swap:

[Code]...

If I delete or rename the 70-persistant-cd.rules file in udev/rules.d will it truly be recreated at boot and might it this fix the issue? Should I look elsewhere first at some var logs for errors? Reinstall 11.3 and let auto detect and config sort it out is also and option but I'd rather not, heh.

View 2 Replies View Related

Hardware :: SATA / PATA Fake RAID Highpoint 1640 Slow In Writing

Oct 20, 2010

I've been, for some years, an happy user of Highpoint HPT374 based RAID cards, using RAID 5 with decent performances (constantly around 90 MB/sec in read, and 60 MB/sec in write ). Old Athlon mobo , with 2.6.8 kernel. Now the mobo is dead, so I've got an Asrock A330GC (dual proc with 4giga ram), installed Debian with kernel 2.6.26 and moved the controller and disks , and the performances have dropped to a painful 9 MB/sec in write, measured with dd of a huge file (interrupted with kill -USR1 [pidof dd]).

Read performances are still around 90MB/sec, using hdparm -t , repeated many times , figures are constantly around 90MB/sec. I suspect some libata issue , in old kernel the raid was seen as hdb, now is sdb, some driver(s) of the PATA disks may be responsible. I've used the driver, from Highpoint v2.19 , the latest driver is broken (causes kernel oops during format of raid), I've informed Highpoint.

Here some info :
hdparm -i /dev/sdb :
HDIO_GET_IDENTITY failed: invalid argument .

lspci :
00:00.0 Host bridge: Intel Corporation 82945G/GZ/P/PL Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82945G/GZ Integrated Graphics Controller (rev 02)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 01)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 01) .....

View 2 Replies View Related

Fedora Installation :: Moving FC10 From SATA To PATA - Unable To Access Resume Device

Jan 26, 2010

I'm trying to move an existing FC10 install (created by someone else) from a 160GB WD1600AAJS SATA disk to a 160GB WD1600AAJB PATA disk (cursed trend of horizontally mounting SATA connectors at the end of the motherboard means the latest rev mobo doesn't fit in our enclosure!). I've used DD to copy the disk image from one to the other, but when attempting to boot, I get the following error:

Code:

Unable to access resume device (UUID=946f216f-0c24-4b02-a996-f42059970de7)
mount: error mounting /dev/root on /sysroot as ext3: no such file or directory

That particular UUID maps to sda2, which is the swap partition. Interestingly, both the SATA and PATA disk come up as /dev/sda on the motherboard. I kind of grok that the UUIDs are substitutes for directly naming the disks, and that they're referred to in fstab, initrd-2.6.27.12-170.2.5.fc10.i686.img, and in /dev/disk/by-* I'm guessing the problem is that the GUIDs (at least the one for swap) are no longer the same. How are they assigned to the partitions during boot?

I tried doing

Code:

swapoff -a
mkswap /dev/sda2
swapon -a

and put that new GUID in fstab and into initrd-* (using some steps I found elsewhere on how to gunzip/rezip it).At that point, I get a kernel panic on boot

Code:

Kernel panic - not syncing: CFS: Unable to mount root fs on unknown-block(0,0)

So I'm guessing that the other UUUDs have changed as well and I need to update them. How would I figure out what they are? I suppose I could change the references to /dev/sda*, but I didn't build this original image and I'm thinking whoever did had a good reason to go with UUIDs.

View 10 Replies View Related

Hardware :: PATA Socket Was Replaced With SATA Socket / Transfer Rate Of The Harddisk Would Be SATA Transfer Rate?

Jul 4, 2010

My friend bought an old hard drive. He noticed something with the hard drive that it was just replaced with a SATA socket. So meaning, the SATA socket was soldered to the PATA hard disk to replace the PATA socket to SATA socket to make it a SATA.

Now the question is:

1. Does the Transfer Rate of the harddisk (that has been replaced from PATA socket to SATA socket) would be SATA transfer rate? OR would still be PATA transfer rate?

View 4 Replies View Related

Ubuntu Installation :: Ubunto 8.04 Cannot Detect Sata Hard Drive Or Sata Drive Cdrw?

May 28, 2011

ubuntu 8.04 server can not detect seagate sata hard drive 2tb or sata Lg dvdrw x22 sata drive .is it possible to install it without buying a pci ide sata card?is it possible to get a driver for sata driver and sata drive that can be recognise by ubunto 8.04 server ?or to get the files for 1.44 floppy diskdoes the late edition of unbutu recognise sate hdd and sata cdrw drive automaticly during the installation of the unbutu?

View 1 Replies View Related

Ubuntu :: Mount Usb Drive From Command Line?

Apr 1, 2010

I used to be able to mount usb media such as a digital camera like this:

mount -t vfat /dev/sdb1 /media/usbdisk

After upgrading to karmic, it no longer works. I get this error:

mount: special device /dev/sdb1 does not exist

Here's what I have in /dev:

Code:
adsp cpu_dma_latency hpet loop6 null pts ram3 rtc0 shm tty1 tty19 tty28 tty37 tty46 tty55 tty7 usbmon0 vcs7 vcsa8
audio disk input loop7 nvidia0 ram0 ram4

[Code].....

View 9 Replies View Related

Ubuntu :: Copy A Hard Drive From Command Line?

May 4, 2011

Ubuntu is getting stuck at the loading screen after an aborted attempt to upgrade to 11.04. It's my own fault - the install was running out of room on /, and I, like an idiot, decided to delete some package files under /var/something/archive, thinking they were "old"... I quickly realized they were in fact the new packages being installed... anyway after killing the thing and rebooting it is pretty damn broken (mostly because I can't get networking going so running in dpkg repair mode doesn't do much because, well, I deleted the packages).

I want to copy all the files off my /home and other meaningful partitions onto an external drive so I can just do a clean install. I can actually login to the command line under recovery mode, but I can't get the GUI started. I know it's possible to copy the contents of the partitions to an external

View 9 Replies View Related

General :: Command-line Distor Off USB Flash Drive?

Jan 19, 2011

I have a 32GB flash drive that I want to:- Have an installation o with no X-terminal. Only command-line.- Be bootable by plugging into any computer and turning that computer on.My wishes are strictly for writing purposes. I want to write in a minimal environment where there's no distraction by other programs or Internet. I don't care what programs exist on the linux distro as long as it has a text-editor.Please tell me how to proceed. What linux distro I should get. How to install it on a USB stick. Anything I need to know.

View 11 Replies View Related

General :: Mount Usb Drive In Command Line IN UBUNTU?

Mar 15, 2010

want to copy a file from my desktop to usb drive in command line...how can i do it...i have no gui interface..all i want to do it by command line.i.e how to mount the usb drive and copy the file to usb and then unmount it..i also want to access windows xp drive from linux in command line without gui interface...in opensuse there is windows folder under file system but in ubuntu there is no such option...so if i want to place a file from linux to windows drive such as d ..how can i manage it with command line...no gui interface is available...

View 1 Replies View Related

Ubuntu :: Mounting A Hard Drive With Options On Command-line?

Sep 3, 2010

I have a working fstab entry:

Quote:

/dev/sdc1 /media/sdc vfat rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,s hortname=mixed,dmask=0077,utf8=1,flush 0 0

But how do I mount the sdc drive with those options from the command-line without restarting? I've tried to do so with 'mount' utility, but had no luck.

View 1 Replies View Related

General :: Moving A File To The Root Of The Drive Via Command Line

Oct 17, 2010

How can I move a directory to the root of a drive via command line?

In MS-DOS it would be 'move C:/GAMES/QUAKE C:/'

What is the equivilent in Linux?

View 8 Replies View Related

General :: Command Line - Count Number Of Folders In A Drive Using System?

Apr 9, 2010

I need to organise an external HDD such that there is no more than 500 folders on it.

Ubuntu's "Properties" pane shows only the file count, not the folder count.

Is there a simple CLI line that will tell me the number of subdirectories?

View 3 Replies View Related

Ubuntu Multimedia :: RipperX Command Line Parameters Selecting Which Drive?

May 28, 2011

with the current Musicbrainz fiasco with Rythmbox and Sound Juicer I am now using RipperX. I like RipperX, but I would like to know if there are any command line parameters or some way of selecting the CD/DVD drive. It appears that RipperX can multi-task which would save me some time.

View 1 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related

Software :: Hard Drive Missing - Giving Grub Safety Command Line

Feb 5, 2011

I've been dual-booting win7 and ubuntu on my comp for a while, but didn't bother updating grub. I just updated to grub 2, but it wouldn't let me boot and said my hard drive was missing, also giving me a grub safety command line.

View 3 Replies View Related

Hardware :: Can SATA 3 (SATA III) Hard Disk Be Run On Motherboard Which Only Support SATA II

Aug 13, 2010

Can SATA 3 (SATA III) Hard disk be run on motherboard which only supports SATA II, except sacrificing the speed (throughput)?

View 2 Replies View Related

Fedora :: Clone An IDE Drive To A SATA Drive?

Dec 28, 2009

would it be possible to clone an IDE hard disk (on which I installed Fedora 10) on a SATA hard disk, and that programs can succeed

View 10 Replies View Related

Ubuntu :: Command Line Alternative For "Safely Remove Drive"

Aug 9, 2011

Ubuntu Server 10.04 LTS

Is there a command line alternative to clicking on "Safely Remove Drive" in nautilus?

When I click on "Safely Remove Drive" in nautilus, the USB HDD attached (WD Elements) vanishes from the nautilus "places" list, the drive spins down, and the light on the drive dims to indicate that it is powered down.

I have tried the "umount" command as well as the "eject" command from the terminal, but they both only seem to unmount the drive, as it is still shown in the nautilus "places" list and the light on the drive stays bright.

View 4 Replies View Related

Ubuntu :: SATA II / Error "ata4: Limiting SATA Link Speed To 1.5 Gbps" - Allowing The SSD To Run At SATA II Speeds?

May 1, 2011

I keep getting this error in my log viewer every 2 seconds: Code: ata4: limiting SATA link speed to 1.5 Gbps I have a dual boot SSD and I have run many SMART tests in windows and linux, (using smartmon tools and the disk utility) and the reports are all 100% healthy..... My research shows that this error represents one of the following:

1. Problem with SATA controller
2. Changing BIOS to allow SATA
3. Changing SATA mode to PATA or AHCI
4. Replacing the SATA cable
5. Allowing the SSD to run at SATA II speeds, i.e. 3 Gbps

- Does anyone know how to try number 5, i.e. allowing the SSD to run at SATA II speeds? I am lost here and this problem has caused my machine to crash twice when watching a movie in linux/ ubuntu. (It is worth noting that the crashes have only occurred in linux and I have never had an issue in windows, so it does seem to be a linux setting somewhere, hence why I think it is a "allowing SATA II to run at correct speeds issue")

View 4 Replies View Related

Software :: Use Command Line To Split A Single-lined XML Into A Multi-line XML?

Dec 9, 2010

I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...

View 3 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related

General :: Printing Command Line History Without Line Numbers?

Aug 22, 2011

How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt

View 1 Replies View Related







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