LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Mounting music player (https://www.linuxquestions.org/questions/mandriva-30/mounting-music-player-774812/)

siawash 12-10-2009 05:51 PM

Mounting music player
 
Hello, I just installed Mandriva 2010 64 bit. I am impressed by the fact that it can read my second drive with windows NTFS but it cannot mount my Cowon iAudio7 music player which could always be seen other distros including earlier versions of Mandriva.

Here is what fdisk shows:

Code:


Disk /dev/sda: 250.1 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.1 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        788    6329578+  82  Linux swap / Solaris
/dev/sdb2            4982      15204    82116247+  5  Extended
/dev/sdb5            4982      15204    82116216  83  Linux

Disk /dev/sdc: 320.1 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
[root@localhost siawacsh]#

SDA is where windows is.
SDB is Mandriva
SDC is my external USB drive which i manually mount each time I boot

SDD Is my music player using FAT32 which I cannot access. Considering Mandriva can see my NTFS drive it should also be able to see FAT32?

ozanbaba 12-11-2009 06:42 AM

Quote:

Originally Posted by siawash (Post 3787145)
SDA is where windows is.
SDB is Mandriva
SDC is my external USB drive which i manually mount each time I boot

SDD Is my music player using FAT32 which I cannot access. Considering Mandriva can see my NTFS drive it should also be able to see FAT32?

fdisk says it does not look like a partition table. maybe it got damaged.

try a fsck on it on Windows (or linux one, but from my exprence it does not really work good. it's your system it's your choise).

then, do fdisk -l again or try mounting it as fat32 (autofs is dangerous).

siawash 01-21-2010 08:23 AM

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.???

ozanbaba 01-21-2010 09:13 AM

Quote:



Now my external drive mounts automatically without having to mount from the console.? For the iAudio7, I still have to type:

mount cowon
you put noauto in config, it means noauto mount.

Quote:

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.
you can mount drives in the fstab by two way, first by giving mount point to mo5unt command such as mount /home/siawacsh/cowon or giving the device such as mount /dev/sdc1. both will work as they are defined in the fstab.

Quote:

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.???
for ntfs support read this: http://www.ntfs-3g.org/quality.html and install it using apt-get. well it's pretty good, so far it works nice. and yes you can use fstab to mount ntfs as others. use ntfs-3g as file system type.

siawash 01-21-2010 12:48 PM

Thanks for the reply. There seems to be one problem. Now on each boot I get this error message which I think is about the fstab changes:

Code:


/dev/sdc1 unexpected inconsistency.
fsck died with exit status 4
failed (code 4)
Control-D to continue

When I press Control-D the system continues to boot. Can you tell what's going on.?

ozanbaba 01-21-2010 02:21 PM

do fsck,

but fsck will not run on rw mounted file systems. sdc1 is not root so you can remount it as red only (it's not home folder su you should abple to remount it. if not, login as another user, root, keep going from that account). do umount and mount with -o ro to mount it read only.

use fsck -f

siawash 01-21-2010 04:22 PM

It is strange. I turned off my external drive and disconnect the iAudio7. I still get:

Code:


debian:/home/siawacsh# 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  944K  9.1M  10% /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

Which shows both iAudio7 and sdc still mounted.

I then did umount /dev/sdc1

Code:


debian:/home/siawacsh# umount /dev/sdc1
umount: /home/siawacsh/myhome: device is busy
umount: /home/siawacsh/myhome: device is busy
debian:/home/siawacsh#


I have amended my fstab to

Code:


debian:/home/siawacsh# cat /etc/fstab
# /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 defaults
/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
debian:/home/siawacsh#


siawash 01-21-2010 05:10 PM

OK i managed to umount sdc in read only mode.

umount -r myhome

then ran

fsck -f

On reboot still getting same error message. It is asking me to run fsck without any options.

ozanbaba 01-22-2010 03:34 AM

well you did a big mistake, you disconnected your external drive without umount it. that's big NO-NO.

-f option force the check even if drive is labeled clean. now it's not clean at all. you can run fsck with out option to check it.


All times are GMT -5. The time now is 03:48 PM.