Linux File System Question

Discussion in 'OT Technology' started by Drifter87, Feb 17, 2008.

Thread Status:
Not open for further replies.
  1. Drifter87

    Drifter87 Yippi-kay-ay, Motherfucker

    Joined:
    Jan 5, 2005
    Messages:
    7,173
    Likes Received:
    0
    I seemingly cannot figure this out... :hs:

    Using FDISK and MKFS how do I partition off some space and then create the file system and then finally mount it so it is ready to be used?

    Any help would be awesome :x:
     
  2. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    You don't use FDISK. That's a Microsoft product. Use the Linux install disc to resize your partitions; it comes with tools that can do that as part of the installation process.

    To answer your next question in advance, you don't need to defrag Linux partitions; they avoid fragmentation as long as possible in the first place.
     
  3. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,446
    Likes Received:
    12
    If you haven't learned, ignore this idiot's info.

    Questions before you start. Do you have a new blank disk or are you using an existing disk with free space? Or want to repartition a non linux partitioned disk.

    Use fdisk to delete or create your partition(s). It's an interactive psuedo-menu driven tool.

    use fdisk -l to see what you have and use the following to edit your disks:

    fdisk /dev/hdb

    n for new partition. Select a partition number, select the first sector. Specify end of the partition, size (+####M) is the easiest. Create more if you want. If you want to make more than 4 partitions, partition 4 needs to be an extended partition and the rest are logical partitions within the extended.

    Once created a partition table you like, enter w to write it.

    Use mke2fs -j to create ext3 file systems or ext2 file systems with journaling.

    mke2fs -j /dev/hdb1
    mke2fs -j /dev/hdb2
    .
    .

    Once formated with a file system, then edit your /etc/fstab with the mount points you want. You don't need to add labels, you can just specify the disk partition.

    #disk_partition mount_point file_system mount_options debug_level fsck_level
    /dev/hdb1 /export ext3 noatime 0 2

    Then when you're done editing and creating the mount point directories, mount the file systems

    mount /export

    Let us know exactly what you want to create and some people here that actually KNOW linux will chime out.
     
  4. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    (sigh)

    You gave more detail. You didn't actually correct me anywhere. And everything you said is done automatically by the QtPartEd GUI. Which means you didn't need to say it.

    That's what's wrong with programmers; they can't see the forest for the trees. QtPartEd will handle all of this shit for him; you don't need to explain how to do it manually.
     
  5. Drifter87

    Drifter87 Yippi-kay-ay, Motherfucker

    Joined:
    Jan 5, 2005
    Messages:
    7,173
    Likes Received:
    0
    I need to take empty space and space on an already existing file system... partition it and install a file system.

    We MUST use FDisk, otherwise this would be a cake walk for me.
     
  6. Drifter87

    Drifter87 Yippi-kay-ay, Motherfucker

    Joined:
    Jan 5, 2005
    Messages:
    7,173
    Likes Received:
    0
    When I do the partitioning in FDisk, then go to mount after the reboot it says the device is already mounted, or the system just does not reboot.
     
  7. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    :werd:


    You're pretty fucking stupid. FDISK is a *NIX command. In fact, MANY operating systems have "fdisk".

    And he DID correct you, because there IS a fdisk. And if you want to use the command line to setup partitions it is the de-facto standard. And there are many occassions where it would be benefitial to use fdisk without have to bring a system down for a reboot and cd-boot. In fact, via SSH, that may not even be possible -- as where fdisk works nicely.

    Ever done a custom gentoo install? How about LFS?
     
  8. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    Oh. See, I thought you were a noob trying to set up Ubuntu for the first time, or something, hence the concern about using the CLI to do the partitioning.

    Carry on.
     
  9. crontab

    crontab (uid = 0)

    Joined:
    Nov 14, 2000
    Messages:
    23,446
    Likes Received:
    12
    If you really created a new partition and file system, then you have a syntax error within your /etc/fstab refering to this new partition.

    what's your fdisk -l output, df -h, and cat /etc/fstab.

    What do you mean it doesn't reboot. It doesn't shut down or it doesn't come up complaining about a file system? If your fstab is incorrect, it will prohibit you to boot up. You can boot into single to fix it.
     
  10. Drifter87

    Drifter87 Yippi-kay-ay, Motherfucker

    Joined:
    Jan 5, 2005
    Messages:
    7,173
    Likes Received:
    0
    Wow I was an idiot...

    fdisk /dev/sda was what I was looking for, I kept popping in /dev/sda3 thinking I was working with a third hard drive.

    All it took was the labbie to say "there is only one hard drive in these computers" and it ALL clicked instantly.
     
  11. Harry Caray

    Harry Caray Fine purveyor of x.264, h.264 & TS HD-Video !!! HD

    Joined:
    Apr 19, 2001
    Messages:
    17,176
    Likes Received:
    5
    Location:
    MyCrews:4x4,SoCal,Tesla,EV's
    LOL !!! Yeah, he was the "Noob"....

    Yet, you said...

    Just like the flash disk thread, once you got your ass handed to you, you said...

    :ugh::ugh::ugh:

    Ummm, it was a USB, flash disk thread... what else would it be ???

    Just stop posting...
     
  12. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    I conceded the point. Let it go.

    Wait, what? When was this? Link to the thread, I want to read it.
     
  13. GOGZILLA

    GOGZILLA Double-Uranium Member

    Joined:
    Jan 16, 2003
    Messages:
    10,760
    Likes Received:
    3
    Location:
    Plantation, FL
    :rofl: out of nowhere!
     
  14. Harry Caray

    Harry Caray Fine purveyor of x.264, h.264 & TS HD-Video !!! HD

    Joined:
    Apr 19, 2001
    Messages:
    17,176
    Likes Received:
    5
    Location:
    MyCrews:4x4,SoCal,Tesla,EV's
    HERE YOU FUCKING GO YOU MORON...

    http://forums.offtopic.com/showthread.php?t=3673525

    The title of the thread was..
    "
    Are SD cards capable of being as fast as usb flash drives?"

    and once you get you're ass handed to you AGAIN, and in most threads... you say...

    Why in the HELL would we/they be talking USB HD drives ??? It was a CF thread ??? As in SD/CF !!!

    DUH !!!
     
  15. sonicsuby

    sonicsuby New Member

    Joined:
    Mar 15, 2000
    Messages:
    21,338
    Likes Received:
    0
    Location:
    CA
    This is the most cut throat forum on OT :rofl:
     
  16. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    if you wanted to work with the third drive, it would be /dev/sdc.

    the number after the letter denotes partition number, and is used primarily when mounting a filesystem.
     
  17. deusexaethera

    deusexaethera OT Supporter

    Joined:
    Jan 27, 2005
    Messages:
    19,712
    Likes Received:
    0
    Thank you. I could have guessed, but I wanted to know which thread you looked at. By the way, I went ahead and made that a hyperlink for you; I know it's tricky.
    All USB mass storage devices are treated identically, be they USB memory drives, USB card readers, or USB hard drives; they all have bridge chips somewhere in the mix. And CompactFlash wasn't part of the discussion. You quoted the title; you should know that.

    Not to mention, you more or less completely misread the entire fucking thread if you actually think I got my ass handed to me.
    Duh indeed. Try to be less wrong next time you want to cut me a new asshole.
     
  18. Harry Caray

    Harry Caray Fine purveyor of x.264, h.264 & TS HD-Video !!! HD

    Joined:
    Apr 19, 2001
    Messages:
    17,176
    Likes Received:
    5
    Location:
    MyCrews:4x4,SoCal,Tesla,EV's
    You're right... I'm sorry for cutting you soooo deep...

    The next time "SD cards " & "USB ports" are in a thread title, etc...

    I'll start talking about 10gb ethernet or SAS hard drives since its all "relative"

    Sorry for me being stupid :uh:

    I mean, you're the one that's trying to look like Jonathan from Sun with that hairdo and all... being all smart !!!

    http://blogs.sun.com/jonathan/

    But I guess the SMART isn't coming over
     
  19. Nocera

    Nocera ...

    Joined:
    Aug 9, 2000
    Messages:
    1,307
    Likes Received:
    0
    Location:
    Long Island, NY
    Alright guys, we all get the point.
     
Thread Status:
Not open for further replies.

Share This Page