Results 1 to 4 of 4

Thread: Error -3002 when trying to size /home

Hybrid View

  1. #1

    Default Error -3002 when trying to size /home

    Hi,

    I am a recent Linux user so this question has probably a trivial answer. I have dual boot on my pc with opensuse 11.1 and windows xp, each system being installed on different hard-drives.
    The drive containing opensuse is currently divided as follows:

    Device Size F Type FS Type Label Mount Point
    /dev/sdb/
    /dev/sdb1/ 8.00 Gb Linux swap Swap swap
    /dev/sdb2/ 50.00 Gb Linux native Ext3 /
    /dev/sdb3/ 200.00 Gb Linux native Ext3 /home

    I recently deleted a 450 Gb FAT sdb4 drive without any problem in Expert Partitioner. Now I would like to shrink the sdb3 drive. In Expert Partitioner, I start by editing the device (Format partition to ext3 + 'do not mount partition' ) then I resize the drive to 100 Gb. But I try to execute those changes, Yast yells at me and error an error -3002.

    What should I do ?

    Thanks for any help you could provide.

  2. #2
    palladium NNTP User

    Default Re: Error -3002 when trying to size /home

    pomchip wrote:
    > Hi,
    >
    > I am a recent Linux user so this question has probably a trivial
    > answer. I have dual boot on my pc with opensuse 11.1 and windows xp,
    > each system being installed on different hard-drives.
    > The drive containing opensuse is currently divided as follows:
    >
    > Device Size F Type FS Type Label Mount Point
    > /dev/sdb/
    > /dev/sdb1/ 8.00 Gb Linux swap Swap swap
    > /dev/sdb2/ 50.00 Gb Linux native Ext3 /
    > /dev/sdb3/ 200.00 Gb Linux native Ext3 /home
    >
    > I recently deleted a 450 Gb FAT sdb4 drive without any problem in
    > Expert Partitioner. Now I would like to shrink the sdb3 drive. In Expert
    > Partitioner, I start by editing the device (Format partition to ext3 +
    > 'do not mount partition' ) then I resize the drive to 100 Gb. But I try
    > to execute those changes, Yast yells at me and error an error -3002.
    >
    > What should I do ?
    >
    > Thanks for any help you could provide.
    >
    >

    i do not know what an error 3002 is (STUPID it does not SAY what 3002
    is!!) but i GUESS you logged into the machine as yourself, and
    therefore have access to *your* account which is in /home... AND you
    remain IN your home with its stuff active as you 'become root' in
    YaST....therefore, /dev/sdb3/ (because it contains /home/[you]) *is*
    mounted and i guess the words that go with 3002 is something like:
    YaST Error 3002: HEY! You cannot resize a mounted drive.

    which means you have to run the partitioner without first signing in
    as yourself....and UNmount /dev/sdb3/ before you try to run the
    partitioner..

    there are several ways to do that...

    1. boot from you openSUSE Live CD, check that your /dev/sdb3/ is not
    mounted (i do not know if it will automount what if finds, or not),
    and then run the GUI YaST expert partitioner that you are used to..

    2. boot from your hard drive and at that first boot prompt, type the
    number 3, then log in as root, issue this command

    Code:
    umount
    note that the command unmount doesn't work!

    and run

    Code:
    yast
    then navigate to System > Partitioner where you will be using exactly
    the same tool you used in the GUI, but it will 'look' different...


    3. or, i GUESS you can at the first boot screen select fail safe,
    rescue system (or single user, or something---i forget, mine auto
    boots while i'm making coffee) which (i think) will allow you to
    unmount that partion as root, and then run the partitioner..

    have a lot of fun, safely..(do NOT even consider logging into KDE,
    GNOME or other desktop environment as root to do this job...)

    --
    palladium

  3. #3
    Join Date
    Dec 2008
    Location
    GMT-7
    Posts
    382

    Default Re: Error -3002 when trying to size /home

    As @palladium pointed out - you can't resize a partition while you're using it - and since you're logged in as a "regular" user, you're using it.

    To avoid these kinds of problems, I always use GParted, which is a bootable CD with a partitioning tool on it. This ensures none of you harddrive partitions are mounted (since you booted off a CD).

    There's ample documentation on the interweb on this tool.

    NOTE: AS ALWAYS, BACKUP ALL YOUR DATA WHILE YOU STILL CAN, WHICH IS BEFORE YOU START!
    Desk: AMD Phenom II X4 945 8GB RAM Radeon HD 3300 Arch Linux Xfce 4.8
    Lap: Intel 2.13GHz Core i3 M330 8GB RAM nVidia GeForce 310M Arch Linux KDE 4.7.3

  4. #4

    Default Re: Error -3002 when trying to size /home

    Thanks Palladium,

    Option 2 worked like a charm. Just had recreate my user profile for some reason. Did not mind because there was nothing in it anyway.

Tags for this Thread

Posting Permissions

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