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

Re: Bug#461104: RFP: label -- Set or change label to partition disk

On Thu, Jan 17, 2008 at 03:33:45PM -0600, Steve Greenland wrote:
> On 17-Jan-08, 14:52 (CST), "brian m. carlson" <sandals@crustytoothpaste.ath.cx> wrote: 
> > On Thu, Jan 17, 2008 at 02:32:16PM -0600, Ron Johnson wrote:
> >> Aren't there already ways to do this?  For example,
> >>
> >> # tune2fs -L <some_label> /dev/[sh]d[a-z][1-15]
> >
> > If you're looking for naming a partition, then yes, that method works  
> > (assuming, of course, that it is ext[23]).  If you're looking for a  
> > disklabel (also known as a partition table), then that method won't  
> > work, but you can use parted or the appropriate fdisk tool.  It's  
> > somewhat difficult to tell, since there is no long description.   
> > Consider this a request for one.
> Looking at the website, it appears to be the former. It looks like a
> wrapper that determines whether the FS in question is ext[23] or msdos,
> and make the appropriate utility call. 
> However, I don't read Spanish, so there may be more to it.
(Folks, I am a professional, so please don't try this at home)


    * Tienes que ser root (por razones obvias). Puedes usarlo con sudo.
      (Must be root, can be used with sudo)
    * El dispositivo indicado debe estar montado porque el programa utiliza df para averiguar el sistema de ficheros.
      (Device must be mounted because df is used to determine
    * Por ahora sólo soporta vfat y ext2/3, pero extenderlo para otros FS es trivial.
      (Currently, only vfat and ext2/3 are supported, extending to
      support other filesystems is trivial)

Quizá sería más sencillo hacerlo en C-Shell, pero me siento más cómodo con Python. Se admiten sugerencias.
(It would probably be easier in csh, but I am more comfortable with
Python.  Suggestions welcome.)



Roberto C. Sánchez

Attachment: signature.asc
Description: Digital signature

Reply to: