SUMMARY: How does one fsck a dd image of a filesystem? losetup

"Bryan J. Smith" <[email protected]>
Newsgroups gmane.linux.admin.managers
Message-ID <[email protected]>
Thanx to Cody Collier and Kevin "Korbinator" Korb.  Both pointed me towards "losetup" which was 
just a matter of running:
  # losetup /dev/loop0 /tmp/myimage.dd
  # e2fsck -y -v /dev/loop0

Kevin also pointed out that since my filesystem was already mounted read-only, I could run fsck 
on the loopback device in use as well.  I actually did so using "e2fsck -n -v" options to "look at 
what was wrong" before umounting and using losetup proper.

It's funny.  I've always taken note of losetup, but never knew what it was used for.  Now I know.

-- 
Bryan J. Smith, E.I.  mailto:[email protected]  http://thebs.org
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.