Unix Technical Forum

usb disk insists on being readonly

This is a discussion on usb disk insists on being readonly within the Linux Operating System forums, part of the Unix Operating Systems category; --> On Jul 28, 9:46 pm, Roby <r...@no-address.net> wrote: > lalawawa wrote: > > Put a disk label on the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #21 (permalink)  
Old 01-19-2008, 06:14 AM
lalawawa
 
Posts: n/a
Default Re: usb disk insists on being readonly

On Jul 28, 9:46 pm, Roby <r...@no-address.net> wrote:
> lalawawa wrote:
>
> Put a disk label on the usb drive and use it to identify the right device by
> putting something like this in /etc/fstab:
>
> /dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0
>
> The label is case-sensitive.


OK, sounds great. How do I put a label on the disk?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #22 (permalink)  
Old 01-19-2008, 06:14 AM
Roby
 
Posts: n/a
Default Re: usb disk insists on being readonly

lalawawa wrote:

> On Jul 28, 9:46 pm, Roby <r...@no-address.net> wrote:
>> lalawawa wrote:
>>
>> Put a disk label on the usb drive and use it to identify the right device
>> by putting something like this in /etc/fstab:
>>
>> /dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0
>>
>> The label is case-sensitive.

>
> OK, sounds great. How do I put a label on the disk?


For ntfs, use ntfslabel (or use windows).
For ext2/3, use either e2label or tune2fs -L.

Or just use a felt-tip marking pen!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #23 (permalink)  
Old 01-19-2008, 06:14 AM
Matt Giwer
 
Posts: n/a
Default Re: usb disk insists on being readonly

Roby wrote:
> lalawawa wrote:
>> On Jul 28, 9:46 pm, Roby <r...@no-address.net> wrote:
>>> lalawawa wrote:
>>> Put a disk label on the usb drive and use it to identify the right device
>>> by putting something like this in /etc/fstab:


>>> /dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0
>>>
>>> The label is case-sensitive.

>> OK, sounds great. How do I put a label on the disk?


> For ntfs, use ntfslabel (or use windows).
> For ext2/3, use either e2label or tune2fs -L.


> Or just use a felt-tip marking pen!


Cute but all of those are for labeling the /media/st not for labeling the /dev
which is the suggestion here. So the question here is involve the /dev and I
would like to know about that too if it is possible.

--
An entire cool summer is trumped by a warm day in January if you are a
global melter.
-- The Iron Webmaster, 3836
nizkor http://www.giwersworld.org/nizkook/nizkook.phtml
Blame Israel http://www.ussliberty.org a10
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #24 (permalink)  
Old 01-19-2008, 06:14 AM
Roby
 
Posts: n/a
Default Re: usb disk insists on being readonly

Matt Giwer wrote:

> Roby wrote:
>> lalawawa wrote:
>>> On Jul 28, 9:46 pm, Roby <r...@no-address.net> wrote:
>>>> lalawawa wrote:
>>>> Put a disk label on the usb drive and use it to identify the right
>>>> device by putting something like this in /etc/fstab:

>
>>>> /dev/disk/by-label/my_usb_disk /media/st ntfs-3g defaults 0 0
>>>>
>>>> The label is case-sensitive.
>>> OK, sounds great. How do I put a label on the disk?

>
>> For ntfs, use ntfslabel (or use windows).
>> For ext2/3, use either e2label or tune2fs -L.

>
>> Or just use a felt-tip marking pen!

>
> Cute but all of those are for labeling the /media/st not for labeling the
> /dev which is the suggestion here. So the question here is involve the
> /dev and I would like to know about that too if it is possible.
>


All of those do indeed write labels to the physical devices (hard disk,
pen drive, etc.). udev handles the populating of /dev during bootup.
Have a look here:
# ls /dev/disk/by-label
.... then change a label (as root) using the utility of your choice.
Reboot to urge udev to update /dev, then look at the contents
of /dev/disk/by-label again. You'll see the changed label.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:58 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com