Pixel wrote:
>
> I've got some new code for writing fstab. And also some code to set the
> default options and set some mount point.
>
> Would you test it?
> In that case
> - first save your fstab.
> - save a formatted fstab that will help comparison
> % perl -e '@l = map { [ split ] } <>; @l = sort { $a->[1] cmp $b->[1] } @l; print
>join(" ", @$_), "\n" foreach @l' /etc/fstab > /tmp/fstab.save
> - launch diskdrake (from drakxtools-1.1.7-4mdk)
> % TEST_DEFAULT_OPTIONS=1 diskdrake
> - quit diskdrake
> - compare /etc/fstab /tmp/fstab.save
> (use of ediff-buffers recommended:
> % emacs -q --eval '(progn (setq a (find-file "/etc/fstab")) (setq b (find-file
>"/tmp/fstab.save")) (ediff-buffers a b))'
> then press SPACE or '?')
>
> thanks, cu Pixel.
*** /tmp/fstab Mon Aug 20 07:31:12 2001
--- /tmp/fstab.save1473D3B Mon Aug 20 07:31:12 2001
***************
*** 1,12 ****
! /dev/hdb1 / reiserfs notail,defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
! /dev/hdb7 /home reiserfs notail,defaults 1 2
! /dev/hdc /mnt/cdrom auto user,umask=0,exec,ro,noauto 0 0
! /dev/scd1 /mnt/cdrom2 auto user,umask=0,exec,noauto 0 0
! /dev/fd0 /mnt/floppy auto user,umask=0,sync,exec,noauto 0 0
/dev/hda1 /mnt/win_c vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0
0
/dev/hda6 /mnt/win_d vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0
0
none /proc proc defaults 0 0
! /dev/hdb6 /usr reiserfs notail,defaults 1 2
/dev/hda3 swap swap defaults 0 0
--- 1,12 ----
! /dev/hdb1 / reiserfs defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
! /dev/hdb7 /home reiserfs defaults 1 2
! /dev/cdrom /mnt/cdrom auto user,noauto,nosuid,exec,nodev,ro 0 0
! /dev/cdrom2 /mnt/cdrom2 auto user,noauto,nosuid,exec,nodev,ro 0 0
! /dev/fd0 /mnt/floppy auto sync,user,noauto,nosuid,nodev 0 0
/dev/hda1 /mnt/win_c vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0
0
/dev/hda6 /mnt/win_d vfat user,exec,umask=0,codepage=850,iocharset=iso8859-1 0
0
none /proc proc defaults 0 0
! /dev/hdb6 /usr reiserfs defaults 1 2
/dev/hda3 swap swap defaults 0 0