• ubuntu 디스크추가 참고사이트
    OS/linux 2012.12.31 18:54

    디스크추가 참고사이트


    ls /dev/sd*
    /dev/sda  /dev/sda1  /dev/sda2  /dev/sda5

    sudo fdisk /dev/sdb
    [sudo] password for johndoe:
    Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
    Building a new DOS disklabel with disk identifier 0xc2fe324b.
    Changes will remain in memory only, until you decide to write them.
    After that, of course, the previous content won't be recoverable.
    Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
    Command (m for help): 

    sudo mkfs.ext3 -L /photos /dev/sdb1
    mke2fs 1.40.2 (12-Jul-2007)
    Filesystem label=/photos
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    262144 inodes, 524112 blocks
    26205 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=536870912
    16 block groups
    32768 blocks per group, 32768 fragments per group
    16384 inodes per group
    Superblock backups stored on blocks: 
            32768, 98304, 163840, 229376, 294912
    Writing inode tables: done                            
    Creating journal (8192 blocks): done
    Writing superblocks and filesystem accounting information: done
    This filesystem will be automatically checked every 28 mounts or
    180 days, whichever comes first.  Use tune2fs -c or -i to override.

    /dev/sda1 on / type ext3 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    /sys on /sys type sysfs (rw,noexec,nosuid,nodev)
    varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
    varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
    udev on /dev type tmpfs (rw,mode=0755)
    devshm on /dev/shm type tmpfs (rw)
    devpts on /dev/pts type devpts (rw,gid=5,mode=620)
    lrm on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
    securityfs on /sys/kernel/security type securityfs (rw)
    /dev/sdb1 on /photos type ext3 (rw)

    Configuring Ubuntu to Automatically Mount a Filesystem

    In order to set up the system so that the new file system is automatically mounted at boot time, an entry needs to be added to the /etc/fstab file. This may be edited by issuing the following command in a terminal window:

    sudo gedit /etc/fstab

    The following example shows an /etc/fstab file configured to automount our /photos partition:

    # /etc/fstab: static file system information.
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    # /dev/sda1
    UUID=4a621e4d-8c8b-4b39-8934-98ab8aa52ebc /               ext3    defaults,errors=remount-ro 0       1
    # /dev/sda5
    UUID=9c82bf09-c6f7-4042-8927-34e46518b224 none            swap    sw              0       0
    /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec 0       0
    /dev/fd0        /media/floppy0  auto    rw,user,noauto,exec 0       0
    /dev/sdb1       /photos         auto    defaults        0       0

    'OS > linux' 카테고리의 다른 글

    virtualbox 설치 후 실행 오류처리  (0) 2013.01.01
    파티션이동관련 내용 참조용  (0) 2012.12.31
    ubuntu 디스크추가 참고사이트  (0) 2012.12.31
    reinstall GRUB in ubuntu  (0) 2012.10.16
    iso 이미지 USB로 넣기  (0) 2012.10.16
    Ubuntu Mysql 설치  (0) 2012.10.06

    댓글 0

Designed by Tistory.