[PATCH v2] nvme-user: Minor enhancement and fixes

Zakaria Abushima (zabushima) zabushima at micron.com
Mon Dec 8 06:36:56 PST 2014


Hi Keith,

I managed it to work by doing power cycle,

Also I followed mounting instruction and it worked but wondered how can I unmount it ? to be at previous state ?

Also I wondered why when I double click on the file system it says ? Not Authorized ?

Thanks

Zakaria.

-----Original Message-----
From: Keith Busch [mailto:keith.busch at intel.com] 
Sent: 05 December 2014 16:58
To: Zakaria Abushima (zabushima)
Cc: Keith Busch; Swati C; linux-nvme at lists.infradead.org
Subject: RE: [PATCH v2] nvme-user: Minor enhancement and fixes

It appears you broke your device.

If you see /dev/nvme0n1, you can treat it like any block handle (like /dev/sda, for example). You shouldn't have to run an nvme format unless that's what you really want to do, but it doesn't sound necessary given your goal, and your device became unresponsive after.

After you fix your device, you can create a filesystem:

   # mke2fs /dev/nvme0n1

Then mount:

   # mount /dev/nvme0n1 /mnt

Adjust accordingly if you want a different filesystem or mount point.

On Fri, 5 Dec 2014, Zakaria Abushima (zabushima) wrote:
> Hi Keith and Swati,
>
> I have used my vendor specific tool to create namespace and managed to 
> create it,
>
> It doesn't appear in GUI as a file system where I can save things in 
> but in /dev/ it lists nvme0 and nvme0n1

> So I thought I might need to format it ? then I have used your tool nvme-format-ns and formatted the namespace ?
>
> Nothing success and says icotl interrupted.
>
> and then I thought that I might need to mount it ? I used linux 
> built-in mount function as following:- mount /dev/nvme0n1
>
> Since then the nvme0 and nvme0n1 disappeared and when I call lspci -v I noticed slight change, which is the " module driver in use nvme0" line has disappeared ? when it use to appear ?
>
> Any idear or help
>
> Thanks a in advance.
>
> Zakaria.
>
> -----Original Message-----
> From: Linux-nvme [mailto:linux-nvme-bounces at lists.infradead.org] On 
> Behalf Of Keith Busch
> Sent: 01 December 2014 15:46
> To: Swati C
> Cc: linux-nvme at lists.infradead.org
> Subject: Re: [PATCH v2] nvme-user: Minor enhancement and fixes
>
> On Fri, 28 Nov 2014, Swati C wrote:
>> Addressing comments from -
>> [PATCH] nvme-user: Minor enhancement and fixes 
>> (http://lists.infradead.org/pipermail/linux-nvme/2014-November/001214.
>> html)
>>
>> Minor enhancements to nvme_format_ns.c
>> 	- Make Metadata Settings a user settable value.
>> 	- Support for Secure Erase Settings.
>>
>> Signed-off-by: Swati C <s.chawdhary at samsung.com>
>
> Thanks, applied.
>
> On a side note, some people asked if I could take the example programs here and turn it into something more useful with just one program to run all nvme instead of a bunch of stand-alone programs. I took a stab at it:
>
> http://git.infradead.org/users/kbusch/linux-nvme-cli.git
>
> It's still a work in progress, but just linking here in case others have ideas or find it useful too.
>
> _______________________________________________
> Linux-nvme mailing list
> Linux-nvme at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-nvme
>



More information about the Linux-nvme mailing list