E_sata hard disk not seen automatically (?)

Hi ;=)

I set my bios with AHCI, and plugged my external e-sata disk but i can’t see it so far in dolphin .
i also changed the policykit.conf to the following :

cat /etc/PolicyKit/PolicyKit.conf
<?xml version=“1.0” encoding=“UTF-8”?> <!-- -- XML -- →

<!DOCTYPE pkconfig PUBLIC “-//freedesktop//DTD PolicyKit Configuration 1.0//EN”
http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd”>

<!-- See the manual page PolicyKit.conf(5) for file format →
<config version=“0.1”>

<define_admin_auth group=“users”/>

<match action=“org.freedesktop.hal.storage.mount-removable”>
<return result=“yes”/>
</match>

<match user=“fabrice”>
<return result=“yes”/>
</match>

</config>

I managed to get it seen by the system (see at the end : host 5 ) but i’d like to mount it automatically.

What can i do for that in fstab ?

Thanks :wink:

echo ‘scsi add-single-device 5 0 0 0’ > /proc/scsi/scsi

linux-alzh:~ # cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD1600PD-07F Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD1600PD-07F Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: SAMSUNG HD103UJ Rev: 1AA0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
Vendor: _NEC Model: DVD_RW ND-3500AG Rev: 2.86
Type: CD-ROM ANSI SCSI revision: 05
**Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: SAMSUNG HD154UI Rev: 1AG0
Type: Direct-Access ANSI SCSI revision: 05
**

i then have this :

fabrice@linux-alzh:~> dmesg | tail -20
325.360087] sd 5:0:0:0: rejecting I/O to offline device
325.360097] sd 5:0:0:0: rejecting I/O to offline device
325.360104] ldm_validate_partition_table(): Disk read failed.
325.360109] sd 5:0:0:0: rejecting I/O to offline device
325.360118] sd 5:0:0:0: rejecting I/O to offline device
325.360130] sd 5:0:0:0: rejecting I/O to offline device
325.360139] sd 5:0:0:0: rejecting I/O to offline device
325.360148] sd 5:0:0:0: rejecting I/O to offline device
325.360159] sd 5:0:0:0: rejecting I/O to offline device
325.360168] sd 5:0:0:0: rejecting I/O to offline device
325.360177] sd 5:0:0:0: rejecting I/O to offline device
325.360186] sd 5:0:0:0: rejecting I/O to offline device
325.360192] unable to read partition table
325.360267] sd 5:0:0:0: [sde] Attached SCSI disk
325.360273] ata6.00: detaching (SCSI 5:0:0:0)
325.360404] sd 5:0:0:0: [sde] Synchronizing SCSI cache
325.363069] sd 5:0:0:0: [sde] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
325.363073] sd 5:0:0:0: [sde] Stopping disk
325.363080] sd 5:0:0:0: [sde] START_STOP FAILED
325.363082] sd 5:0:0:0: [sde] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
fabrice@linux-alzh:~>

How come the partition table is not read ?

Well is the new drive partitioned or not? What kind of partition is it if it is formatted? Have you tried to open up Yast / Partitioner and see if the drive is listed, but perhaps needs to be formatted? NTFS drives that as listed as being “Dirty” and needing to have check disk ran on them will not automount for instance. I would consider reformatting the drive as ext4 or load up windows and reformat it as NTFS unless there are important files left on the disk.

Thank You,

Hi :wink:

THe drive is NTFS, i can’t change the file system for it’s used by windows also.

the partitioner does see the disk as /dev/sde (with /dev/sde1) (yes it’s already partitioned with data on it).

yesterday # mount -t ntfs-3g /dev/sde1 /mnt/samsung was not working but today it does :open_mouth:

it told me yesterday that /dev/sde was not know , i tried /dev/sdf also , not working and now it’s working (i forgot to look at the partionner to see the path of the volume which i needed to mount).

Let me reboot for i can see the disk in dolphin but i’m not sure if it is after my mount or before that it was there.

THen what can i had to fstab to automatically mount the external e-sata disk when i switch it on ?

After rebooting pc :
switching on external disk : it’s in the partitioner and dolphin sees it but not mounted, when i click on the icon in dolphin it mounts the disk and i can use it as usual

