ponedjeljak, 20. listopada 2008.

How to force mount a partition in Ubuntu /bash/

This is for the most irrirating thing with windows, when you don't shut it off properly it won't let you mount it's partitions (ntfs, fat... )

1. Create a directory in which to mount; basically any Linux treats disk partitions as folders, so that's what it'll do - mount a partition to a folder... do

mkdir /media/disk

"disk" can be just any folder name, but it has to be matched in the following expressions.

Then type out a command very similar to this one, but you'll need to replace /dev/sda1 with the proper partition name. Use gparted or something to view partition names. or send a command:

fdisk -l

So dev/sdb7 or dev sda5 or whatever. This command tells Ubuntu to use the ntfs-3g driver, and force mount even if there is a problem.

So, for for ntfs:

mount -t ntfs-3g /dev/sda1 /media/disk -o force

For fat32:

mount -t vfat -o umask=000 /dev/sda1 /media/disk

More on
http://www.howtogeek.com/howto/windows-vista/use-ubuntu-live-cd-to-backup-files-from-your-dead-windows-computer/

Nema komentara: