Announcement

Collapse
No announcement yet.

Accessing a different partiton help !

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

    #16
    Re: Accessing a different partiton help !

    before mounting
    ant2ne@ant2ne-laptop:~$ sudo ls -l /mnt
    Password:
    total 36
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda0
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda1
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda2
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda3
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda4
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda5
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda6
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda7
    drwxr-xr-x 2 root root 4096 2007-05-12 01:09 sda8
    ant2ne@ant2ne-laptop:~$ sudo more /etc/mtab | grep sda
    /dev/sda2 / ext3 rw,errors=remount-ro 0 0
    /dev/sda6 /home ext3 rw 0 0
    my mounting batch file called mtall
    #!/bin/sh
    # sda1 = Windows
    # sda2 = root
    # sda3 = extended partition, not mountable
    # sda4 = does not exist yet
    # sda5 = swap, not mountable
    # sda6 = Home
    # sda7 = Backup Fat32
    # sda8 = ext3 10 gig, empty still

    # Do not need to make every time as they already exist
    #sudo mkdir /mnt/sda1
    #sudo mkdir /mnt/sda2
    #sudo mkdir /mnt/sda6
    #sudo mkdir /mnt/sda7
    #sudo mkdir /mnt/sda8
    # Mounts in above created locations, and puts drive/folder on desktop. Still no access
    sudo mount /dev/sda1 /mnt/sda1
    sudo mount /dev/sda2 /mnt/sda2
    sudo mount /dev/sda6 /mnt/sda6
    sudo mount /dev/sda7 /mnt/sda7
    sudo mount /dev/sda8 /mnt/sda8
    after mounting
    ant2ne@ant2ne-laptop:~$ mtall
    ant2ne@ant2ne-laptop:~$ sudo ls -l /mnt
    total 44
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda0
    dr-x------ 1 root root 8192 2007-05-11 22:18 sda1
    drwxr-xr-x 22 root root 4096 2007-05-01 12:22 sda2
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda3
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda4
    drwxr-xr-x 2 root root 4096 2007-05-12 01:18 sda5
    drwxr-xr-x 4 root root 4096 2007-05-02 16:20 sda6
    drwxr-xr-x 3 root root 8192 1969-12-31 18:00 sda7
    drwxr-xr-x 3 root root 4096 2007-05-11 13:10 sda8
    ant2ne@ant2ne-laptop:~$ sudo more /etc/mtab | grep sda
    /dev/sda2 / ext3 rw,errors=remount-ro 0 0
    /dev/sda6 /home ext3 rw 0 0
    /dev/sda1 /mnt/sda1 ntfs rw 0 0
    /dev/sda2 /mnt/sda2 ext3 rw 0 0
    /dev/sda6 /mnt/sda6 ext3 rw 0 0
    /dev/sda7 /mnt/sda7 vfat rw 0 0
    /dev/sda8 /mnt/sda8 ext3 rw 0 0
    ant2ne@ant2ne-laptop:~$
    what lines do in need to add to my batch to give me read/write permissions?
    Registered Linux User: 450747<br />Registered Ubuntu User: 16269

    Comment


      #17
      Re: Accessing a different partiton help !

      Originally posted by Ant2ne
      sudo mount /dev/sda1 /mnt/sda1
      May sound silly - but how about

      Code:
      sudo mount -o defaults /dev/sda1 /mnt/sda1

      Comment


        #18
        Re: Accessing a different partiton help !

        sudo fdisk -l
        ant2ne@ant2ne-laptop:~$ sudo fdisk -l

        Disk /dev/sda: 80.0 GB, 80026361856 bytes
        255 heads, 63 sectors/track, 9729 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes

        Device Boot Start End Blocks Id System
        /dev/sda1 * 1 1912 15358108+ 7 HPFS/NTFS
        /dev/sda2 1913 5099 25599577+ 83 Linux
        /dev/sda3 5100 9729 37190475 5 Extended
        /dev/sda5 8289 8479 1534176 82 Linux swap / Solaris
        /dev/sda6 8480 9729 10040593+ 83 Linux
        /dev/sda7 5100 6374 10241374+ b W95 FAT32
        /dev/sda8 6375 7649 10241406 83 Linux

        Partition table entries are not in disk order
        ant2ne@ant2ne-laptop:~$
        sudo nano /etc/fstab
        /etc/fstab: static file system information.
        #
        # <file system> <mount point> <type> <options> <dump> <pass>
        proc /proc proc defaults 0 0
        # /dev/sda3
        UUID=2c00e55a-8681-401c-a7da-8be3d86bb46d / ext3 defaults,errors=remount-ro 0 1
        # /dev/sda6
        UUID=a4d9824b-ccb4-4de5-9b86-d0fda65208db /home ext3 defaults 0 2
        # /dev/sda1
        UUID=07D7-010A /media/sda1 vfat defaults,utf8,umask=007,gid=46 0 1
        # /dev/sda2
        UUID=9C28A37528A34D58 /media/sda2 ntfs defaults,nls=utf8,umask=007,gid=46 0 1
        # /dev/sda5
        UUID=3c02b053-67a9-4351-a351-df73193736a9 none swap sw 0 0
        /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
        Carefull examination will show that this doesn't fit. Took me a moment, but I know what the problem is. Last week I backed up my fiesty partition (via partimage) from sda3 then I did some hard drive work. I removed some partitions, changed the file structure on others, re sized almost all of them. Then Fiesty Was partimaged back in on sda2. I then installed Vista. And then Grub. I had to reconfigure Grub, as Windows was on sda2 and fiesty on sda3. Now windows is on sda1 and fiesty sda2. So now "sudo nano /etc/fstab" is going to be wrong.

        What else is going to be wrong? How do I fix it all? I backed up this partition so I wouldn't need to reinstall everything. Is that just wishfull thinking?

        This is probably why my network printer quit working too.
        Registered Linux User: 450747<br />Registered Ubuntu User: 16269

        Comment


          #19
          Re: Accessing a different partiton help !

          pardon my ignorance, folks, but...since when can you reliably write to ntfs from linux?
          i must admit i don't follow things that have to do with windows interoperability...
          but i would have thought: ntfs from linux=read ok, write so so.
          should i update this?
          gnu/linux is not windoze

          Comment


            #20
            Re: Accessing a different partiton help !

            Originally posted by jankushka
            pardon my ignorance, folks, but...since when can you reliably write to ntfs from linux?
            i must admit i don't follow things that have to do with windows interoperability...
            but i would have thought: ntfs from linux=read ok, write so so.
            should i update this?
            google ntfs-3g

            Currently, I can't read OR write to my NTFS partitions. And this is an agrivation.
            Registered Linux User: 450747<br />Registered Ubuntu User: 16269

            Comment


              #21
              Re: Accessing a different partiton help !

              thanks a bunch.
              gnu/linux is not windoze

              Comment


                #22
                Re: Accessing a different partiton help !

                @Ant2ne: Just generate an old fashioned, non-UUID, /etc.fstab file using lines like: "/dev/sda2 /media/WinC etc." Kubuntu will transform it into an insecure, unreadable UUID mess soon enough.

                You may have a hard time with Vista, though. My Feisty install didn't recognize Vista (which I had barely used any way) and wrote right over it. I was "forced" to reconcile myself to just using XP on another computer on those rare occasions that I need windoze.

                Comment


                  #23
                  Re: Accessing a different partiton help !

                  Originally posted by askrieger
                  @Ant2ne: Just generate an old fashioned, non-UUID, /etc.fstab file using lines like: "/dev/sda2 /media/WinC etc." Kubuntu will transform it into an insecure, unreadable UUID mess soon enough.
                  I don't understand what you are saying here.
                  You may have a hard time with Vista, though. My Feisty install didn't recognize Vista (which I had barely used any way) and wrote right over it. I was "forced" to reconcile myself to just using XP on another computer on those rare occasions that I need windoze.
                  Vista is the least of my problems.

                  I've made some progress with the following batch file.
                  #!/bin/sh
                  clear
                  sudo umount -a -f

                  echo MY BASIC INFORMATION AS DISPLAYED IN GPARTED # DISPLAY PARTITION TABLE
                  echo sda1 = Windows: NTFS, Primary
                  echo sda2 = root: ext3. Primary
                  echo sda3 = Extended
                  echo sda4 = Does not exist
                  echo sda5 = swap, Logical
                  echo sda6 = Home: ext3, Logical
                  echo sda7 = Backup: Fat32, Logical
                  echo sda8 = Spare: ext3, Logical
                  sudo fdisk -l

                  sudo mount -t ntfs-3g /dev/sda1 /mnt/sda1 #MOUNTS sda1 with read/write access. Do not modify #sudo ntfs-config
                  sudo mount /dev/sda7 /mnt/sda7
                  sudo mount /dev/sda8 /mnt/sda8

                  echo LIST MOUNTED FILESYSTEMS
                  sudo mount
                  In this I can now access my vista drive with read/write access. I can't however write to sda7, but I can to sda8. sda7 is fat32, and sda8 is ext3. How can I not have access to a fat32 disk? That don't make no kind-a sense!
                  Registered Linux User: 450747<br />Registered Ubuntu User: 16269

                  Comment


                    #24
                    Re: Accessing a different partiton help !

                    I don't understand what you are saying here.
                    <begin oversimplify>In the good old days before, say, Kubuntu Dapper, the file /etc/fstab was generated BY THE USER and NOT CHANGED BY THE OS. At that time one could count on file systems to show up where you put them. Accordingly, once you had written a line to /etc/fstab like "/dev/sda2<tab> /media/WinC<tab>ntfs<tab>defaults<tab>0<tab> 0", it would stay like that forever. This meant that you could write very simple mount commands like "mount /media/WinC" and it would mount /dev/sda2 on /media/WinC. Unfortunately, this was not too great when it came to USB devices that could wind up on any one of a number of sd? devices so udev was invented to facilitate the mounting of devices that could come and go and then reappear elsewhere. Udev worked well for Dapper and Edgy.

                    Unfortunately, someone had another bright idea. How about giving every device known to any computer in the world (including individual disk partitions) its own individual Universal ID! Hence, UUID. There are now 5 different versions of UUID, and no human knows what device is mounted as what, or where. Therefore, Kubuntu rewrites your /etc/fstab file according to the version of UUID that it uses, thereby giving each partition on each device a name known only to your computer.<end oversimplify>

                    Since Kubuntu is going to change your fstab file anyway, my suggestion was to give it at least a clue as to where you wanted to put things by generating an old fashioned /etc/fstab file. Kubuntu WILL change it but it will honor your requests. It will just change all your nice device names into stuff known only to the OS and to those nice folks at Fort Meade and Dzerzhinsky Square.

                    Comment


                      #25
                      Re: Accessing a different partiton help !

                      i wouldn't say that was over simplification. A bit of history is handy, sometimes. Can you give me an example of a fstab file so I can modify it to suit my needs?
                      Registered Linux User: 450747<br />Registered Ubuntu User: 16269

                      Comment


                        #26
                        Re: Accessing a different partiton help !

                        Can you give me an example of a fstab file so I can modify it to suit my needs?
                        Here you go.
                        /dev/sda2<tab> /media/WinC<tab>ntfs<tab>defaults<tab>0<tab> 0
                        or more complete:
                        Code:
                        # /etc/fstab: static file system information.
                        #
                        # <file system> <mount point>  <type> <options>    <dump> <pass>
                        proc          /proc          proc  defaults       0        0
                        /dev/sda1     /             ext3  defaults,errors=remount-ro 0    1
                        /dev/sda2     /media/Winc    ntfs-3g   rw,user     0        0
                        /dev/sda5     none          swap  sw        0    0
                        with cd-r/w, and dvd omitted.

                        Comment


                          #27
                          Re: Accessing a different partiton help !

                          Ok, what the heck!

                          Lately, when i run my mounting batch (above) it doesn't put the nifty folder Icons on my desktop It did before. What did I do? How do I get it to put them back?
                          Registered Linux User: 450747<br />Registered Ubuntu User: 16269

                          Comment


                            #28
                            Re: Accessing a different partiton help !

                            added
                            sudo ln -s /mnt/sda1 /home/ant2ne/Desktop
                            sudo ln -s /mnt/sda7 /home/ant2ne/Desktop
                            sudo ln -s /mnt/sda8 /home/ant2ne/Desktop
                            to my batch. But it just isn't the same thing
                            Registered Linux User: 450747<br />Registered Ubuntu User: 16269

                            Comment

                            Working...
                            X