LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-01-2009, 03:24 PM   #1
dp-danw
LQ Newbie
 
Registered: Jun 2009
Location: Utah
Distribution: openSUSE
Posts: 3

Rep: Reputation: 0
Mount External USB ext3, But Reverting to fat32


I'd like to mount an external USB drive for full local backups using rsnapshot. This requires a filesystem like ext3 for the hard links in "cp -al" to work. After I prepared my USB drive with fdisk and mkfs.ext3 the drive is still stuck on FAT32 though.

Disto: ClarkConnect 4.x (CentOS equivalent).

Code:
# fdisk -l
...
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       60801   488384001    c  W95 FAT32 (LBA)

Using fdisk /dev/sdd1 I make a new primary partition, type 83, and write it and get this alert:

Code:
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
This may be obvious, but do I really need a full system restart before it will pick up the new partition information? Is there any other way to lock it in rather than bringing down a production server?
 
Old 06-01-2009, 03:45 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
If it is an external USB drive, I am assuming you tried unplugging it and plugging it back in?
 
Old 06-01-2009, 03:51 PM   #3
dp-danw
LQ Newbie
 
Registered: Jun 2009
Location: Utah
Distribution: openSUSE
Posts: 3

Original Poster
Rep: Reputation: 0
It's at a remote location, so no, I haven't done that. I'll get someone to cycle the device. Is that considered sufficient for a reboot?
 
Old 06-01-2009, 03:52 PM   #4
kolodz1
LQ Newbie
 
Registered: Apr 2008
Distribution: fedora, debian
Posts: 8

Rep: Reputation: 1
Fdisk works on a device, meaning you need to run 'fdisk /dev/sdd' to get the desired effect. You're getting an 'invalid argument' error because /dev/sdd1 points to the partition on the disk and not the disk itself.

You should be able get it all done if you drop the 1 there. Also, make sure you're not working on a mounted filesystem.
 
Old 06-01-2009, 04:12 PM   #5
dp-danw
LQ Newbie
 
Registered: Jun 2009
Location: Utah
Distribution: openSUSE
Posts: 3

Original Poster
Rep: Reputation: 0
Brilliant!

How did I ever get in the bad habit of adding the "1" at the end. So here's the result after running fdisk /dev/sdd and creating the ext3 partition.

Code:
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
[root@server ~]# fdisk -l
...
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       60801   488384001   83  Linux
Much better.
 
  


Reply

Tags
fdisk, mount, usb



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
Mayday! How do I manually mount my encrypted ext3 external usb disk? simonsharry Linux - Newbie 11 02-15-2009 04:49 AM
external ext3 drives always mount as read-only! Gilrad Linux - Software 6 06-28-2008 12:06 AM
How do I manually mount a FAT32 external drive in Kubuntu 7.0.0? higleyg Linux - Newbie 1 05-26-2008 05:37 PM
USB Hardrive with FAT32 and ext3 partitions in need of repair/defrag MiniDev Linux - Hardware 6 02-15-2008 03:05 PM
USB external drive: NTFS/FAT32 detected, ext3 not blanks77 Linux - Hardware 7 04-25-2006 08:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:07 AM.

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