Loading ...
Sorry, an error occurred while loading the content.
 

Re: How to cleanly unmount a drive

Expand Messages
  • rincewindcook
    ... Thanks Drew, that worked a treat. It would be nice though if when shutting down the slug it cleanly unmounted the drives automatically. I m sure it could
    Message 1 of 4 , Dec 24, 2008
      --- In nslu2-linux@yahoogroups.com, Brian Wood <bwood@...> wrote:
      >
      > On Wednesday 24 December 2008 10:39:26 Drew Gibson wrote:
      > > the generic Linux answer would probably be something like...
      > >
      > > umount /dev/sdb1

      Thanks Drew, that worked a treat. It would be nice though if when
      shutting down the slug it cleanly unmounted the drives automatically.
      I'm sure it could be done, with a little knowledge (Which i dont have yet)

      > >
      > > You can check that the device really is /dev/sdb1 by just typing
      "mount"
      > > on its own
      > >
      > > for example:-
      > >
      > > slug:~$ mount
      > > /dev/sda1 on /initrd type jffs2 (rw)
      > > /dev/sda1 on / type ext3 (rw)
      > > /proc on /proc type proc (rw)
      > > usbdevfs on /proc/bus/usb type usbdevfs (rw)
      > > /dev/sda1 on /share/flash/data type ext3 (rw)
      > > /dev/sda2 on /share/flash/conf type ext3 (rw,sync)
      > > slug:~$
      > >
      > > sda is the "unslung drive" so a second drive would be sdb. The
      appended
      > > number represents the partition on the physical device.
      > >
      > > If there is a problem with the disk, unmount it ( but leave it
      > > connected) then:-
      > >
      > > fsck /dev/sdb1
      > >
      > > or a variation thereof might fix it.
      >
      > You could try the old-fashioned way:
      >
      > sync
      > sync
      >
      > This was to make sure the everything had been written to the drive.
      It was
      > really unnecessary, even back when it was used.
      >
      > But it never hurt anyone.
      >
      >
      >
      > --
      > beww
      > bwood@...
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.