UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 1st, 2013, 10:06 PM
sdez_ sdez_ is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 3 sdez_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 27 sec
Reputation Power: 0
Help... resize partition

I have a MYBook Live Duo and I am trying to switch 2tb drives with 3tb drives. I can get the partition resized but then the drive does not see the partition. below is some info of the drive..the /dev/md3 is the part that I can't get to show after I resize it


Last login: Fri Feb 1 19:36:51 on ttys001
24-GHz-quad-core-MacBook-Pro:~ sdez$ ssh root@192.168.0.103
root@192.168.0.103's password:
Linux MyBookLiveDuo 2.6.32.11-svn70860 #1 Thu May 17 13:32:51 PDT 2012 ppc
Disclaimer: SSH provides access to the network device and all its
content, only users with advanced computer networking and Linux experience
should enable it. Failure to understand the Linux command line interface
can result in rendering your network device inoperable, as well as allowing
unauthorized users access to your network. If you enable SSH, do not share
the root password with anyone you do not want to have direct access to all
the content on your network device.

MyBookLiveDuo:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 1.9G 563M 1.3G 31% /
tmpfs 50M 0 50M 0% /lib/init/rw
udev 10M 1.3M 8.8M 13% /dev
tmpfs 50M 0 50M 0% /dev/shm
tmpfs 50M 3.9M 47M 8% /tmp
ramlog-tmpfs 20M 5.0M 16M 25% /var/log
/dev/md3 1.9T 2.1G 1.9T 1% /DataVolume
MyBookLiveDuo:~# parted
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 5860533168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 30720s 1032191s 1001472s linux-swap(v1) primary raid
1 1032192s 5031935s 3999744s ext3 primary raid
2 5031936s 9031679s 3999744s ext3 primary raid
4 9031680s 3907028991s 3897997312s ext4 primary raid

(parted) quit
MyBookLiveDuo:~#

Reply With Quote
  #2  
Old February 2nd, 2013, 06:37 AM
sdez_ sdez_ is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 3 sdez_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 27 sec
Reputation Power: 0
More info about problem

here is the process i follow. My problem is that /dev/md3 does not show or mount when I am finished. It is resized.

ssh into drive

MyBookLiveDuo:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 1.9G 564M 1.3G 31% /
tmpfs 50M 0 50M 0% /lib/init/rw
udev 10M 960K 9.1M 10% /dev
tmpfs 50M 0 50M 0% /dev/shm
tmpfs 50M 4.2M 46M 9% /tmp
ramlog-tmpfs 20M 3.9M 17M 20% /var/log
/dev/md3 1.9T 2.1G 1.9T 1% /DataVolume
MyBookLiveDuo:~# /etc/init.d/mionet stop
-bash: /etc/init.d/mionet: No such file or directory
MyBookLiveDuo:~# /etc/init.d/twonky stop
-bash: /etc/init.d/twonky: No such file or directory
MyBookLiveDuo:~# /etc/init.d/itunes stop
Stopping itunes server: forked-daapd.
MyBookLiveDuo:~# umount /CacheVolume
umount: /CacheVolume: device is busy
umount: /CacheVolume: device is busy
MyBookLiveDuo:~# umount /nfs
MyBookLiveDuo:~# umount /shares
umount: /shares: device is busy
umount: /shares: device is busy
MyBookLiveDuo:~# umount /DataVolume
MyBookLiveDuo:~# parted
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 5860533168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 30720s 1032191s 1001472s linux-swap(v1) primary raid
1 1032192s 5031935s 3999744s ext3 primary raid
2 5031936s 9031679s 3999744s ext3 primary raid
4 9031680s 3907028991s 3897997312s ext4 primary raid

(parted) rm 4
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda
(Device or resource busy). As a result, it may not reflect all of your changes
until after reboot.
(parted) mkpart primary 9031680s -1
Warning: You requested a partition from 9031680s to 5860533167s.
The closest location we can manage is 9031680s to 5860533134s.
Is this still acceptable to you?
Yes/No? yes
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda
(Device or resource busy). As a result, it may not reflect all of your changes
until after reboot.
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 5860533168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 30720s 1032191s 1001472s linux-swap(v1) primary raid
1 1032192s 5031935s 3999744s ext3 primary raid
2 5031936s 9031679s 3999744s ext3 primary raid
4 9031680s 5860533134s 5851501455s ext4 primary

(parted) quit
Information: You may need to update /etc/fstab.

MyBookLiveDuo:~# sync
MyBookLiveDuo:~# reboot

ssh back into drive

MyBookLiveDuo:~# parted
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 15.7MB 528MB 513MB linux-swap(v1) primary raid
1 528MB 2576MB 2048MB ext3 primary raid
2 2576MB 4624MB 2048MB ext3 primary raid
4 4624MB 3001GB 2996GB ext4 primary

(parted) quit
MyBookLiveDuo:~# mkpart primary 9031680s -1 I see this didn't work
-bash: mkpart: command not found

MyBookLiveDuo:~# e2fsck -f /dev/sda4
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda4: 60/30355200 files (1.7% non-contiguous), 152768/30452783 blocks
MyBookLiveDuo:~# resize2fs -p /dev/sda4
resize2fs 1.41.12 (17-May-2010)
Resizing the filesystem on /dev/sda4 to 45714855 (64k) blocks.
Begin pass 1 (max = 233)
Extending the inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/sda4 is now 45714855 blocks long.

MyBookLiveDuo:~# sync
MyBookLiveDuo:~# reboot


When finished

MyBookLiveDuo:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 1.9G 565M 1.3G 31% /
tmpfs 50M 0 50M 0% /lib/init/rw
udev 10M 896K 9.2M 9% /dev
tmpfs 50M 0 50M 0% /dev/shm
tmpfs 50M 4.2M 46M 9% /tmp
ramlog-tmpfs 20M 4.4M 16M 22% /var/log

No /Dev/md3

I will try again after I see that one missed commend

Reply With Quote
  #3  
Old February 2nd, 2013, 08:07 AM
sdez_ sdez_ is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 3 sdez_ User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 27 sec
Reputation Power: 0
with no errors

MyBookLiveDuo:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 1.9G 563M 1.3G 31% /
tmpfs 50M 0 50M 0% /lib/init/rw
udev 10M 960K 9.1M 10% /dev
tmpfs 50M 0 50M 0% /dev/shm
tmpfs 50M 4.1M 46M 9% /tmp
ramlog-tmpfs 20M 5.3M 15M 27% /var/log
/dev/md3 1.9T 2.1G 1.9T 1% /DataVolume
MyBookLiveDuo:~# parted
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 15.7MB 528MB 513MB linux-swap(v1) primary raid
1 528MB 2576MB 2048MB ext3 primary raid
2 2576MB 4624MB 2048MB ext3 primary raid
4 4624MB 2000GB 1996GB ext4 primary raid

(parted) unit s
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 5860533168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 30720s 1032191s 1001472s linux-swap(v1) primary raid
1 1032192s 5031935s 3999744s ext3 primary raid
2 5031936s 9031679s 3999744s ext3 primary raid
4 9031680s 3907028991s 3897997312s ext4 primary raid

(parted) quit MyBookLiveDuo:/# /etc/init.d/mionet stop
-bash: /etc/init.d/mionet: No such file or directory
MyBookLiveDuo:/# /etc/init.d/twonky stop
-bash: /etc/init.d/twonky: No such file or directory
MyBookLiveDuo:/# /etc/init.d/itunes stop
Stopping itunes server: forked-daapd.
MyBookLiveDuo:/# umount /CacheVolume
umount: /CacheVolume: device is busy
umount: /CacheVolume: device is busy
MyBookLiveDuo:/# umount /nfs
MyBookLiveDuo:/# umount /shares
umount: /shares: device is busy
umount: /shares: device is busy
MyBookLiveDuo:/# umount /DataVolume
MyBookLiveDuo:/# parted
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 5860533168s
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 30720s 1032191s 1001472s linux-swap(v1) primary raid
1 1032192s 5031935s 3999744s ext3 primary raid
2 5031936s 9031679s 3999744s ext3 primary raid
4 9031680s 3907028991s 3897997312s ext4 primary raid

(parted) rm 4
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda
(Device or resource busy). As a result, it may not reflect all of your changes
until after reboot.
(parted) mkpart primary 9031680s -1
Warning: You requested a partition from 9031680s to 5860533167s.
The closest location we can manage is 9031680s to 5860533134s.
Is this still acceptable to you?
Yes/No? yes
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda
(Device or resource busy). As a result, it may not reflect all of your changes
until after reboot.
(parted) quit
Information: You may need to update /etc/fstab.

MyBookLiveDuo:/# sync
MyBookLiveDuo:/# reboot

The system is going down for reboot NOW!o (pts/0) (Sat Feb 2 05:02:34 2013):
MyBookLiveDuo:/# exit
logout

Logged back in

MyBookLiveDuo:~# parted
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 15.7MB 528MB 513MB linux-swap(v1) primary raid
1 528MB 2576MB 2048MB ext3 primary raid
2 2576MB 4624MB 2048MB ext3 primary raid
4 4624MB 3001GB 2996GB ext4 primary

Resize worked


(parted) quit
MyBookLiveDuo:~# /etc/init.d/mionet stop
-bash: /etc/init.d/mionet: No such file or directory
MyBookLiveDuo:~# /etc/init.d/twonky stop
-bash: /etc/init.d/twonky: No such file or directory
MyBookLiveDuo:~# /etc/init.d/itunes stop
Stopping itunes server: forked-daapd.
MyBookLiveDuo:~# umount /CacheVolume
MyBookLiveDuo:~# umount /nfs
umount: /nfs: not mounted
MyBookLiveDuo:~# umount /shares
umount: /shares: not mounted
MyBookLiveDuo:~# umount /DataVolume
umount: /DataVolume: not mounted
MyBookLiveDuo:~# e2fsck -f /dev/sda4
e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sda4: 56/30355200 files (1.8% non-contiguous), 152765/30453101 blocks
MyBookLiveDuo:~# resize2fs -p /dev/sda4
resize2fs 1.41.12 (17-May-2010)
Resizing the filesystem on /dev/sda4 to 45714855 (64k) blocks.
Begin pass 1 (max = 233)
Extending the inode table XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/sda4 is now 45714855 blocks long.

MyBookLiveDuo:~# sync
MyBookLiveDuo:~# reboot

Logged back in

MyBookLiveDuo:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md1 1.9G 565M 1.3G 31% /
tmpfs 50M 0 50M 0% /lib/init/rw
udev 10M 896K 9.2M 9% /dev
tmpfs 50M 0 50M 0% /dev/shm
tmpfs 50M 4.0M 46M 8% /tmp
ramlog-tmpfs 20M 5.0M 16M 25% /var/log

Problem... No /dev/md3 ... /DataVolume

MyBookLiveDuo:~# parted
GNU Parted 2.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: ATA WDC WD30EZRX-00D (scsi)
Disk /dev/sda: 3001GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
3 15.7MB 528MB 513MB linux-swap(v1) primary raid
1 528MB 2576MB 2048MB ext3 primary raid
2 2576MB 4624MB 2048MB ext3 primary raid
4 4624MB 3001GB 2996GB ext4 primary

(parted) quit

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Help... resize partition

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap