Please consider this question and let me know if I have understood mounting
I have two internal drives sda and sdb. I have the special windows 7 partition on sda1 and windows main on sda2. Debian on sdb2 and linux swap on sdb1.
I also have and external ide/usb drive which holds my personal data. I also have a cowon iAudio7 usb drive. Until now I was not sure how to mount these in a way which would not cause permission problems. Until now I would mount the ide/usb drive manually on each boot to a directory i created called "myhome".
The cowon music player shows a strange fat partition scheme which had me dumbfounded. This meant I reading/writing data to and back from ext3 with the occassional permission problems.
Therefore depending on the connection order the names for the external hard drive and the cowon music player are inter-changable between /dev/hdd to /dev/hdc
******************************************
Here is cowon partition scheme.
******************************************
Code:
Here is what I have done
I created a directory called myhome and another folder called cowon. I then mount external drive /dev/hdc1 to myhome and the cowon iAudio7 to the folder myhome.
As of this post I don't have the cowon connected: Here is what df gives me:
siawacsh@debian:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 97G 3.1G 89G 4% /
tmpfs 3.0G 0 3.0G 0% /lib/init/rw
udev 10M 996K 9.1M 10% /dev
tmpfs 3.0G 0 3.0G 0% /dev/shm
/dev/sdc1 294G 140G 139G 51% /media/disk
****************************************************************
With iAudio7 connected
******************************************************************
Code:
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 97G 3.2G 89G 4% /
tmpfs 3.0G 0 3.0G 0% /lib/init/rw
udev 10M 1.1M 9.0M 11% /dev
tmpfs 3.0G 0 3.0G 0% /dev/shm
/dev/sdc1 294G 140G 139G 51% /home/siawacsh/myhome
/dev/sdd 16G 13G 2.5G 84% /home/siawacsh/cowon
**************************************************************************
Here is the amended fstab
*****************************************************************************
Code:
siawacsh@debian:~$ sudo cat /etc/fstab
[sudo] password for siawacsh:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/sdd /home/siawacsh/cowon vfat noauto
/dev/sdc1 /home/siawacsh/myhome ext3 defaults 0 3
/dev/sdb2 / ext3 errors=remount-ro 0 1
/dev/sdb1 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
siawacsh@debian:~$
********************************
fdisk -l
********************************
Code:
siawacsh@debian:~$ sudo fdisk -l
Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x20f86de2
Device Boot Start End Blocks Id System
/dev/sda1 * 1 26 204800 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 30402 243991552 7 HPFS/NTFS
Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x06abc06d
Device Boot Start End Blocks Id System
/dev/sdb1 1 765 6144831 82 Linux swap / Solaris
/dev/sdb2 * 766 13513 102398310 83 Linux
/dev/sdb3 13514 26261 102398310 83 Linux
Disk /dev/sdc: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000b20bc
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 38913 312568641 83 Linux
Disk /dev/sdd: 16.5 GB, 16542334976 bytes
64 heads, 32 sectors/track, 15776 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Disk identifier: 0x69737369
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sdd1 ? 912975 995343 84344761 69 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sdd2 ? 830821 1743849 934940732+ 73 Unknown
Partition 2 does not end on cylinder boundary.
/dev/sdd3 ? 2 2 0 74 Unknown
Partition 3 does not end on cylinder boundary.
/dev/sdd4 1409025 1409050 26207+ 0 Empty
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
siawacsh@debian:~$
****************************************************************************************
Now my external drive mounts automatically without having to mount from the console.? For the iAudio7, I still have to type:
mount cowon
Can you confirm if I have done this correctly? Why can I getaway by specifying /dev/hdd but must specify sdc1 in relation to external drive.
Finally, I understand I can mount the drives holding windows sda1 and sda2 with ntfs file systems exactly the same way. Persumably that means I can read and write to the ntfs file systems. Assuming I am correct what is the difference between this and installing some sort of driver to transact between ext3 and ntfs.???