LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-28-2011, 02:55 PM   #1
stianiquniez
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
resize / ( root ) partition on Debian. NAS server


Hi, i have a NAS blackarmor 440 server. I have installed Debian on it using http://forums.seagate.com/t5/BlackAr...NAS/td-p/79422
this guide...

I have very litle space left, and need to resize the root partition. I have been trying to look for some guides, but often it says, boot into livecd.. I can't to that. As i have no screen to the NAS server.

this is my fdisk -l
Code:
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x06751000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      121602   976762583+  ee  EFI GPT

Disk /dev/md0: 1068 MB, 1068892160 bytes
2 heads, 4 sectors/track, 260960 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md0 doesn't contain a valid partition table

Disk /dev/md3: 997.3 GB, 997330911232 bytes
2 heads, 4 sectors/track, 243488992 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md3 doesn't contain a valid partition table

Disk /dev/md2: 533 MB, 533921792 bytes
2 heads, 4 sectors/track, 130352 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 1069 MB, 1069875200 bytes
2 heads, 4 sectors/track, 261200 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

Disk /dev/dm-0: 997.3 GB, 997329993728 bytes
255 heads, 63 sectors/track, 121251 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

And this is my df -h
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/md0             1004M  950M  3.1M 100% /
tmpfs                 125M     0  125M   0% /lib/init/rw
udev                   10M  736K  9.3M   8% /dev
tmpfs                 125M     0  125M   0% /dev/shm
/dev/md2              494M   24M  445M   5% /mnt/md2
It seems like its a LVM disk, but i am not sure. Would anyone please tell me what to do?

Thanks for the help..
 
Old 01-28-2011, 04:24 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Can't tell if LVM is in use. Can you use parted to list the partitions instead?
 
Old 01-28-2011, 04:36 PM   #3
stianiquniez
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Model: Seagate ST31000528AS (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 100MB 1169MB 1069MB ext3 raid
2 1169MB 2239MB 1070MB linux-swap raid
3 2239MB 2773MB 534MB ext3 raid
4 2773MB 1000GB 997GB raid
 
Old 01-28-2011, 04:55 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Ok, so looks like no LVM.

The only way you can do this is if / is not mounted. The only way to do that is to boot it off of something other than then hard drive, such as a live CD.
 
Old 01-28-2011, 06:32 PM   #5
stianiquniez
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Okei, i see.

Would I be able to take out the hardrive and put it into a second computer and boot it from a livecd?
And make the / bigger without any loose of data? I would hope that I could boot from the same computer later... And if so, how?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to resize my root partition blackboab Linux - Software 3 09-05-2007 07:28 AM
how to resize the root partition? zero79 Debian 11 01-10-2007 10:28 PM
resize root partition after install Phyrexicaid SUSE / openSUSE 2 08-31-2005 03:38 AM
Resize root partition via reinstall dubya Fedora 0 12-05-2004 01:00 PM
how to resize my /root partition Perfekt Linux - Software 4 12-23-2003 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration