Re: Large disk drives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 5 Nov 2014, Dale R. Worley wrote:

> > From: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> 
> > I posted a patch to allow the user to override the reported capacity:
> > 
> > 	http://marc.info/?l=linux-scsi&m=140993840113445&w=2
> 
> I see the patch, and I feel confident I could install it if I needed
> to.  What command do I execute to "write to the capacity_override
> attribute", before I do "blockdev --rereadpt /dev/sdX"?

As root:

	echo N >/sys/class/scsi_disk/D:D:D:D/capacity_override

where N is the number of blocks and D:D:D:D is the device name
corresponding to the sdX disk.  Or if you prefer, an equivalent path
would be

	/sys/block/sdX/device/scsi_disk/D:D:D:D/capacity_override

and here you wouldn't have to guess at the value of D:D:D:D because it 
would be the only entry in the /sys/block/sdX/device/scsi_disk 
directory.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux