1. SPS Accounts:
    Do you find yourself coming back time after time? Do you appreciate the ongoing hard work to keep this community focused and successful in its mission? Please consider supporting us by upgrading to an SPS Account. Besides the warm and fuzzy feeling that comes from supporting a good cause, you'll also get a significant number of ever-expanding perks and benefits on the site and the forums. Click here to find out more.
    Dismiss Notice
Dismiss Notice
You are currently viewing Boards o' Magick as a guest, but you can register an account here. Registration is fast, easy and free. Once registered you will have access to search the forums, create and respond to threads, PM other members, upload screenshots and access many other features unavailable to guests.

BoM cultivates a friendly and welcoming atmosphere. We have been aiming for quality over quantity with our forums from their inception, and believe that this distinction is truly tangible and valued by our members. We'd love to have you join us today!

(If you have any problems with the registration process or your account login, please contact us. If you've forgotten your username or password, click here.)

A question about Linux scrip (Ubuntu)

Discussion in 'Techno-Magic' started by Ofelix, Jan 1, 2008.

  1. Ofelix

    Ofelix The world changes, we do not, what irony!

    Joined:
    Dec 19, 2002
    Messages:
    5,989
    Media:
    5
    Likes Received:
    111
    Gender:
    Male
    Okay, I've some questions concerning Linux

    First: A little script I was working on recently. I know I'm not very linux-literate and I don't know why the script isn't working. Otherwise I wouldn't post here :p

    Okay here's the thing; I've now two "physical" hard drives, an internet SATA 25GO and an external SATA 500GO.

    The internal has three partition,
    a 135 GO NTFS for winXP (I stlll use it for games)
    a 80 GO FAT32 for files that I want to be both read and wrote by both OSes
    a 30 GO EXT3 for Ubuntu

    The External has only one partition and is formated in FAT32 and serves the same purpose has the other FAT32 (I.E files that both OSes can access)

    However when I boot up the EXT3 and the external 500GO FAT32 disks mount themselves automaticaly, but not the NTFS and 80GO FAT32. And it bothers me, so I want to write a script that would run on boot to mount them. Here's what I've written;

    sudo mount /dev/sda1 -r -t NTFS /media/disk
    sudo mount /dev/sda2 -r -w -t FAT32 /media/disk-1

    Okay it's pretty damn basic, but hey it doesn't work. Oh and for obvious reason I don't want Linux to be able to write on my NTFS.

    What am i doing wrong? And I'll say it again, I know next to nothing in Linux.

    Second: Is there another File system that both WinXP and Linux can access other than FAT32? I just don't like the fact that it can't have files larger than 4GO. As soon as I get my digital camera working, I want to do some amateur cinema again and I'll need some serious spaces on my hard drives to edit these video files and I fear some of my project will be larger than 4GO. Of course I could use some free winXP software, but I've found this semi-professional open source software on Linux that just kicks ass. And having using Adobe Premier PRO at college for editing I can't fall back to software like windows movie maker, iMoviee or some POS like that.

    NB: I'll acknowledge that for some people these softwares are enough, but not for my tastes. I *know* how the more advances editing tools works. I just didn't want to sound elitist, is all :p
     
  2. Morgoth

    Morgoth La lune ne garde aucune rancune Veteran

    Joined:
    Jul 21, 2002
    Messages:
    3,652
    Media:
    8
    Likes Received:
    86
    Gender:
    Male
    About the first question, have you looked at the /etc/fstab file? Any disk mentioned therein will be mounted on startup.

    I don't have any advice on the second question, I have never heard of any other fs format supported by windows XP
     
  3. Ofelix

    Ofelix The world changes, we do not, what irony!

    Joined:
    Dec 19, 2002
    Messages:
    5,989
    Media:
    5
    Likes Received:
    111
    Gender:
    Male
    Okay for the benefit of ... anyone who can understand that here's my entire fstab file
     
  4. Morgoth

    Morgoth La lune ne garde aucune rancune Veteran

    Joined:
    Jul 21, 2002
    Messages:
    3,652
    Media:
    8
    Likes Received:
    86
    Gender:
    Male
    /dev/sda1 /media/disk ntfs defaults,umask=222 0 0
    /dev/sda2 /media/disk-1 fat32 defaults,umask=000 0 0

    Adding these two lines to the file *should* do the job. Make sure that there are tabs (or just some spaces) between the columns. The ntfs is loaded and is unwritable by anyone, the fat32 is writable by everyone.
    You check if these lines work, without restarting, by executing 'sudo mount /media/disk'.
     
Sorcerer's Place is a project run entirely by fans and for fans. Maintaining Sorcerer's Place and a stable environment for all our hosted sites requires a substantial amount of our time and funds on a regular basis, so please consider supporting us to keep the site up & running smoothly. Thank you!

Sorcerers.net is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on amazon.com, amazon.ca and amazon.co.uk. Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.