Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
when i installed ubuntu i partitioned 2 chucks 130gb a piece for backup, i did not format it to any type , and there is a folder in each called ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    18

    [SOLVED] partition help?

    when i installed ubuntu i partitioned 2 chucks 130gb a piece for backup, i did not format it to any type , and there is a folder in each called lost+found, i cannot create files inside them for some reason, i think i need to format them also when i installed i didnt assign them to anything for example its not /boot or /home i just left it blank did i mess it up? im tryin to use these for a ftp server so i need to format them and just need to know if i need to assign them anything like /root or whatever, sorry i am new to linux i know nothing about it TY TY

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    /boot or /home are mount points, not format. Your disks are already formated (the lost+found gives it away) you just need to edit your mount point. check either /etc/fstab, or edit your `mount /dev/?da[0-9] /mount/point` command. also, lost+found is a directory that is placed onto all ext filesystems for recovery of files that asploded into nothing (I dont remember how it works exactly.)
    you are not meant to PUT stuff into them, just take it out.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    We have to check partition structure of your hard disk first. Its not possible write anything in Linux partition before gaining its ownership.

    Open Terminal/Konsole and execute this
    Code:
    id
    sudo fdisk -l
    df -h
    Post output here.

    * Its small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    May 2009
    Posts
    18

    ok

    dubskies@dubskies-linux:~$ id
    uid=1000(dubskies) gid=1000(dubskies) groups=4(adm),20(dialout),24(cdrom),46(plugdev),10 8(lpadmin),123(admin),124(sambashare),1000(dubskie s)
    dubskies@dubskies-linux:~$ sudo fdisk -l

    Disk /dev/sda: 400.0 GB, 400088457216 bytes
    255 heads, 63 sectors/track, 48641 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000bd4d4

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 608 4883728+ 82 Linux swap / Solaris
    /dev/sda2 609 48641 385825072+ 5 Extended
    /dev/sda5 609 6687 48829536 83 Linux
    /dev/sda6 6688 22492 126953631 83 Linux
    /dev/sda7 22493 38297 126953631 83 Linux
    /dev/sda8 38298 48641 83088148+ 83 Linux
    dubskies@dubskies-linux:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda5 46G 2.3G 42G 6% /
    tmpfs 1008M 0 1008M 0% /lib/init/rw
    varrun 1008M 112K 1008M 1% /var/run
    varlock 1008M 0 1008M 0% /var/lock
    udev 1008M 2.7M 1006M 1% /dev
    tmpfs 1008M 248K 1008M 1% /dev/shm
    lrm 1008M 2.0M 1006M 1% /lib/modules/2.6.27-7-generic/volatile
    /dev/sda6 120G 279M 113G 1% /home

  5. #5
    Just Joined!
    Join Date
    May 2009
    Posts
    18

    also

    also i just dont know how to HD setup work with linux , but basically im gonna use those 2 drives, the 130gb and 80gb to backup files onto and does that mean i have to "Mount" them every time i need to use them? i just dont know linux enough im just getting started with it thank you!!

  6. #6
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,946
    Your fdisk output shows your root (/) partition as sda5 and your /home partition as sda6. You refer to 130GB and 80GB drives but your output only shows one 400GB drive? Are you confusing drives with partitions? You have two other partitions, sda7 and sda8, are these the paritions you are referring to?

  7. #7
    Just Joined!
    Join Date
    May 2009
    Posts
    18
    yes sda7 and sda8 are what i want to use for backing up, i meant partitions, and hwy do i need to always mount them? and how do i format them>? and if im formatting them for windows files do i need to format to a special type? and how do i make it so i dont need to mount them?

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    There is no need to format partitions in Windows based filesystems, NTFS or FAT32 because there isn't any Windows OS installed in your Hard disk.

    Are you planning to install Windows OS?

    Edit /etc/fstab file and add code to automount both partitions.
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/fstab
    It will open /etc/fstab file in Gedit with root privileges.
    Add these lines at the end of file :
    Code:
    /dev/sda7   /media/sda7  ext3  defaults      0      0
    /dev/sda8   /media/sda8  ext3  defaults      0      0
    Save file and execute this in Terminal :
    Code:
    cd /media
    sudo mkdir sda7 sda8
    chown -R dubskies:dubskies sda7
    chown -R dubskies:dubskies sda8
    Above commands will create mount_points ( folders ) for /dev/sda7 and /dev/sda8 partitions. chown command will give ownership of both to user dubskies.

    Reboot machine and you will have full access to /dev/sda7 and sda8 partitions mounted at /media/sda7 and /media/sda8 folders.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    May 2009
    Posts
    18

    ok

    now ere gettin into problems, everything worked but

    chown -R dubskies:dubskies sda7
    chown -R dubskies:dubskies sda8

    they didnt work at all and not i restarted and ran it and it went thru every file in 7 and said operation not permitted, like a scrolling clusterfunk, Now when i run the command it says

    skies@dubskies-linux:~$ chown -R dubskies:dubskies sda7
    chown: cannot access `sda7': No such file or directory
    dubskies@dubskies-linux:~$

  10. #10
    Linux User kmitnick's Avatar
    Join Date
    May 2008
    Location
    Jordan - Amman
    Posts
    329
    you have to be in /media so devils casper told you to be in /media by using
    cd /media
    then
    mkdir sda7 sda8
    and finally execute
    chown -R dubskies:dubskies sda7
    chown -R dubskies:dubskies sda8
    -R is for recursion since we want to change owner of all files inside these two folders
    good luck
    Dual Booting Ubuntu 10.04, Windows 7

    Toshiba Satellite A200-1M5, Duo Core 2.0 Ghz, 1 Gigs RAM, 256 Intel Card

    You are registered Linux user number 490788
    Happy Linuxing

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...