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 ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? |
| |||
| 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! |
| |||
| 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 |
| ||||
| 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. |