Shrinking a partition

View: New views
4 Messages — Rating Filter:   Alert me  

Shrinking a partition

by sarek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

After installing FreeBSD and Vista (463 GB and 30 GB respectivally) I
found out I don't have enough free space on my 500 GB drive on the
vista partition.   How do I determine how much I can shrink the
FreeBSD partition by safely (by just moving the end sector in
fdisk(1))?
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Shrinking a partition

by James Harrison-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2008-01-15 at 07:45 -0500, Aryeh Friedman wrote:
> After installing FreeBSD and Vista (463 GB and 30 GB respectivally) I
> found out I don't have enough free space on my 500 GB drive on the
> vista partition.   How do I determine how much I can shrink the
> FreeBSD partition by safely (by just moving the end sector in
> fdisk(1))?
> _______________________________________________
> freebsd-questions@... mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."


I'd imagine that you could use the output of df -h to see how much
you're using on the /usr partition and then shrink appropriately.

Best

James

_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Shrinking a partition

by Christian Walther-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 15/01/2008, James Harrison <jamesh@...> wrote:

> On Tue, 2008-01-15 at 07:45 -0500, Aryeh Friedman wrote:
> > After installing FreeBSD and Vista (463 GB and 30 GB respectivally) I
> > found out I don't have enough free space on my 500 GB drive on the
> > vista partition.   How do I determine how much I can shrink the
> > FreeBSD partition by safely (by just moving the end sector in
> > fdisk(1))?
>
> I'd imagine that you could use the output of df -h to see how much
> you're using on the /usr partition and then shrink appropriately.
>
AFAIK UFS (as well as other Unix FS) don't simply start writing at the
beginning of a filesystem and continue until the end is reached. It's
possible that data is written near the end of a filesystem nearly
instantly after the first mount.
To make sure that you don't loose any data I'd dump the FS to a save
place and restore it afterwards using a LiveCD.
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."

Re: Shrinking a partition

by Christian Walther-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Quoting myself:
[...]
> AFAIK UFS (as well as other Unix FS) don't simply start writing at the
[...]
Sorry, I ment FFS of course. But in fact matters are the same on both
filesystems.
_______________________________________________
freebsd-questions@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@..."