what happened then to make dolphin see the disk when it did not yesterday ? does the manual mount helped (??)

OK, if the drive can be seen by the partitioner and the drive works OK in Windows and you want it to be auto-mounted each time you start up openSUSE and you intend on leaving it connected to the very same port location all of the time, then it is time to add it to your fstab file located in the /etc folder.

The best way to do this is to use the Partitioner to do this for you. First off, by default, the partitioner does not format or in any way mess with your partitions unless you change the defaults. Second the partitioner can be used to add an entry to auto-mount your drive in fstab and it will create the required mounting folder if it does not exist. You must decide where to mount the drive. For instance, by default, openSUSE will create a folder called /window/C for your first Windows drive. You can use the same or you could just call it /Windows, if there is only one or you could call it /Software or you could mount it in your home folder like /home/yournamehere/windows or something like that. Hopefully you get the picture that you must specify a folder name to mount your drive to somewhere and if it does not exist, the partitioner will create it for you. Next, as I said before, the partitioner will also make the right entry for you in your fstab file.

To get started in the partitioner, right click on the NTFS partition and select edit. In the partition edit window select the Mount bullet and enter the folder name (ie: /Windows or what ever you decided) and select OK. And then OK again to put your requests in the partitioner into action. That is all you need to do. After you say OK and exit the partitioner, your requests will be made for you and the drive will be mounted using the standard load options. Now, for full read and write ability for NTFS drive I normally change all of the mount options down to one entry, defaults. Here is an example of a NTFS drive mount in my fstab file. Consider your drive name will not be the same.

/dev/disk/by-id/ata-ST31000528AS_9VP1H3ZK-part1 /Windows             ntfs-3g    defaults              0 0

To edit your fstab file manually in KDE use the menu Run Command:

kdesu kwrite /etc/fstab

If you decide to change it to say defaults as I suggest, you must restart openSUSE to see them go into effect.

Thank You,

hi,

i have 2 situations in fact :

1- When everything goes all right :

When i start Suse the external disk is off.
Did you mean that it"s gonna be auto mounted when i switch the disk on ?

As mentionned above and without changing anything but things said in the 1st message above dolphin is now able to mount the disk when i switch it on.
how come when i did not touch fstab ?

2- When Things are not all right :

Also i must add that it’s not working all the time , like just now : switching on the disk does not show it anymore :frowning: (e-sata link is not stable maybe (? ) )

see that the disk is not listed in /cat/proc/scsi (it’s called SAMSUNG HD15UI) and dmesg mentions errors below

As you can see /dev/sde is not well recognized .

I have 2 external disks :

a/ one is iomega and FAT , b/ is samsung and NTFS
I need a/ often, when i switch it on it becomes /dev/sde , when i switch it off /dev/sde becomes free (using “release in a safe way” or whatever it translates in english when you use right click in the notifier applet).
After that i switch on b/ which becomes /dev/sde … i guess the system is mixing things up.

Is my guess correct ?
How can i make sure there is no mix up anymore between a/ and b/ ?

cat /proc/scsi/scsi

Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD1600PD-07F Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD1600PD-07F Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: SAMSUNG HD103UJ Rev: 1AA0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
Vendor: _NEC Model: DVD_RW ND-3500AG Rev: 2.86
Type: CD-ROM ANSI SCSI revision: 05

linux-alzh:/etc/cups # dmesg | tail -20
6999.187013] ata6: hard resetting link
6999.492378] ata6: SATA link down (SStatus 0 SControl 310)
6999.492384] ata6.00: disabled
6999.492399] sd 5:0:0:0: [sde] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
6999.492402] sd 5:0:0:0: [sde] Sense Key : Aborted Command [current] [descriptor]
6999.492406] Descriptor sense data with sense descriptors (in hex):
6999.492407] 72 0b 00 00 00 00 00 0c 00 0a 80 00 00 00 00 00
6999.492414] ae a8 7a 30
6999.492417] sd 5:0:0:0: [sde] Add. Sense: No additional sense information
6999.492421] sd 5:0:0:0: [sde] CDB: Read(10): 28 00 ae a8 7a 30 00 00 08 00
6999.492428] end_request: I/O error, dev sde, sector 2930276912
6999.492431] Buffer I/O error on device sde, logical block 366284614

6999.492443] ata6: EH complete
6999.492463] sd 5:0:0:0: rejecting I/O to offline device
6999.492472] ata6.00: detaching (SCSI 5:0:0:0)
6999.492664] sd 5:0:0:0: [sde] Synchronizing SCSI cache
6999.495479] sd 5:0:0:0: [sde] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
6999.495483] sd 5:0:0:0: [sde] Stopping disk
6999.495516] sd 5:0:0:0: [sde] START_STOP FAILED
6999.495518] sd 5:0:0:0: [sde] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK

If you want an external hard drive(s) to be mounted like your internal hard drive(s) then you must leave them turned on all of the time and add them as I suggest to your fstab file using the partitioner.

If for any reason you do not wish to leave your external drives on as long as your openSUSE computer is running, then you DO NOT add them to your fstab file and they will not work any different than they do right now.

Thank You,

*edit * :

after closing session and OS it’s not better.

I reboot and try again to add the HD to /cat/proc/scsi/scsi

echo ‘scsi add-single-device 5 0 0 0’ > /proc/scsi/scsi

** it works**

linux-alzh:~ # cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD1600PD-07F Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: ST3320620AS Rev: 3.AA
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: WDC WD1600PD-07F Rev: 05.0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: SAMSUNG HD103UJ Rev: 1AA0
Type: Direct-Access ANSI SCSI revision: 05
Host: scsi6 Channel: 00 Id: 00 Lun: 00
Vendor: _NEC Model: DVD_RW ND-3500AG Rev: 2.86
Type: CD-ROM ANSI SCSI revision: 05
Host: scsi5 Channel: 00 Id: 00 Lun: 00
Vendor: ATA Model: SAMSUNG HD154UI Rev: 1AG0
Type: Direct-Access ANSI SCSI revision: 05

** but dmesg now shows problems while reading disk partion :’( **

why is is rejected offline device ?
then partition table is not read :
ldm_validate_partition_table(): Disk read failed.
unable to read partition table

linux-alzh:~ # dmesg | tail -20
1003.912162] sd 5:0:0:0: [sde] Assuming drive cache: write through
1003.912172] sd 5:0:0:0: rejecting I/O to offline device
1003.912182] sd 5:0:0:0: rejecting I/O to offline device
1003.912189] ldm_validate_partition_table(): Disk read failed.
1003.912194] sd 5:0:0:0: rejecting I/O to offline device
1003.912203] sd 5:0:0:0: rejecting I/O to offline device
1003.912212] sd 5:0:0:0: rejecting I/O to offline device
1003.912221] sd 5:0:0:0: rejecting I/O to offline device
1003.912230] sd 5:0:0:0: rejecting I/O to offline device
1003.912241] sd 5:0:0:0: rejecting I/O to offline device
1003.912250] sd 5:0:0:0: rejecting I/O to offline device
1003.912259] sd 5:0:0:0: rejecting I/O to offline device
1003.912268] sd 5:0:0:0: rejecting I/O to offline device
1003.912274] unable to read partition table
1003.912354] sd 5:0:0:0: [sde] Attached SCSI disk
1003.914727] sde: detected capacity change from 1500301910016 to 0
1003.914734] ata6.00: detaching (SCSI 5:0:0:0)
1003.914866] sd 5:0:0:0: [sde] Stopping disk
1003.915673] sd 5:0:0:0: [sde] START_STOP FAILED
1003.915675] sd 5:0:0:0: [sde] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK

of course mount is ko

linux-alzh:~ # mount -t ntfs-3g /dev/sde1 /mnt/samsung/
ntfs-3g: Failed to access volume ‘/dev/sde1’: No such file or directory

ntfs-3g 2010.3.6 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2010 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage: ntfs-3g -o option,…]] <device|image_file> <mount_point>

Options: ro (read-only mount), remove_hiberfile, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

Ntfs-3g news, support and information: Tuxera - Leading NTFS and exFAT interoperability