Announcement

Collapse
No announcement yet.

Cant write to hard drive

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Cant write to hard drive

    hi folks im a bit of newb here but not completely dumb ive been working at this on my own for a few hours now and it a sparrows fart in the morning and im ready to go die....my problem is i mounted my secondary hard drive and i can access it fine but i cant copy or save anything to it ive done so much reading i think my heads going to explode but cant seem to fix it...can someone please help me heres my /etc/fstab


    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    # /dev/hda1
    UUID=88b0fb01-9809-4ca2-9e58-1462613b126a / ext3 defaults,errors=remount-ro 0 1
    # /dev/hda5
    UUID=b73817a5-b815-404c-8869-379797385b28 none swap sw 0 0
    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
    #Added by diskmounter utility
    /dev/hdb1 /media/hdb1 ntfs ro,user,fmask=0111,dmask=0000 0 0

    any help would be awesome 8)
    night all

    #2
    Re: Cant write to hard drive

    Alright, make sure you have fuse and ntfs-3g installed
    Code:
    sudo aptitude install fuse ntfs-3g
    Then, make sure you're a member of the fuse group
    Code:
    sudo addgroup [username] fuse
    (replace [username] with your username)

    Next, edit your 2nd hdd on your fstab to look like the following:
    Code:
    /dev/hdb1 /media/hdb1 ntfs-3g ro,user,fmask=0111,dmask=0000 0 1
    I don't know much about "fmask" and "dmask", so I can't help you too much there; but once you've made the above changes, logout, press Alt+E to restart your X.org, log back in, and see if you can write to your 2nd hard drive. If not, I'll do some more research and help you revise your fstab a little more
    Asus G1S-X3:
    Intel Core2 Duo T7500, Nvidia GeForce 8600M GT, 4Gb PC2-5300, 320Gb Hitachi 7k320, Linux ( )

    Comment


      #3
      Re: Cant write to hard drive

      You will also want to get rid of "ro" (read-only)...

      Here's my line as an example:
      Code:
      /dev/hda3 /windows ntfs-3g defaults,locale=en_GB.UTF-8 0 1

      Comment


        #4
        Re: Cant write to hard drive

        You will also want to get rid of "ro" (read-only)...
        Good catch
        Asus G1S-X3:
        Intel Core2 Duo T7500, Nvidia GeForce 8600M GT, 4Gb PC2-5300, 320Gb Hitachi 7k320, Linux ( )

        Comment


          #5
          Re: Cant write to hard drive

          Worked a treat thanks guys 8)

          Comment


            #6
            Re: Cant write to hard drive

            Asus G1S-X3:
            Intel Core2 Duo T7500, Nvidia GeForce 8600M GT, 4Gb PC2-5300, 320Gb Hitachi 7k320, Linux ( )

            Comment


              #7
              Re: Cant write to hard drive

              Hello I have been Kubuntu for a while now. Recently i added a secondary internal HD. I formatted using Gparted. Then mounted using mountmanager. I can see the new HD but unable to read or write. What am i missing here? I formatted the HD with ext3.

              Here is some basic information..

              deepax@Base-Station:~$ sudo fdisk -l

              WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


              Disk /dev/sda: 120.0 GB, 120034123776 bytes
              255 heads, 63 sectors/track, 14593 cylinders
              Units = cylinders of 16065 * 512 = 8225280 bytes
              Disk identifier: 0x4e854e84

              Device Boot Start End Blocks Id System
              /dev/sda1 1 14593 117218241 83 Linux

              Disk /dev/sdb: 80.0 GB, 80000000000 bytes
              255 heads, 63 sectors/track, 9726 cylinders
              Units = cylinders of 16065 * 512 = 8225280 bytes
              Disk identifier: 0xd0f4738c

              Device Boot Start End Blocks Id System
              /dev/sdb1 * 1 9324 74894998+ 83 Linux
              /dev/sdb2 9325 9726 3229065 5 Extended
              /dev/sdb5 9325 9726 3229033+ 82 Linux swap / Solaris


              deepax@Base-Station:~$ sudo nano /etc/fstab


              proc /proc proc defaults 0 0
              UUID=c5e2e17f-e468-4584-a783-5aedb32c7526 / ext3 relatim$
              UUID=60c62745-3d9c-490b-922f-ce67275a9774 none swap sw $
              /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 $
              /dev/sda1 /media/storage ext3 auto,defaults 0 0


              What else am i missing to set here? Please help i spent 3 days reading countless posts and formatting the drive 10 times. Any help will be deeply appreciated. Thanks!!

              Comment


                #8
                Re: Cant write to hard drive

                First, the basics. What is the type and model of the new hard drive, and of your BIOS, and of your original/first hard drive? How does the new hard drive appear in BIOS?

                Second, what exactly do you mean by "... using mountmanager"?

                Third, can you please post your /etc/fstab file?

                Comment


                  #9
                  Re: Cant write to hard drive

                  Ok here it is...

                  System: Dell DM051
                  Bios Version: A07 (01/08/07)

                  Controller = Serial ATA
                  Port= SATA-0

                  Drive Details:
                  Drive ID: Maxtor 6L080M0
                  BIOS: Controlled by system BIOS

                  Controller = Parallel ATA
                  Port= PATA-0 (PRI IDE Master)

                  Drive Details:
                  Drive ID: WDC WD1200bb-00GUC0
                  BIOS: Controlled by system BIOS

                  The mount manager is something i used to mount my USB based External HD, i was tired of using the external HD so i took it apart disassembled the HD and installed it inside the computer.

                  Name: Mountmanager
                  Version: 0.2.0


                  deepax@Base-Station:~$ /etc/fstab
                  bash: /etc/fstab: Permission denied

                  This dosen't sound right to me....So please help me..Looks like i screwed up something somewhere...

                  Comment


                    #10
                    Re: Cant write to hard drive

                    Originally posted by k_deepax
                    deepax@Base-Station:~$ /etc/fstab
                    bash: /etc/fstab: Permission denied
                    That won't work because the executable bit isn't set on /etc/fstab. At least it shouldn't be. Instead you can use Kate to edit the file:

                    Alt+F2 -> kdesudo kate /etc/fstab
                    Welcome newbies!
                    Verify the ISO
                    Kubuntu's documentation

                    Comment


                      #11
                      Re: Cant write to hard drive

                      Ok here is the info from the run command.


                      Alt+F2 -> kdesudo kate /etc/fstab

                      proc /proc proc defaults 0 0
                      UUID=c5e2e17f-e468-4584-a783-5aedb32c7526 / ext3 relatime,errors=remount-ro 0 1
                      UUID=60c62745-3d9c-490b-922f-ce67275a9774 none swap sw 0 0
                      /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
                      /dev/sda1 /media/storage ext3 auto,defaults 0 0

                      Looks like i might finally be able to crack this...

                      Comment


                        #12
                        Re: Cant write to hard drive

                        Your /etc/fstab file is a little bit off, and "mountmanager" is not something you would or should use to do anything with an internal drive.

                        It appears the drive you added ended up identified in your system as /dev/sda1, which is a little odd. Normally the original drive would have been /dev/sda, and a second drive would have been /dev/sdb. However, that is not fatal. This all looks fixable to me.

                        Would you please open the Konsole and run these two commands, and reply back with the output of both:

                        Code:
                        sudo fdisk -lu
                        Code:
                        sudo blkid

                        Comment


                          #13
                          Re: Cant write to hard drive

                          That is weird, maybe i messed up the bios while doing crazy things i should be. Here s the info...

                          deepax@Base-Station:~$ sudo fdisk -lu
                          [sudo] password for deepax:

                          WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


                          Disk /dev/sda: 120.0 GB, 120034123776 bytes
                          255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
                          Units = sectors of 1 * 512 = 512 bytes
                          Disk identifier: 0x4e854e84

                          Device Boot Start End Blocks Id System
                          /dev/sda1 63 234436544 117218241 83 Linux

                          Disk /dev/sdb: 80.0 GB, 80000000000 bytes
                          255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
                          Units = sectors of 1 * 512 = 512 bytes
                          Disk identifier: 0xd0f4738c

                          Device Boot Start End Blocks Id System
                          /dev/sdb1 * 63 149790059 74894998+ 83 Linux
                          /dev/sdb2 149790060 156248189 3229065 5 Extended
                          /dev/sdb5 149790123 156248189 3229033+ 82 Linux swap / Solaris

                          and...

                          deepax@Base-Station:~$ sudo blkid

                          /dev/sda1: LABEL="storage" UUID="303a5475-a5e1-4f15-b451-7473c37ffa7d" SEC_TYPE="ext2" TYPE="ext3"
                          /dev/sdb1: UUID="c5e2e17f-e468-4584-a783-5aedb32c7526" TYPE="ext3"
                          /dev/sdb5: TYPE="swap" UUID="60c62745-3d9c-490b-922f-ce67275a9774"

                          I cant out into words the gratitude i have for you....Dont care if this thing is not fixed. Im very happy to be part of Linux bc of people like you!!

                          Comment


                            #14
                            Re: Cant write to hard drive

                            Heh -- well, we'll see if you still feel that way after you get "help".

                            OK, so, I assume in the directory /media you really do have a mount point named /media/storage?

                            What I suggest is that you edit the file /etc/fstab to improve the mount instruction for that second hard drive, using "mount by UUID". Alt-F2 will bring up the "run" dialog, and you can enter "kdesudo kate /etc/fstab" with no quote marks. This will open the kate editor in root mode, with the file /etc/fstab open.

                            Now, carefully edit it to change the parts that I have made red here:

                            proc /proc proc defaults 0 0
                            UUID=c5e2e17f-e468-4584-a783-5aedb32c7526 / ext3 relatime,errors=remount-ro 0 1
                            UUID=60c62745-3d9c-490b-922f-ce67275a9774 none swap sw 0 0
                            /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
                            #/dev/sda1
                            UUID=303a5475-a5e1-4f15-b451-7473c37ffa7d /media/storage ext3 auto,users,rw,exec,noatime 0 2
                            Then you can "save" and close kate.

                            Now, open a Konsole window and issue the command
                            Code:
                            sudo mount -a
                            Post back if you get any errors.


                            Comment


                              #15
                              Re: Cant write to hard drive

                              Interesting because i read someone post with similar idea, to address with UUID instead of Media/...

                              Well here is what i got...

                              deepax@Base-Station:~$ sudo mount -a
                              [mntent]: line 5 in /etc/fstab is bad

                              You think if i format both the drives and do a fresh install it would be easy for me to fix this issue? I'm open to that possibility. Lets see...does the error make any sense?

                              Comment

                              Working...
                              X