Re: How to cleanly unmount a drive
- --- In email@example.com, Brian Wood <bwood@...> wrote:
>Thanks Drew, that worked a treat. It would be nice though if when
> On Wednesday 24 December 2008 10:39:26 Drew Gibson wrote:
> > the generic Linux answer would probably be something like...
> > umount /dev/sdb1
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
> > on its ownappended
> > 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
> > number represents the partition on the physical device.It was
> > 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:
> This was to make sure the everything had been written to the drive.
> really unnecessary, even back when it was used.
> But it never hurt anyone.