Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45

Thread: How to format hard drive?

  1. #21
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: How to format hard drive?

    Quote Originally Posted by richardjennings View Post
    gretarsson have you changed any of the partitions since the screen shots you posted? The screen shot shows the partition /dev/sdb1 mounted at /media/disk with over 400gb of free space.
    different pc

  2. #22
    Join Date
    May 2008
    Location
    Iceland
    Beans
    111
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: How to format hard drive?

    Quote Originally Posted by forestpixie View Post
    He he he - makes all the differnce Once you have the information you can, make a suitable folder for it to mount to , edit fstab and chmod as required

    Make folder - choose name to suit

    Code:
    sudo mkdir /media/name
    Edit fstab

    Code:
    gksudo gedit /etc/fstab
    Add this to fstab



    Code:
    sudo chown user.user /media/name
    sudo chmod 770 /media/name
    Whatever you use as name should be the same in all instances

    Check that it has mounted properly with

    Code:
    sudo mount -a
    Hi again
    I can not see 500GB disk on that list but he come up on file map (places)
    that disk I need to fix
    here are the right list from my son pc
    code:
    bjarki@bjarki:~$ sudo blkid
    [sudo] password for bjarki:
    /dev/sda1: UUID="1b54e307-65a8-4b8d-8b68-a6100071e046" TYPE="ext3"
    /dev/sda5: TYPE="swap" UUID="898d45f4-e0d5-463d-9fc9-70377542f6bd"
    /dev/sdb1: UUID="67a154f1-01ab-4c12-9256-0c42974cb372" SEC_TYPE="ext2" TYPE="ext3"
    /dev/sdb5: TYPE="swap" UUID="ea9d297b-a480-4237-afe6-9473764dfba0"
    bjarki@bjarki:~$ cat /etc/fstab
    # /etc/fstab: static file system information.
    #
    # -- This file has been automaticly generated by ntfs-config --
    #
    # <file system> <mount point> <type> <options> <dump> <pass>

    proc /proc proc defaults 0 0
    # Entry for /dev/sda1 :
    UUID=1b54e307-65a8-4b8d-8b68-a6100071e046 / ext3 relatime,errors=remount-ro 0 1
    # Entry for /dev/sda5 :
    UUID=898d45f4-e0d5-463d-9fc9-70377542f6bd none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
    bjarki@bjarki:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 142G 19G 116G 14% /
    varrun 1.5G 224K 1.5G 1% /var/run
    varlock 1.5G 0 1.5G 0% /var/lock
    udev 1.5G 60K 1.5G 1% /dev
    devshm 1.5G 12K 1.5G 1% /dev/shm
    lrm 1.5G 44M 1.5G 3% /lib/modules/2.6.24-20-generic/volatile
    gvfs-fuse-daemon 142G 19G 116G 14% /home/bjarki/.gvfs
    bjarki@bjarki:~$ fdisk -l
    bjarki@bjarki:~$
    bjarki@bjarki:~$ fdisk -h
    fdisk: invalid option -- h

    Usage: fdisk [-b SSZ] [-u] DISK Change partition table
    fdisk -l [-b SSZ] [-u] DISK List partition table(s)
    fdisk -s PARTITION Give partition size(s) in blocks
    fdisk -v Give fdisk version
    Here DISK is something like /dev/hdb or /dev/sda
    and PARTITION is something like /dev/hda7
    -u: give Start and End in sector (instead of cylinder) units
    -b 2048: (for certain MO disks) use 2048-byte sectors
    bjarki@bjarki:~$ mount
    /dev/sda1 on / type ext3 (rw,relatime,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.24-20-generic/volatile type tmpfs (rw)
    securityfs on /sys/kernel/security type securityfs (rw)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfs-fuse-daemon on /home/bjarki/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bjarki)
    /dev/sdb1 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)
    The live is to short to be microsoft user Ubuntu

  3. #23
    Join Date
    May 2008
    Location
    Iceland
    Beans
    111
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: How to format hard drive?

    Quote Originally Posted by gretarsson View Post
    Hi again
    I can not see 500GB disk on that list but he come up on file map (places)
    that disk I need to fix
    here are the right list from my son pc
    code:
    bjarki@bjarki:~$ sudo blkid
    [sudo] password for bjarki:
    /dev/sda1: UUID="1b54e307-65a8-4b8d-8b68-a6100071e046" TYPE="ext3"
    /dev/sda5: TYPE="swap" UUID="898d45f4-e0d5-463d-9fc9-70377542f6bd"
    /dev/sdb1: UUID="67a154f1-01ab-4c12-9256-0c42974cb372" SEC_TYPE="ext2" TYPE="ext3"
    /dev/sdb5: TYPE="swap" UUID="ea9d297b-a480-4237-afe6-9473764dfba0"
    bjarki@bjarki:~$ cat /etc/fstab
    # /etc/fstab: static file system information.
    #
    # -- This file has been automaticly generated by ntfs-config --
    #
    # <file system> <mount point> <type> <options> <dump> <pass>

    proc /proc proc defaults 0 0
    # Entry for /dev/sda1 :
    UUID=1b54e307-65a8-4b8d-8b68-a6100071e046 / ext3 relatime,errors=remount-ro 0 1
    # Entry for /dev/sda5 :
    UUID=898d45f4-e0d5-463d-9fc9-70377542f6bd none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
    bjarki@bjarki:~$ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda1 142G 19G 116G 14% /
    varrun 1.5G 224K 1.5G 1% /var/run
    varlock 1.5G 0 1.5G 0% /var/lock
    udev 1.5G 60K 1.5G 1% /dev
    devshm 1.5G 12K 1.5G 1% /dev/shm
    lrm 1.5G 44M 1.5G 3% /lib/modules/2.6.24-20-generic/volatile
    gvfs-fuse-daemon 142G 19G 116G 14% /home/bjarki/.gvfs
    bjarki@bjarki:~$ fdisk -l
    bjarki@bjarki:~$
    bjarki@bjarki:~$ fdisk -h
    fdisk: invalid option -- h

    Usage: fdisk [-b SSZ] [-u] DISK Change partition table
    fdisk -l [-b SSZ] [-u] DISK List partition table(s)
    fdisk -s PARTITION Give partition size(s) in blocks
    fdisk -v Give fdisk version
    Here DISK is something like /dev/hdb or /dev/sda
    and PARTITION is something like /dev/hda7
    -u: give Start and End in sector (instead of cylinder) units
    -b 2048: (for certain MO disks) use 2048-byte sectors
    bjarki@bjarki:~$ mount
    /dev/sda1 on / type ext3 (rw,relatime,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.24-20-generic/volatile type tmpfs (rw)
    securityfs on /sys/kernel/security type securityfs (rw)
    binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
    gvfs-fuse-daemon on /home/bjarki/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=bjarki)
    /dev/sdb1 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)
    I tried to do this but I not sure if it works

    bjarki@bjarki:~$ sudo mkdir /media/auka
    bjarki@bjarki:~$ gksudo gedit /etc/fstab
    bjarki@bjarki:~$ sudo chown user.user /media/name
    chown: invalid user: `user.user'
    bjarki@bjarki:~$ sudo chown user.user /media/name
    chown: invalid user: `user.user'
    bjarki@bjarki:~$ sudo chown user.user /media/auka
    chown: invalid user: `user.user'
    bjarki@bjarki:~$ sudo chmod 770 /media/auka
    bjarki@bjarki:~$ sudo mount -a
    mount: special device /dev/disk/by-uuid/getnumberfromblkid does not exist
    bjarki@bjarki:~$
    file name is auka. (it mean extra)
    -------------------------------------------
    Here are me list from fstab
    -------------------------------------------
    # /etc/fstab: static file system information.
    #
    # -- This file has been automaticly generated by ntfs-config --
    #
    # <file system> <mount point> <type> <options> <dump> <pass>

    proc /proc proc defaults 0 0
    # Entry for /dev/sda1 :
    UUID=1b54e307-65a8-4b8d-8b68-a6100071e046 / ext3 relatime,errors=remount-ro 0 1
    # Entry for /dev/sda5 :
    UUID=898d45f4-e0d5-463d-9fc9-70377542f6bd none swap sw 0 0
    /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
    #dev#sdb
    UUID=getnumberfromblkid /media/auka ext3 relatime 0 2
    Last edited by gretarsson; July 27th, 2008 at 01:29 PM.
    The live is to short to be microsoft user Ubuntu

  4. #24
    Join Date
    Jul 2007
    Location
    st louis mo usa
    Beans
    1,477
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to format hard drive?

    I found that when attempting to add dual boot HH-8.04 on my wife's vista laptop I had to use the vista partition utility, as gparted, partition magic, and several others would not work.

    after reducing the vista partition the "select unused space" option appeared in the HH install.

    so the question is how was it partitioned/formatted?
    Last edited by armandh; July 27th, 2008 at 01:25 PM.
    OS upgrade with no hardware upgrade: $0.
    having a smooth first install: ....priceless.

  5. #25
    Join Date
    Feb 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to format hard drive?

    Are you on the correct pc now gretarsson?

    can you post

    Code:
    df
    &

    Code:
    sudo fdisk -l
    &

    Code:
    sudo fschk /dev/sdb1

  6. #26
    Join Date
    May 2008
    Location
    Iceland
    Beans
    111
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: How to format hard drive?

    Quote Originally Posted by richardjennings View Post
    Are you on the correct pc now gretarsson?

    can you post

    Code:
    df
    &

    Code:
    sudo fdisk -l
    &

    Code:
    sudo fschk /dev/sdb1
    Hi again here are the list
    ------------------------------------
    bjarki@bjarki:~$ df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda1 148721272 19739672 121486476 14% /
    varrun 1548728 224 1548504 1% /var/run
    varlock 1548728 0 1548728 0% /var/lock
    udev 1548728 60 1548668 1% /dev
    devshm 1548728 12 1548716 1% /dev/shm
    lrm 1548728 44968 1503760 3% /lib/modules/2.6.24-20-generic/volatile
    gvfs-fuse-daemon 148721272 19739672 121486476 14% /home/bjarki/.gvfs
    /dev/sdb1 475539124 2333632 449239728 1% /media/disk
    bjarki@bjarki:~$ sudo fdisk -l
    [sudo] password for bjarki:

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x00005e8c

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 18662 149902483+ 83 Linux
    /dev/sda2 18663 19457 6385837+ 5 Extended
    /dev/sda5 18663 19457 6385806 82 Linux swap / Solaris

    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x000b2e40

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 59672 479315308+ 83 Linux
    /dev/sdb2 59673 60801 9068692+ 5 Extended
    /dev/sdb5 59673 60801 9068661 82 Linux swap / Solaris
    bjarki@bjarki:~$ sudo fschk /dev/sdb1
    sudo: fschk: command not found
    bjarki@bjarki:~$
    The live is to short to be microsoft user Ubuntu

  7. #27
    Join Date
    May 2008
    Location
    Iceland
    Beans
    111
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: How to format hard drive?

    Quote Originally Posted by armandh View Post
    I found that when attempting to add dual boot HH-8.04 on my wife's vista laptop I had to use the vista partition utility, as gparted, partition magic, and several others would not work.

    after reducing the vista partition the "select unused space" option appeared in the HH install.

    so the question is how was it partitioned/formatted?
    Hi I but in ubuntu install disk and lit it install ubuntu on that extra disk with out karnel boot so it will not mess out me start up and that disk is ext3 now
    The live is to short to be microsoft user Ubuntu

  8. #28
    Join Date
    Feb 2007
    Beans
    Hidden!
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: How to format hard drive?

    ok so it is definately sdb1, and is definately mounted, and definately has free space.

    im sorry i spelt the command wrongly,

    can you run this:

    Code:
    sudo fsck /dev/sdb1

  9. #29
    Join Date
    May 2008
    Location
    Iceland
    Beans
    111
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: How to format hard drive?

    Quote Originally Posted by richardjennings View Post
    ok so it is definately sdb1, and is definately mounted, and definately has free space.

    im sorry i spelt the command wrongly,

    can you run this:

    Code:
    sudo fsck /dev/sdb1
    Here is my terminal out print
    -----------------------------------

    bjarki@bjarki:~$ sudo fsck /dev/sdb1
    [sudo] password for bjarki:
    fsck 1.40.8 (13-Mar-2008)
    e2fsck 1.40.8 (13-Mar-2008)
    /dev/sdb1 is mounted.

    WARNING!!! Running e2fsck on a mounted filesystem may cause
    SEVERE filesystem damage.

    Do you really want to continue (y/n)? yes

    /dev/sdb1: recovering journal
    /dev/sdb1: clean, 108035/29958144 files, 1527454/119828827 blocks
    bjarki@bjarki:~$
    The live is to short to be microsoft user Ubuntu

  10. #30
    Join Date
    May 2008
    Location
    Iceland
    Beans
    111
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: How to format hard drive?

    Quote Originally Posted by gretarsson View Post
    Here is my terminal out print
    -----------------------------------

    bjarki@bjarki:~$ sudo fsck /dev/sdb1
    [sudo] password for bjarki:
    fsck 1.40.8 (13-Mar-2008)
    e2fsck 1.40.8 (13-Mar-2008)
    /dev/sdb1 is mounted.

    WARNING!!! Running e2fsck on a mounted filesystem may cause
    SEVERE filesystem damage.

    Do you really want to continue (y/n)? yes

    /dev/sdb1: recovering journal
    /dev/sdb1: clean, 108035/29958144 files, 1527454/119828827 blocks
    bjarki@bjarki:~$
    ----------------------------------------------
    Is sdb1 my 500GB disk and sdb2 my 250GB, sdb2 is ok I put up ubuntu on both disk but I need to format 500GB disk

    /dev/sdb1 1 59672 479315308+ 83 Linux
    /dev/sdb2 59673 60801 9068692+ 5 Extended
    ----------------------------------------------
    I but in ubuntu install disk and lit it install ubuntu on that extra disk with out karnel boot so it will not mess out me start up and that disk is ext3 now
    Last edited by gretarsson; July 27th, 2008 at 02:20 PM.
    The live is to short to be microsoft user Ubuntu

Page 3 of 5 FirstFirst 12345 LastLast

Bookmarks

Posting Permissions

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