View previous topic :: View next topic |
Author |
Message |
giessie n00b
Joined: 10 Mar 2005 Posts: 66
|
Posted: Sun Dec 02, 2007 9:52 pm Post subject: e-sata drive: can get it marked removable? |
|
|
Hi,
my new mainboard features an e-sata bracket (just connected to the sata ports on the mb).
Now it should be no problem to just connect and disconnect arbitrary devices to this port, right?
Is ist safe to unplug the drive even if /sys/block/$drive/removable is 0?
Can I set this somehow? The file itself is read only.
Does it matter wether I pulll sata or power cable first?
btw: I am using the AHCI driver.
thanks in advance |
|
Back to top |
|
|
giessie n00b
Joined: 10 Mar 2005 Posts: 66
|
Posted: Tue Dec 04, 2007 9:19 am Post subject: |
|
|
I still didn't get it removable, but I did some searching and testing and I get the following:
Plugging in a SATA-hd gives me the following:
dmesg wrote: | ata5: exception Emask 0x10 SAct 0x0 SErr 0x4050000 action 0x2 frozen
ata5: irq_stat 0x00000040, connection status changed
ata5: soft resetting port
ata5: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata5.00: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
ata5.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata5.00: configured for UDMA/133
ata5: EH complete
scsi 4:0:0:0: Direct-Access ATA SAMSUNG SP2504C VT10 PQ: 0 ANSI: 5
sd 4:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 4:0:0:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sdb: sdb1
sd 4:0:0:0: [sdb] Attached SCSI disk
sd 4:0:0:0: Attached scsi generic sg2 type 0
ReiserFS: sdb1: found reiserfs format "3.6" with standard journal
ReiserFS: sdb1: using ordered data mode
ReiserFS: sdb1: journal params: device sdb1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
ReiserFS: sdb1: checking transaction log (sdb1)
ReiserFS: sdb1: Using r5 hash to sort names
|
Does any one know, if lines 1 and 3 are OK? Anyway, the drive is automatically mounted to /media and I can use it.
After some searching I found /sys/block/sd?/device/delete, but no documentation for it. However, the usage of it suggests, that "echo 1 > /sys/block/sda/device" 'detaches' the drive from the system. After issuing this command, the drive spins down.
So after
umount /media/disk
echo 1 > /sys/block/sda/device
dmesg wrote: | sd 4:0:0:0: [sdb] Synchronizing SCSI cache
sd 4:0:0:0: [sdb] Stopping disk
ata5.00: disabled
ata5: exception Emask 0x50 SAct 0x0 SErr 0x4090800 action 0x6 frozen
ata5: irq_stat 0x00400040, connection status changed
ata5: hard resetting port
ata5: SATA link down (SStatus 0 SControl 300)
ata5: EH complete
|
The first three lines are from the delete command, the rest from unplugging the drive. Again my question: Is the exception and the hard reset on the port OK? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|