PDA

View Full Version : [ubuntu] [SOLVED] Disk Mounting Confusion



rapsball4
December 20th, 2008, 04:55 AM
I successfully got my Ubuntu running again earlier today thanks to this forum, but the other HDD partitions aren't mounting properly. I have first a SATA drive with four partitions: Vista, Ubuntu root, swap, data. Then I have an IDE drive with one partition for data backup. Somehow I managed to get the data backup drive mounted and with the right name of /media/DataBackup. The Windows drive is mounted but mounted as /media/Data. The actual Data drive isn't mounted at all. I can do it each time I log in by using the terminal to unmount the Windows drive from /media/Data and mount the actual Data drive there, but I don't know how to make the changes stick. I would like to get all three mounted with the correct names, any help would be great. All three are NTFS.

taurus
December 20th, 2008, 04:58 AM
You can use ntfs-config to configure those ntfs partitions.

Applications -> Accessories -> Terminal

sudo apt-get update
sudo apt-get install ntfs-config
gksudo ntfs-config

rapsball4
December 20th, 2008, 04:59 AM
I tried that. The data drive shows up (not the other two) and fails to mount whether I point it to /media/Data or something else entirely.

logos34
December 20th, 2008, 05:09 AM
post the output of these commands:

sudo fdisk -l

ls -l /media

cat /etc/fstab /etc/mtab

hopefully we can make sense out of this

taurus
December 20th, 2008, 05:16 AM
Bet it's one of those forgot to shut down windows cleanly things.

rapsball4
December 20th, 2008, 05:16 AM
sudo fdisk -l gives:


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000836fe

Device Boot Start End Blocks Id System
/dev/sda1 * 1 60802 488384512 7 HPFS/NTFS

Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdce8e64b

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 15936 128000000 7 HPFS/NTFS
/dev/sdb2 15936 31871 128000000 83 Linux
/dev/sdb3 31871 32126 2048000 82 Linux swap / Solaris
/dev/sdb4 32126 91202 474523648 7 HPFS/NTFS

ls -l /media gives:


total 52
lrwxrwxrwx 1 root root 6 2008-12-19 12:16 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2008-12-19 12:16 cdrom0
drwxr-xr-x 2 root root 4096 2008-12-19 12:16 cdrom1
drwxr-xr-x 2 root root 4096 2008-12-19 12:16 cdrom2
drwxrwxrwx 1 root root 28672 2008-12-18 22:11 Data
drwxrwxrwx 1 root root 8192 2008-12-19 20:57 DataBackup
drwxr-xr-x 2 root root 4096 2008-12-19 22:39 Windows


cat /etc/fstab /etc/mtab gives:


# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/sdb2 :
UUID=f65d5982-3f51-4233-b256-e9e953344e5a / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sdb3 :
UUID=0251f996-e8b9-486f-bd59-ad75dbee1d9d none swap sw 0 0
/dev/sdb1 /media/Data ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/sda1 /media/DataBackup ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/sdb2 / ext3 rw,relatime,errors=remount-ro 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
/proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,nosuid,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
lrm /lib/modules/2.6.27-7-generic/volatile tmpfs rw,mode=755 0 0
/dev/sdb1 /media/Data fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
/dev/sda1 /media/DataBackup fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
securityfs /sys/kernel/security securityfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/ryan/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=ryan 0 0


Hope that helps.

logos34
December 20th, 2008, 05:44 AM
proc /proc proc defaults 0 0
# Entry for /dev/sdb2 :
UUID=f65d5982-3f51-4233-b256-e9e953344e5a / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sdb3 :
UUID=0251f996-e8b9-486f-bd59-ad75dbee1d9d none swap sw 0 0
/dev/sdb1 /media/Data ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/sda1 /media/DataBackup ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/sdb2 / ext3 rw,relatime,errors=remount-ro 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
/proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
varrun /var/run tmpfs rw,nosuid,mode=0755 0 0
varlock /var/lock tmpfs rw,noexec,nosuid,nodev,mode=1777 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
lrm /lib/modules/2.6.27-7-generic/volatile tmpfs rw,mode=755 0 0
/dev/sdb1 /media/Data fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
/dev/sda1 /media/DataBackup fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0
securityfs /sys/kernel/security securityfs rw 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
gvfs-fuse-daemon /home/ryan/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=ryan 0 0
[/CODE]

The reason vista (sdb1) is mounting as 'data' is because that's how it was configured by ntfs-config. And 'data' proper (sdb4) isn't even listed. So either go back and run ntfs-config again or better yet hand-edit it like this:

gksudo gedit /etc/fstab

change to:


proc /proc proc defaults 0 0
# Entry for /dev/sdb2 :
UUID=f65d5982-3f51-4233-b256-e9e953344e5a / ext3 relatime,errors=remount-ro 0 1
# Entry for /dev/sdb3 :
UUID=0251f996-e8b9-486f-bd59-ad75dbee1d9d none swap sw 0 0
/dev/sdb1 /media/Windows ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/sda1 /media/DataBackup ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/sdb4 /media/Data ntfs-3g defaults,locale=en_CA.UTF-8 0 0

*Notice that I've taken out the redundant root line '/dev/sdb2' too

Now

sudo umount /media/Data

sudo mount -a

rapsball4
December 20th, 2008, 05:51 AM
Thanks a lot. Problem solved.

logos34
December 20th, 2008, 05:56 AM
super. enjoy.

>Thread Tools>Mark as Solved